|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
kawigi.cmd.DefaultAction
public abstract class DefaultAction
Superclass of all KawigiEdit actions.
| Field Summary | |
|---|---|
protected ActID |
cmdid
The ActID for this Action. |
static java.lang.String |
COLOR
Color property for the currently selected color in a color-selection control. |
protected boolean |
enableSet
Last set value for enable property. |
static java.lang.String |
FONT
Font property stored for a kawigi.widget.FontPanel |
static java.lang.String |
LARGE_ICON
Image property for icon if it should show a larger (24x24 instead of 16x16) icon. |
static java.lang.String |
SELECTED
Boolean property of the state of a check box or something similar. |
static java.lang.String |
SPINNER_MODEL
SpinnerModel property (provides an object that implements SpinnerModel) |
static java.lang.String |
SPINNER_VALUE
Value of a spinner - the type depends on the SpinnerModel implementation |
static java.lang.String |
TEXT
String property to override the text of a text box. |
protected boolean |
visible
Visibility state |
static java.lang.String |
VISIBLE
Boolean visibility property to show or hide controls. |
protected boolean |
visibleSet
Last set value for visible property. |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
protected |
DefaultAction(ActID cmdid)
Constructor for DefaultAction - requires an ActID. |
| Method Summary | |
|---|---|
abstract void |
actionPerformed(java.awt.event.ActionEvent e)
Must override to define what the action does when it launches an event. |
boolean |
equals(java.lang.Object o)
Determines if this action is equal to another one. |
ActID |
getID()
returns the ActID for this Action. |
boolean |
isNeedTrackEnabled()
Shows if it's needed to track changes in "enabled" or "visible" properties. |
boolean |
isVisible()
Override to allow the control to hide dynamically. |
protected void |
reportError(java.lang.Throwable t,
boolean warning)
Prints a stack trace to the console and if it's not a warning, brings up an error dialog. |
void |
setVisible(boolean newValue)
Sets the visibility property. |
void |
UIRefresh()
Refreshes the values of all properties. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LARGE_ICON
public static final java.lang.String COLOR
public static final java.lang.String VISIBLE
public static final java.lang.String TEXT
public static final java.lang.String SELECTED
public static final java.lang.String FONT
public static final java.lang.String SPINNER_MODEL
public static final java.lang.String SPINNER_VALUE
protected ActID cmdid
protected boolean visible
protected boolean enableSet
protected boolean visibleSet
| Constructor Detail |
|---|
protected DefaultAction(ActID cmdid)
| Method Detail |
|---|
public void UIRefresh()
public boolean isNeedTrackEnabled()
public ActID getID()
public boolean isVisible()
public void setVisible(boolean newValue)
public abstract void actionPerformed(java.awt.event.ActionEvent e)
protected void reportError(java.lang.Throwable t,
boolean warning)
public boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||