|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.ControlActionDef
Encapsulates an action with the needed parameters.
NOTE: New actions must also be assign into the MAP
!
Field Summary | |
private java.lang.String |
action
The name of the action. |
static ControlActionDef |
ACTION_ADD
Handler: void onAdd(ControlRequestContext ctx, String parentKey) |
static ControlActionDef |
ACTION_ADDAPPOINTMENT
Action: AddAppointment this event is triggered within an scheduler control, when the user clicks on a add appointment button element. |
static ControlActionDef |
ACTION_APPOINTMENTCLICK
Action: Appointment this event is triggered within an scheduler control, when the user clicks on and appointment The parameter timeInMillis designates the time in UTC milliseconds from the epoch. |
static ControlActionDef |
ACTION_CELLCLICK
Handler: void onCellClick(ControlRequestContext ctx, String column, String key) |
static ControlActionDef |
ACTION_CHANGEDATE
Action: ChangeDate this event is triggered within an scheduler control, when the user switches the controls view to another date. |
static ControlActionDef |
ACTION_CHECK
Action: Check This action is triggered if a checkbox is clicked. |
static ControlActionDef |
ACTION_CHECKALL
Action: CheckAll This action is triggered if all rows are checked or unchecked. |
static ControlActionDef |
ACTION_CHECKAPPOINTMENT
Action: CheckAppointment This action is triggered if a checkbox on an appointment is clicked. |
static ControlActionDef |
ACTION_CHECKCOLUMN
Action: CheckColumn This action is triggered if all rows of a specific column are checked or unchecked. |
static ControlActionDef |
ACTION_CHECKDATE
Action: CheckDate This action is triggered if a checkbox on an date is clicked. |
static ControlActionDef |
ACTION_CLOSE
Action: close Handler: void onClose(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_COLLAPSE
Action: Collapse This action is triggered by a tree if a group node is closed. |
static ControlActionDef |
ACTION_CREATE
Action: Create Handler: void onCreate(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_CRUMBCLICK
Action: CrumbClick Handler: void onCrumbClick(ControlRequestContext ctx, String crumbId) |
static ControlActionDef |
ACTION_DELETE
Handler: void onDelete(ControlRequestContext ctx, String key) |
static ControlActionDef |
ACTION_DRILLDOWN
Handler: void onDrilldown(ControlRequestContext ctx, String key) |
static ControlActionDef |
ACTION_EDIT
Handler: void onEdit(ControlRequestContext ctx, String key) |
static ControlActionDef |
ACTION_EXPAND
Action: Expand This action is triggered by a tree if a group node is opened. |
static ControlActionDef |
ACTION_EXPANDEX
Action: ExpandEx This action is triggered by a tree if a group node with unknown number of children is opened. |
static ControlActionDef |
ACTION_EXPORTLIST
Action: Export (without parameters) Handler: void onExport(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_HELP
Action: help Handler: void onHelp(ControlRequestContext ctx, String helpId) |
static ControlActionDef |
ACTION_LOADMENU
Action: load menu Handler: void onLoadMenu(ControlRequestContext ctx, String menuId) |
static ControlActionDef |
ACTION_MAXIMIZE
Action: maximize Handler: void onMaximize(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_MINIMIZE
Action: minimize Handler: void onMinimize(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_MOVE
Action: move Handler: void onMove(ControlRequestContext ctx, int direction) |
static ControlActionDef |
ACTION_PAGE
Action: Page this event is triggered within an control, when the user moves from one page to another page Handler: void onPage(ControlRequestContext ctx, int page) Arguments: page The page to which the system should go. -1 = jump to the last page 0..n = jump to the specified page Caution: The Handler itself must ensure adherence to the valid range. |
static ControlActionDef |
ACTION_PRINTLIST
Action: Print (without parameters) Handler: void onPrint(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_REFRESH
Action: Refresh Handler: void onRefresh(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_REMOVE
Handler: void onRemove(ControlRequestContext ctx, String key) |
static ControlActionDef |
ACTION_RESTORE
Action: restore Handler: void onRestore(ControlRequestContext ctx) |
static ControlActionDef |
ACTION_SELECT
Handler: void onSelect(ControlRequestContext ctx, String key) |
static ControlActionDef |
ACTION_SELECTDATE
Action: ChangeDate this event is triggered within an scheduler control, when the user clicks on a date element. |
static ControlActionDef |
ACTION_SORT
Handler: void onSort(ControlRequestContext ctx, String column, SortOrder direction) |
static ControlActionDef |
ACTION_SWAPALL
Action: Swap all option elements Handler: void onSwapAll(ControlRequestContext ctx, int direction) |
static ControlActionDef |
ACTION_SWAPSELECTED
Action: Swap selected option elements Handler: void onSwapSelected(ControlRequestContext ctx, int direction) |
static ControlActionDef |
ACTION_TABCLICK
Action: TabClick Handler: void onTabClick(ControlRequestContext ctx, String tabId) |
static ControlActionDef |
ACTION_TABSCROLL
Action: TabScroll Handler: void onTabScroll(ControlRequestContext ctx, String tabId) |
static ControlActionDef |
ACTION_VIEW
Action: View this event is triggered within an control, when the user switches to another view Handler: void onView(ControlRequestContext ctx, String view) |
private static java.util.Hashtable |
registry
List with all actions defined above |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.Class[] |
types
Array with the parameters that belongs to the action. |
Constructor Summary | |
ControlActionDef(java.lang.String actionCode,
java.lang.Class[] types)
Constructor for ControlActionDef The class is instantiate with the parameters. |
Method Summary | |
void |
checkType(int index,
java.lang.Class type)
Method checkType |
ControlAction |
createInstance(Control ctrl)
Die Methode erzeugt eine konkrete Aktionsinstanz zu dieser Aktionsdefinition. |
ControlAction |
createInstance(Control ctrl,
java.lang.String actionName)
Die Methode erzeugt eine konkrete Aktionsinstanz zu dieser Aktionsdefinition. |
ControlAction |
createInstance(PainterContext ctx)
Die Methode erzeugt eine konkrete Aktionsinstanz zu dieser Aktionsdefinition. |
boolean |
equals(java.lang.Object obj)
Compares the argument to this type |
java.lang.String |
getAction()
Retrieves the action identifier |
int |
getFormalParameterCount()
Liefert die Anzahl der formalen Parameter zurück. |
java.lang.Class[] |
getFormalParameterTypes()
Liefert ein Array mit den Typen der formalen Parameter zurück. |
java.lang.String |
getName()
Method getName |
java.lang.Class |
getParameterType(int index)
Retrieves the class for the given parameter |
java.lang.Class[] |
getTypes()
Retrieves the parameter types for this action |
int |
hashCode()
|
static boolean |
isRegistered(java.lang.String action)
Checks if a certain action is registered in the action registry |
java.lang.Object[] |
mapActualParameter(ControlRequestContext ctx,
java.lang.String[] paramStr)
Method mapActualParameter |
static ControlActionDef |
parse(java.lang.String code)
Returns a ControlActionDef for the argument |
static ControlActionDef |
query(java.lang.String code)
Returns a ControlActionDef for the argument |
static void |
registerActionDefinition(ControlActionDef def)
Registers an action definition in the global registry |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final ControlActionDef ACTION_PAGE
public static final ControlActionDef ACTION_CELLCLICK
public static final ControlActionDef ACTION_DRILLDOWN
public static final ControlActionDef ACTION_SELECT
public static final ControlActionDef ACTION_EDIT
public static final ControlActionDef ACTION_DELETE
public static final ControlActionDef ACTION_ADD
public static final ControlActionDef ACTION_EXPAND
public static final ControlActionDef ACTION_COLLAPSE
public static final ControlActionDef ACTION_EXPANDEX
public static final ControlActionDef ACTION_CHECK
public static final ControlActionDef ACTION_CHECKALL
public static final ControlActionDef ACTION_CHECKCOLUMN
public static final ControlActionDef ACTION_CREATE
public static final ControlActionDef ACTION_REFRESH
public static final ControlActionDef ACTION_TABCLICK
public static final ControlActionDef ACTION_TABSCROLL
public static final ControlActionDef ACTION_CRUMBCLICK
public static final ControlActionDef ACTION_SORT
public static final ControlActionDef ACTION_HELP
public static final ControlActionDef ACTION_MINIMIZE
public static final ControlActionDef ACTION_MAXIMIZE
public static final ControlActionDef ACTION_MOVE
public static final ControlActionDef ACTION_REMOVE
public static final ControlActionDef ACTION_RESTORE
public static final ControlActionDef ACTION_CLOSE
public static final ControlActionDef ACTION_VIEW
public static final ControlActionDef ACTION_CHANGEDATE
public static final ControlActionDef ACTION_SELECTDATE
public static final ControlActionDef ACTION_APPOINTMENTCLICK
public static final ControlActionDef ACTION_CHECKAPPOINTMENT
public static final ControlActionDef ACTION_CHECKDATE
public static final ControlActionDef ACTION_ADDAPPOINTMENT
public static final ControlActionDef ACTION_PRINTLIST
public static final ControlActionDef ACTION_EXPORTLIST
public static final ControlActionDef ACTION_SWAPSELECTED
public static final ControlActionDef ACTION_SWAPALL
public static final ControlActionDef ACTION_LOADMENU
private static java.util.Hashtable registry
private java.lang.String action
do[action]()
.
private java.lang.Class[] types
Constructor Detail |
public ControlActionDef(java.lang.String actionCode, java.lang.Class[] types)
actionCode
- Name of the Actiontypes
- Parameter of the actionMethod Detail |
public static void registerActionDefinition(ControlActionDef def)
def
- The action definitionpublic static boolean isRegistered(java.lang.String action)
action
- The action name to check
true
if the action is already registered
in the registrypublic static ControlActionDef query(java.lang.String code)
code
- String to parse
null
public static ControlActionDef parse(java.lang.String code)
code
- String to parse
public boolean equals(java.lang.Object obj)
obj
- String to compare
public int hashCode()
Object.hashCode()
public ControlAction createInstance(PainterContext ctx)
ctx
- the painter context
public ControlAction createInstance(Control ctrl)
ctrl
- Control
public ControlAction createInstance(Control ctrl, java.lang.String actionName)
ctrl
- ControlactionName
- Action name
public int getFormalParameterCount()
public java.lang.Class[] getFormalParameterTypes()
public java.lang.Object[] mapActualParameter(ControlRequestContext ctx, java.lang.String[] paramStr) throws java.lang.Exception
ctx
- ControlRequestContextparamStr
- Parameter
java.lang.Exception
- If an Exception occurredpublic java.lang.Class getParameterType(int index)
index
- Parameter Index
public void checkType(int index, java.lang.Class type)
index
- Indextype
- Typepublic java.lang.String getName()
public java.lang.String getAction()
public java.lang.Class[] getTypes()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |