![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
imp.gui.IComponent
imp.gui.TextDisplay
imp.gui.StdoutDisplay
public class StdoutDisplay
Defines a panel where the stdout or stderr is displayed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
---|---|
TextDisplay |
addStamp()
Adds a stamp with the date and location to the displayed value and return this. |
void |
dump()
Dumps the displayed value into the predefined location. |
StdoutDisplay |
setException(boolean display)
Sets the display of uncaught exceptions and return this. |
TextDisplay |
setLocation(String location)
Sets an URLs where the displayed value is to be dumped and return this. |
StdoutDisplay |
setStderr(boolean display)
Sets if the stderr is to be displayed and return this. |
StdoutDisplay |
setStdout(boolean display)
Sets if the stdout is to be displayed and return this. |
TextDisplay |
setValue(String text)
Sets/Clear the displayed value and return this. |
Methods inherited from class imp.gui.TextDisplay |
---|
show |
Methods inherited from class imp.gui.IComponent |
---|
getBgcolor, getColor, getTextFont, getTitle, getTooltip, grab, refresh, setBgcolor, setColor, setHeight, setTextFont, setTitle, setTooltip, setWidth |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public TextDisplay addStamp()
public void dump()
public StdoutDisplay setException(boolean display)
display
- If true the uncaught exceptions is no more dumped but displayed in this component. If false it is reset to its standard state.public TextDisplay setLocation(String location)
location
- A Universal Resource Location of the form: ftp:/path-name | to save onto a FTP site. |
file:/path-name | to save into a file. |
mailto:address?subject=subject | to send as an email in a readable form. |
public StdoutDisplay setStderr(boolean display)
display
- If true the stderr is no more dumped but displayed in this component. If false the stderr is reset to its standard state.public StdoutDisplay setStdout(boolean display)
display
- If true the stdout is no more dumped but displayed in this component. If false the stdout is reset to its standard state.public TextDisplay setValue(String text)
setValue
in class TextDisplay
text
- The displayed value. If empty, the displayed is cleared.