de.guibuilder.framework
Class GuiAction

java.lang.Object
  extended by de.guibuilder.framework.GuiMember
      extended by de.guibuilder.framework.GuiElement
          extended by de.guibuilder.framework.GuiAction
All Implemented Interfaces:
IDatasetMember, MemberAble, MemberPopupAble
Direct Known Subclasses:
GuiButton, GuiMenuItem

public abstract class GuiAction
extends GuiElement

Abstrakte Basisklasse für Oberfächenelemente die Aktionen auslösen können: Button und MenuItem.

Alle Methoden bis auf setActionCommand sind final.

Since:
0.9.1

Field Summary
static int CANCEL
          Cancel-Action: Key "Esc" typed
static int CONTEXT_HELP
          Context-help-Action: Key "Shift-F1" typed
static int DELETE
           
static int DETAIL
           
static int EXIT
           
static int FIND
           
static int HELP
          Help-Action: Key "F1" typed
static int NEW
           
static int OK
          OK-Action: Key "Return" typed
static int PRINT
           
static int RELOAD
           
static int SAVE
           
 
Fields inherited from class de.guibuilder.framework.GuiMember
GUI_ACTION, GUI_COMPONENT, GUI_CONTAINER, GUI_TABLE, GUI_TREE, GUI_TYPE_NAMES, OID
 
Method Summary
 void click()
          Die Action wird aktiviert, so als währe sie vom Benutzer angeklickt worden.
abstract  javax.swing.AbstractButton getAbstractButton()
          Liefert den AbstractButton der zugrundeliegenden Implementierung; JButton, JMenuItem
 java.lang.String getActionCommand()
          From swing.AbstractButton
 int getGuiType()
          Liefert GUI_ACTION
 java.lang.String getText()
          From swing.AbstractButton
 int getType()
          Liefert den Typ der Action.
static java.lang.String getTypeName(int type)
          Liefert den Namen der Actiontype: OK|CANCEL|HELP|CONTEXT_HELP|NEW|SAVE|FIND|RELOAD|DELETE|EXIT oder UNKNOWN
 void setActionCommand(java.lang.String a)
          Wird von GuiButton überschieben.
 void setEnabled(int actionState)
          Aktiviert oder deaktiviert diese Action in Abhängigkeit vom übergebenen Action-Type
 void setHorizontalAlignment(int i)
          From swing.AbstractButton
 void setIcon(javax.swing.Icon icon)
          From swing.AbstractButton
 void setMnemonic(char c)
          From swing.AbstractButton
 void setText(java.lang.String s)
          From swing.AbstractButton
 void setType(int type)
          Setzt den Typ der Action (OK, Cancel, HELP, CONTEXT_HELP)
 void setType(java.lang.String type)
          Setzt den Typ der Action: OK|CANCEL|HELP|CONTEXT_HELP|NEW|SAVE|FIND|RELOAD|DELETE|DETAIL|EXIT
 void verify()
          Leere Implementierung wegen abstrakter Methode in GuiMember
 
Methods inherited from class de.guibuilder.framework.GuiElement
getFileName, getHint, getMsgChange, getMsgClick, getMsgDblClick, getParentTable, getRootPane, hasTabstop, isEnabled, requestFocus, setEnabled, setHint, setMsgChange, setMsgClick, setMsgDblClick, setMsgLostFocus, setParentTable, setTabstop
 
Methods inherited from class de.guibuilder.framework.GuiMember
addSetter, click, d_click, getAwtComponent, getBackground, getConstraints, getControler, getController, getDropTarget, getElementName, getElementPath, getFont, getForeground, getFullName, getGuiParent, getGuiTypeName, getJComponent, getLabel, getMaximumSize, getMemberElement, getMinimumSize, getMsgDragEnter, getMsgDragExit, getMsgDragOver, getMsgDrop, getMsgFileDrop, getMsgMouseOver, getMsgPopup, getName, getOid, getParentNames, getParentTab, getPopupMenu, getPreferences, getPreferredSize, getRef, getTag, getToolTipText, getUserObject, isRootElement, isVisible, reset, setBackground, setConstraints, setControler, setController, setDrag, setElementName, setFont, setForeground, setGuiParent, setLabel, setMaximumSize, setMinimumSize, setMsgDragEnter, setMsgDragExit, setMsgDragOver, setMsgDrop, setMsgFileDrop, setMsgMouseMoved, setMsgMouseOver, setMsgPopup, setName, setOid, setPopupMenu, setPreferences, setPreferredSize, setRef, setStateAttributes, setToolTipText, setUserObject, setVisible, showPopupMenu, showPopupMenu
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final int OK
OK-Action: Key "Return" typed

See Also:
Constant Field Values

CANCEL

public static final int CANCEL
Cancel-Action: Key "Esc" typed

See Also:
Constant Field Values

HELP

public static final int HELP
Help-Action: Key "F1" typed

See Also:
Constant Field Values

CONTEXT_HELP

public static final int CONTEXT_HELP
Context-help-Action: Key "Shift-F1" typed

See Also:
Constant Field Values

NEW

public static final int NEW
See Also:
Constant Field Values

SAVE

public static final int SAVE
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values

FIND

public static final int FIND
See Also:
Constant Field Values

RELOAD

public static final int RELOAD
See Also:
Constant Field Values

DETAIL

public static final int DETAIL
See Also:
Constant Field Values

PRINT

public static final int PRINT
See Also:
Constant Field Values

EXIT

public static final int EXIT
See Also:
Constant Field Values
Method Detail

getGuiType

public final int getGuiType()
Liefert GUI_ACTION

Specified by:
getGuiType in class GuiMember

getAbstractButton

public abstract javax.swing.AbstractButton getAbstractButton()
Liefert den AbstractButton der zugrundeliegenden Implementierung; JButton, JMenuItem

Returns:

setActionCommand

public void setActionCommand(java.lang.String a)
Wird von GuiButton überschieben.

From swing.AbstractButton


getActionCommand

public final java.lang.String getActionCommand()
From swing.AbstractButton


setHorizontalAlignment

public final void setHorizontalAlignment(int i)
From swing.AbstractButton


setIcon

public final void setIcon(javax.swing.Icon icon)
From swing.AbstractButton


setMnemonic

public final void setMnemonic(char c)
From swing.AbstractButton


getText

public final java.lang.String getText()
From swing.AbstractButton


setText

public final void setText(java.lang.String s)
From swing.AbstractButton


click

public final void click()
Die Action wird aktiviert, so als währe sie vom Benutzer angeklickt worden.


setType

public void setType(int type)
Setzt den Typ der Action (OK, Cancel, HELP, CONTEXT_HELP)

Parameters:
type -

getType

public int getType()
Liefert den Typ der Action.

Returns:

setType

public void setType(java.lang.String type)
Setzt den Typ der Action: OK|CANCEL|HELP|CONTEXT_HELP|NEW|SAVE|FIND|RELOAD|DELETE|DETAIL|EXIT

Parameters:
type -

getTypeName

public static java.lang.String getTypeName(int type)
Liefert den Namen der Actiontype: OK|CANCEL|HELP|CONTEXT_HELP|NEW|SAVE|FIND|RELOAD|DELETE|EXIT oder UNKNOWN

Parameters:
type -
Returns:

setEnabled

public void setEnabled(int actionState)
Aktiviert oder deaktiviert diese Action in Abhängigkeit vom übergebenen Action-Type

Parameters:
actionType -
See Also:
GuiWindow.STATE_NEW

verify

public final void verify()
Leere Implementierung wegen abstrakter Methode in GuiMember

Specified by:
verify in class GuiMember
See Also:
GuiInputVerifier