uk.ac.essex.common.action.impl
Class ActionDescriptorImpl

java.lang.Object
  extended by uk.ac.essex.common.action.impl.ActionDescriptorImpl
All Implemented Interfaces:
ActionDescriptor

public class ActionDescriptorImpl
extends java.lang.Object
implements ActionDescriptor


Created Date: 01-Nov-2003

You should have received a copy of Lesser GNU public license with this code. If not please visit this site


Constructor Summary
ActionDescriptorImpl(Action actionDescriptorXML, LanguageService languageService, KeyMap keyMap)
           
 
Method Summary
 javax.swing.Action getAction(java.util.Locale currentLocale)
          Get an action for the current application locale.
 java.lang.String getClassName()
           
 java.lang.String getDescription()
           
 boolean getDisabled()
           
 java.lang.String getIcon()
           
 java.lang.String getId()
          *************************************************************************** ActionDescriptor ***************************************************************************
 long getIndex()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 boolean getShowOnToolbar()
           
 boolean hasIcon()
           
 boolean hasToolBarReferences()
          Determines if this action is bound to any toolbars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionDescriptorImpl

public ActionDescriptorImpl(Action actionDescriptorXML,
                            LanguageService languageService,
                            KeyMap keyMap)
                     throws ActionCreationException
Throws:
ActionCreationException
Method Detail

getId

public java.lang.String getId()
*************************************************************************** ActionDescriptor ***************************************************************************

Specified by:
getId in interface ActionDescriptor

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface ActionDescriptor
Returns:

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ActionDescriptor

getDisabled

public boolean getDisabled()

getIcon

public java.lang.String getIcon()
Specified by:
getIcon in interface ActionDescriptor

getIndex

public long getIndex()
Specified by:
getIndex in interface ActionDescriptor

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface ActionDescriptor

getName

public java.lang.String getName()
Specified by:
getName in interface ActionDescriptor

getShowOnToolbar

public boolean getShowOnToolbar()

hasIcon

public boolean hasIcon()
Specified by:
hasIcon in interface ActionDescriptor

getAction

public javax.swing.Action getAction(java.util.Locale currentLocale)
                             throws ActionCreationException
Get an action for the current application locale.

Specified by:
getAction in interface ActionDescriptor
Returns:
Action - Internationalised action representing this description
Throws:
ActionCreationException

hasToolBarReferences

public boolean hasToolBarReferences()
Determines if this action is bound to any toolbars

Specified by:
hasToolBarReferences in interface ActionDescriptor
Returns: