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