|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schwarzrot.ui.action.support.AbstractActionHandler
de.schwarzrot.ui.action.DesktopActionHandler
public class DesktopActionHandler
the ActionHandler for user-actions common to all applications, like opening an application, or terminate the game ...
| Field Summary | |
|---|---|
protected Desktop |
desktop
|
protected static MessageSource |
msgSource
|
| Constructor Summary | |
|---|---|
DesktopActionHandler(String name)
|
|
| Method Summary | |
|---|---|
JMenu |
createSubMenu(String cmd)
will be called for any enum, that has the suffix '_sub'. |
boolean |
doLogin()
|
void |
doPreferences(ActionEvent e)
|
Enum<?>[] |
getCommands()
return the (sub-)set of action-enums, that should go into the menuebar. |
RootWindowHandler |
getDesktop()
|
Enum<?>[] |
getPopupCommands(Object context)
return the (sub-)set of action-enums, that should form the popup context menue |
String[] |
getSwitchCmds()
|
Enum<?>[] |
getToolBarCommands()
return the (sub-)set of action-enums, that should be accessible by toolbar buttons |
void |
init()
used to setup all handled actions |
void |
init(Collection<Application<?>> apps)
|
void |
setDesktop(Desktop desktop)
|
| Methods inherited from class de.schwarzrot.ui.action.support.AbstractActionHandler |
|---|
createExtraToolBar, createPopup, createPopup, createSubMenu, createToolBar, enableAction, enableAction, findAction, findAction, findAction, getAction, getExtraToolBarCommands, getName, init, putAction, setEnabled, setName, setupAction, setupAction, setupAction, setupAction, setupAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static MessageSource msgSource
protected Desktop desktop
| Constructor Detail |
|---|
public DesktopActionHandler(String name)
| Method Detail |
|---|
public JMenu createSubMenu(String cmd)
ActionHandler
createSubMenu in interface ActionHandlercreateSubMenu in class AbstractActionHandlercmd - the string representation of the enum that triggered the
submenu creation
public boolean doLogin()
public void doPreferences(ActionEvent e)
public final RootWindowHandler getDesktop()
public Enum<?>[] getPopupCommands(Object context)
ActionHandler
context - the context object to create the popup for. May be null.
public final String[] getSwitchCmds()
public Enum<?>[] getToolBarCommands()
ActionHandler
public void init()
ActionHandler
init in interface ActionHandlerinit in class AbstractActionHandlerpublic void init(Collection<Application<?>> apps)
public final void setDesktop(Desktop desktop)
public Enum<?>[] getCommands()
ActionHandler
|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||