|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.essex.common.action.impl.ActionServiceImpl
public class ActionServiceImpl
Created Date: 01-Nov-2003
Constructor Summary | |
---|---|
ActionServiceImpl()
|
Method Summary | |
---|---|
void |
add(java.io.File actionXMLFile,
KeyMap keyMap)
Adds all the XML files from the given directory |
void |
add(java.lang.String actionXMLFile,
KeyMap keyMap)
Adds all the XML files from the given directory |
void |
addAll(java.io.File actionXMLDir,
KeyMap keyMap)
Adds all the XML files from the given directory |
void |
destroy()
Destroy the service |
javax.swing.Action |
get(java.lang.String actionId,
java.util.Locale currentLocale)
|
javax.swing.Action |
getAction(java.lang.String actionId)
|
javax.swing.Action |
getAction(java.lang.String actionId,
java.util.Locale currentLocale)
|
ActionDescriptor |
getAction(java.lang.String appId,
java.lang.String actionId)
|
ActionDescriptor |
getActionDescriptor(java.lang.String actionId)
|
ActionGroupDescriptor |
getActionGroup(java.lang.String actionGroupId)
|
ActionGroupDescriptor[] |
getActionGroups(java.lang.String appId)
|
ActionDescriptor[] |
getToolbarActions(java.lang.String appId)
Getts all the actions for the given application and toolbar |
void |
initialise()
Initialise the service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionServiceImpl()
Method Detail |
---|
public void add(java.io.File actionXMLFile, KeyMap keyMap) throws XMLParseException, java.io.FileNotFoundException
add
in interface ActionService
actionXMLFile
- - Must be a filekeyMap
-
XMLParseException
- - If actionXMLFile is not a file or it cannot parse
the file
java.io.FileNotFoundException
public void add(java.lang.String actionXMLFile, KeyMap keyMap) throws XMLParseException
add
in interface ActionService
actionXMLFile
- - Must be a filekeyMap
-
XMLParseException
- - If actionXMLFile is not a file or it cannot parse
the filepublic void addAll(java.io.File actionXMLDir, KeyMap keyMap) throws XMLParseException, java.io.FileNotFoundException
addAll
in interface ActionService
actionXMLDir
- - Must be a directorykeyMap
-
XMLParseException
- - If actionXMLDir is not a directory or it cannot parse
any of the files in that directory
java.io.FileNotFoundException
public javax.swing.Action get(java.lang.String actionId, java.util.Locale currentLocale) throws ActionCreationException
get
in interface ActionService
actionId
- currentLocale
-
ActionCreationException
public ActionDescriptor getActionDescriptor(java.lang.String actionId)
getActionDescriptor
in interface ActionService
actionId
-
public javax.swing.Action getAction(java.lang.String actionId)
getAction
in interface ActionService
actionId
-
public javax.swing.Action getAction(java.lang.String actionId, java.util.Locale currentLocale)
getAction
in interface ActionService
actionId
- currentLocale
-
public ActionGroupDescriptor getActionGroup(java.lang.String actionGroupId)
getActionGroup
in interface ActionService
actionGroupId
-
public ActionDescriptor getAction(java.lang.String appId, java.lang.String actionId)
getAction
in interface ActionService
appId
- actionId
-
public ActionDescriptor[] getToolbarActions(java.lang.String appId)
getToolbarActions
in interface ActionService
appId
-
public ActionGroupDescriptor[] getActionGroups(java.lang.String appId)
getActionGroups
in interface ActionService
public void initialise() throws InitialisationException
initialise
in interface Service
InitialisationException
public void destroy() throws DestructionException, ShutdownCancelledException
destroy
in interface Service
DestructionException
ShutdownCancelledException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |