com.l2fprod.common.application.core
Class DefaultAppContext
java.lang.Object
com.l2fprod.common.application.core.DefaultAppContext
- All Implemented Interfaces:
- ActionManager, AppContext, CommandContext, SelectionManager, SelectionListener, java.util.EventListener
public class DefaultAppContext
- extends java.lang.Object
- implements AppContext, SelectionManager, ActionManager, CommandContext, SelectionListener
DefaultAppContext.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAppContext
public DefaultAppContext()
getActions
public ActionManager getActions()
- Specified by:
getActions
in interface AppContext
getSelectionManager
public SelectionManager getSelectionManager()
- Specified by:
getSelectionManager
in interface AppContext
- Specified by:
getSelectionManager
in interface CommandContext
getService
public java.lang.Object getService(java.lang.Object key)
- Description copied from interface:
CommandContext
- Get the service, object, resource associated with the given key
- Specified by:
getService
in interface AppContext
- Specified by:
getService
in interface CommandContext
- Returns:
- the Object associated with
key
<
registerService
public void registerService(java.lang.Object key,
java.lang.Object value)
- Specified by:
registerService
in interface AppContext
getSelection
public Selection getSelection()
- Specified by:
getSelection
in interface SelectionManager
getFocusOwner
public java.awt.Component getFocusOwner()
- Specified by:
getFocusOwner
in interface SelectionManager
add
public void add(javax.swing.Action action)
- Specified by:
add
in interface ActionManager
remove
public void remove(javax.swing.Action action)
- Specified by:
remove
in interface ActionManager
get
public javax.swing.Action get(java.lang.String actionId)
- Specified by:
get
in interface ActionManager
updateActions
public void updateActions()
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
- Update actions whenever the selection changes
- Specified by:
selectionChanged
in interface SelectionListener
addSelectionListener
public void addSelectionListener(SelectionListener listener)
- Specified by:
addSelectionListener
in interface SelectionManager
removeSelectionListener
public void removeSelectionListener(SelectionListener listener)
- Specified by:
removeSelectionListener
in interface SelectionManager