2024-07-02 19:13:30 +00:00
|
|
|
|
package OurApplication;
|
2024-06-15 19:55:30 +00:00
|
|
|
|
|
2024-07-07 12:02:19 +00:00
|
|
|
|
import logging.LogElement;
|
2024-06-15 19:55:30 +00:00
|
|
|
|
import logging.LogElementList;
|
2024-07-02 19:13:30 +00:00
|
|
|
|
import visualisation.TextArea;
|
2024-06-15 19:55:30 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This class provides an example for using visualization.TextArea.
|
|
|
|
|
* Constructors and print() method have been overwritten.
|
2024-07-02 19:13:30 +00:00
|
|
|
|
* @see TextArea
|
|
|
|
|
* @author MSch<EFBFBD>fer
|
2024-06-15 19:55:30 +00:00
|
|
|
|
* DHBW Stuttgart/Campus Horb AI2008<br>
|
|
|
|
|
* <br>
|
|
|
|
|
*/
|
2024-07-02 19:13:30 +00:00
|
|
|
|
public class OurTextArea extends TextArea{
|
2024-06-15 19:55:30 +00:00
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Standard constructor.
|
|
|
|
|
*/
|
2024-07-02 19:13:30 +00:00
|
|
|
|
public OurTextArea() {
|
2024-06-15 19:55:30 +00:00
|
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Extended constructor.
|
|
|
|
|
* Sets LogElementList of TestLogElements as log list.
|
|
|
|
|
* @param logList the text area's log element list.
|
|
|
|
|
*/
|
2024-07-02 19:13:30 +00:00
|
|
|
|
public OurTextArea(LogElementList<OurLogElement>logList){
|
2024-06-15 19:55:30 +00:00
|
|
|
|
super(logList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Textual output of a log element.
|
|
|
|
|
* No output.
|
|
|
|
|
*/
|
|
|
|
|
public boolean print(){
|
2024-07-07 12:02:19 +00:00
|
|
|
|
LogElement logElement=(LogElement)logList.get();
|
|
|
|
|
setText(logElement.getDescription());
|
2024-06-15 19:55:30 +00:00
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|