org.nakedobjects.plugins.dnd.viewer.action
Class AbstractButtonAction

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.action.AbstractButtonAction
All Implemented Interfaces:
ButtonAction, UserAction
Direct Known Subclasses:
CancelAction, MessageDialogSpecification.CloseViewAction

public abstract class AbstractButtonAction
extends java.lang.Object
implements ButtonAction


Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.UserAction
DEBUG, EXPLORATION, USER
 
Constructor Summary
AbstractButtonAction(java.lang.String name)
           
AbstractButtonAction(java.lang.String name, boolean defaultButton)
           
 
Method Summary
 Consent disabled(View view)
          Indicate that this action is disabled
 java.lang.String getDescription(View view)
          Returns the description of the action.
 java.lang.String getHelp(View view)
          Returns the help text for the action.
 java.lang.String getName(View view)
          Returns the name of the action as the user will refer to it.
 NakedObjectActionType getType()
          Returns the type of action: user, exploration, debug, or a set.
 boolean isDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.dnd.UserAction
execute
 

Constructor Detail

AbstractButtonAction

public AbstractButtonAction(java.lang.String name)

AbstractButtonAction

public AbstractButtonAction(java.lang.String name,
                            boolean defaultButton)
Method Detail

disabled

public Consent disabled(View view)
Description copied from interface: UserAction
Indicate that this action is disabled

Specified by:
disabled in interface UserAction

getDescription

public java.lang.String getDescription(View view)
Description copied from interface: UserAction
Returns the description of the action.

Specified by:
getDescription in interface UserAction

getHelp

public java.lang.String getHelp(View view)
Description copied from interface: UserAction
Returns the help text for the action.

Specified by:
getHelp in interface UserAction

getName

public java.lang.String getName(View view)
Description copied from interface: UserAction
Returns the name of the action as the user will refer to it.

Specified by:
getName in interface UserAction

getType

public NakedObjectActionType getType()
Description copied from interface: UserAction
Returns the type of action: user, exploration, debug, or a set.

Specified by:
getType in interface UserAction

isDefault

public boolean isDefault()
Specified by:
isDefault in interface ButtonAction


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.