|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JStatusField
stella.jview.JStatusPanel
public class JStatusPanel
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.
JStatusField.KEY_STATUSSIZE points to a minimum size of the status
message field. It's value is directly fueled to the
MyDimension.MyDimension(String) constructor and must therefore
consist of two integers combined with an 'x' char.
KEY_STATUSCOLOR key refers to the color used for
drawing status messages. The string it points to is converted into a color
using Color.decode, Color.getColor, and the constructor of
MyColor. If all conversions fail or the key is not present,
DEFSTATUSCOLOR is used.KEY_COMMANDCOLOR key refers to the color used for
drawing command messages. The string it points to is converted into a color
using Color.decode, Color.getColor, and the constructor of
MyColor. If all conversions fail or the key is not present,
DEFCOMMANDCOLOR is used.JStatusField.KEY_ERRORCOLOR key refers to the color used for
drawing error messages. The string it points to is converted into a color
using Color.decode, Color.getColor, and the constructor of
MyColor. If all conversions fail or the key is not present,
JStatusField.DEFERRORCOLOR is used.KEY_ACKCOLOR key refers to the color used for
drawing acknowledge messages. The string it points
to is converted into a color
using Color.decode, Color.getColor, and the constructor of
MyColor. If all conversions fail or the key is not present,
DEFACKCOLOR is used.KEY_DONECOLOR key refers to the color used for
drawing done messages. The string it points to is converted into a color
using Color.decode, Color.getColor, and the constructor of
MyColor. If all conversions fail or the key is not present,
DEFDONECOLOR is used.JStatusField.KEY_ERRORCOLOR key refers to the color used for
drawing error messages. The string it points to is converted into a color
using Color.decode, Color.getColor, and the constructor of
MyColor. If all conversions fail or the key is not present,
JStatusField.DEFERRORCOLOR is used.
| 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 |
|---|
public static final String KEY_STATUSCOLOR
public static final String KEY_COMMANDCOLOR
public static final String KEY_DONECOLOR
public static final String KEY_ACKCOLOR
private static final Color DEFSTATUSCOLOR
private static final Color DEFCOMMANDCOLOR
private static final Color DEFDONECOLOR
private static final Color DEFACKCOLOR
private static final String STATUS
private static final String COMMAND
private static final String ACKNOWLEDGE
private static final String DONE
private List buttonlist
| Constructor Detail |
|---|
public JStatusPanel(Map prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class JStatusFieldpublic void status(String mess)
mess - public void command(String mess)
mess - public void done(String done)
err - public void acknowledge(String ack)
err -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||