stella.jview
Class JStatusPanel

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
All Implemented Interfaces:
Cloneable, Displayable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
Direct Known Subclasses:
JStatusSave

public class JStatusPanel
extends JStatusField

This Class provides the status area. It consists of a generally writable (but not editable!) textarea for messages to the user. The following properties are supported.

A typical status panel looks like this:

JStatusPanel


Nested Class Summary
 
Nested classes/interfaces inherited from class jview.JStatusField
JStatusField.Test
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static String ACKNOWLEDGE
          The name for the acknowledge text style.
private  List buttonlist
          A list of buttons to add to the left of the exit button.
private static String COMMAND
          The name for the command text style.
private static Color DEFACKCOLOR
          The default error color.
private static Color DEFCOMMANDCOLOR
          The default command color.
private static Color DEFDONECOLOR
          The default status color.
private static Color DEFSTATUSCOLOR
          The default status color.
private static String DONE
          The name for the done text style.
static String KEY_ACKCOLOR
          The key denoting the color of acknowledge messages.
static String KEY_COMMANDCOLOR
          The key denoting the color of command messages.
static String KEY_DONECOLOR
          The key denoting the color of done messages.
static String KEY_STATUSCOLOR
          The key denoting the color of standard messages.
private static String STATUS
          The name for the status text style.
 
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
JStatusPanel(Map prop)
          Creates a Status Panel without any additional buttons.
 
Method Summary
 void acknowledge(String ack)
          Displays the error message err in Status with STATUSERROR Color.
 void command(String mess)
          Displays the command mess in Status with COMMANDTEXT Color.
 void done(String done)
          Displays the error message err in Status with STATUSERROR Color.
 void init()
          Creates a Status Panel and adds some buttons.
 void status(String mess)
          Displays the message mess in Status with STATUSTEXT Color.
 
Methods inherited from class jview.JStatusField
append, debug, error, error, fatal, getRepresentation, getStatus, getStatusDocument, info, prepareRepresentation, 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_STATUSCOLOR

public static final String KEY_STATUSCOLOR
The key denoting the color of standard messages.

See Also:
Constant Field Values

KEY_COMMANDCOLOR

public static final String KEY_COMMANDCOLOR
The key denoting the color of command messages.

See Also:
Constant Field Values

KEY_DONECOLOR

public static final String KEY_DONECOLOR
The key denoting the color of done messages.

See Also:
Constant Field Values

KEY_ACKCOLOR

public static final String KEY_ACKCOLOR
The key denoting the color of acknowledge messages.

See Also:
Constant Field Values

DEFSTATUSCOLOR

private static final Color DEFSTATUSCOLOR
The default status color.


DEFCOMMANDCOLOR

private static final Color DEFCOMMANDCOLOR
The default command color.


DEFDONECOLOR

private static final Color DEFDONECOLOR
The default status color.


DEFACKCOLOR

private static final Color DEFACKCOLOR
The default error color.


STATUS

private static final String STATUS
The name for the status text style.

See Also:
Constant Field Values

COMMAND

private static final String COMMAND
The name for the command text style.

See Also:
Constant Field Values

ACKNOWLEDGE

private static final String ACKNOWLEDGE
The name for the acknowledge text style.

See Also:
Constant Field Values

DONE

private static final String DONE
The name for the done text style.

See Also:
Constant Field Values

buttonlist

private List buttonlist
A list of buttons to add to the left of the exit button.

Constructor Detail

JStatusPanel

public JStatusPanel(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 JStatusField

status

public void status(String mess)
Displays the message mess in Status with STATUSTEXT Color.

Parameters:
mess -

command

public void command(String mess)
Displays the command mess in Status with COMMANDTEXT Color.

Parameters:
mess -

done

public void done(String done)
Displays the error message err in Status with STATUSERROR Color.

Parameters:
err -

acknowledge

public void acknowledge(String ack)
Displays the error message err in Status with STATUSERROR Color.

Parameters:
err -