|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
com.jstatcom.ts.TSActionTypes
public abstract class TSActionTypes
This class holds default actions used by the TSList. The
defined actions override execute(TSList tsList) to provide the
a specific function on the underlying TSList, for example
deleting all selected entries, changing the types of selected entires, etc..
The actions can be invoked via keys and/or items in the
DefaultTSListPopup that is opened via a RIGHT click over the
TSList.
New actions may be provided by subclassing this abstract class and setting
the new action instance to the default DefaultTSListPopup.
Also, existing actions may be removed from there.
If new actions should also be accessible via keys, they can be
added to the DefaultTSKeyListener.
This class implements the typesave enum pattern (Joshua Bloch, "Effective
Java", Item 21) . If you compare TSActionTypes, always
use the == operator.
| Field Summary | |
|---|---|
static TSActionTypes |
CREATE_DUMMY
Creates dummy variables by invoking a dialog. |
static TSActionTypes |
DELETE
Deletes selected time series after asking to confirm. |
static TSActionTypes |
DETERMINISTIC
Sets type of selected TS to deterministic. |
static TSActionTypes |
EDIT_TS
Invokes the TSEditorDialog. |
static TSActionTypes |
ENDOGENOUS
Sets type of selected TS to endogenous. |
static TSActionTypes |
EXOGENOUS
Sets type of selected TS to exogenous. |
static TSActionTypes |
RENAME
Renames time series by showing an input dialog. |
static TSActionTypes |
SAVE_DAT
Saves selected time series in a Dat file. |
static TSActionTypes |
SHOW_DESCRIPTION
Shows the description for prohject of the 1st selected time series. |
static TSActionTypes |
TRANSFORM
Transforms time series by invoking a dialog. |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Tries to retrieve TSList and triggers doAction. |
abstract void |
doAction(TSList tsList)
This defines the operation that is actually carried out by the action. |
void |
enableForTSList(TSList tsList)
Enables/disables the action according to the state of the underlying list. |
boolean |
equals(java.lang.Object o)
Override prevention method to enforce a.equals(b) if and
only if a==b. |
int |
hashCode()
Override prevention method invokes super method. |
java.lang.String |
toString()
Returns the name of the actiontype, do not use for comparisons. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final TSActionTypes DELETE
public static final TSActionTypes RENAME
public static final TSActionTypes TRANSFORM
public static final TSActionTypes CREATE_DUMMY
public static final TSActionTypes SHOW_DESCRIPTION
public static final TSActionTypes SAVE_DAT
Dat file.
public static final TSActionTypes EDIT_TS
TSEditorDialog.
public static final TSActionTypes ENDOGENOUS
TS to endogenous.
public static final TSActionTypes EXOGENOUS
TS to exogenous.
public static final TSActionTypes DETERMINISTIC
TS to deterministic.
| Method Detail |
|---|
public final void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - an action eventpublic abstract void doAction(TSList tsList)
tsList - the TSList to operate onpublic void enableForTSList(TSList tsList)
enableForTSList in interface TSListAccessortsList - the TSList to be referenced by the actionpublic final boolean equals(java.lang.Object o)
a.equals(b) if and
only if a==b.
equals in class java.lang.Objecto - object to compare with
true if equal, false otherwisepublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||