stella.jview
Class JStatusExit

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by jview.AbstractDisplayable
                  extended by jview.JStatusField
                      extended by stella.jview.JStatusPanel
                          extended by stella.jview.JStatusSave
                              extended by 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:

JStatusPanel


Nested Class Summary
static class JStatusExit.Test
          Test purpose only.
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static String DEFEXITTEXT
          The default exit text.
private  JExitButton exit
          The save button to dump the text to a file.
static String KEY_EXITICON
          The key pointing to the icon of the exit button.
static String KEY_EXITTEXT
          The key denoting the text of the exit button.
 
Fields inherited from class stella.jview.JStatusSave
KEY_SAVEICON, KEY_SAVETEXT
 
Fields inherited from class stella.jview.JStatusPanel
KEY_ACKCOLOR, KEY_COMMANDCOLOR, KEY_DONECOLOR, KEY_STATUSCOLOR
 
Fields inherited from class jview.JStatusField
KEY_DEBUGCOLOR, KEY_ERRORCOLOR, KEY_FATALCOLOR, KEY_INFOCOLOR, KEY_STATUSSIZE, KEY_WARNINGCOLOR
 
Fields inherited from class jview.AbstractDisplayable
KEY_COMPONENTNAME, KEY_ICON, KEY_INSETS
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
JStatusExit(Map prop)
          Creates a Status Panel without any additional buttons.
 
Method Summary
 JExitButton getExit()
          Returns the exit button.
 void init()
          Creates a Status Panel and adds some buttons.
protected  Box prepareLeftButton()
          Creates a panel holding the exit button.
protected  JPanel prepareRepresentation()
          Prepares the component.
 
Methods inherited from class stella.jview.JStatusPanel
acknowledge, command, done, status
 
Methods inherited from class jview.JStatusField
append, debug, error, error, fatal, getRepresentation, getStatus, getStatusDocument, info, setColor, warning
 
Methods inherited from class jview.AbstractDisplayable
getComponentName, getIcon, getIcon
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
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
 

Field Detail

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.

Constructor Detail

JStatusExit

public JStatusExit(Map prop)
Creates a Status Panel without any additional buttons.

Method Detail

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.