stella.jview
Class JStatusExit
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JStatusField
stella.jview.JStatusPanel
stella.jview.JStatusSave
stella.jview.JStatusExit
- All Implemented Interfaces:
- Cloneable, Displayable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
public class JStatusExit
- extends JStatusSave
Further enhances a status field with a JExitButton.
A typical status panel looks like this:

|
Constructor Summary |
JStatusExit(Map prop)
Creates a Status Panel without any additional buttons. |
| Methods inherited from class jview.JStatusField |
append, debug, error, error, fatal, getRepresentation, getStatus, getStatusDocument, info, setColor, warning |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_EXITTEXT
public static final String KEY_EXITTEXT
- The key denoting the text of the exit button.
- See Also:
- Constant Field Values
KEY_EXITICON
public static final String KEY_EXITICON
- The key pointing to the icon of the exit button.
- See Also:
- Constant Field Values
DEFEXITTEXT
private static final String DEFEXITTEXT
- The default exit text.
- See Also:
- Constant Field Values
exit
private JExitButton exit
- The save button to dump the text to a file.
JStatusExit
public JStatusExit(Map prop)
- Creates a Status Panel without any additional buttons.
init
public void init()
- Creates a Status Panel and adds some buttons. The buttons provided
are inserted in a flow-layout manner at the left edge of the status
panel, just next to the exit button. It registers itself as an
action listener to catch presses on the exit button. Additionally,
all the layout is done alreadty at construct.
- Specified by:
init in interface Initializable- Overrides:
init in class JStatusSave
getExit
public JExitButton getExit()
- Returns the exit button.
prepareRepresentation
protected JPanel prepareRepresentation()
- Prepares the component. Adds the exit button to the left of the
status panel.
- Overrides:
prepareRepresentation in class JStatusSave
prepareLeftButton
protected Box prepareLeftButton()
- Creates a panel holding the exit button. Subclasses can interfere here
to add more buttons.