net.sf.mmm.ui.toolkit.base.feature
Class AbstractAction

java.lang.Object
  extended by net.sf.mmm.ui.toolkit.base.feature.AbstractAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
PrintAction, PrintAction, SimpleAction

public abstract class AbstractAction
extends Object
implements Action

This is the abstract base implementation of the Action interface.

Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Constructor Summary
AbstractAction()
          The constructor.
AbstractAction(String displayName)
          The constructor.
 
Method Summary
 ButtonStyle getButtonStyle()
          This method gets the style of this action.
 UIPicture getIcon()
          This method gets the icon used to visualize this action.
 String getId()
          This method gets the id of this action.
 String getName()
          This method gets the display name of the action.
 void setButtonStyle(ButtonStyle newStyle)
          This method sets the style.
 void setIcon(UIPicture newIcon)
          This method set the icon.
 void setId(String newId)
          This method sets the id.
 void setName(String newName)
          This method sets the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.mmm.ui.toolkit.api.feature.Action
getActionListener
 

Constructor Detail

AbstractAction

public AbstractAction()
The constructor.


AbstractAction

public AbstractAction(String displayName)
The constructor.

Parameters:
displayName - is the name.
Method Detail

setName

public void setName(String newName)
This method sets the name.

Parameters:
newName - is the new name.

getName

public String getName()
This method gets the display name of the action. This is used as text for the widget that visualizes this action.

Specified by:
getName in interface Action
Returns:
the name of this action.

setId

public void setId(String newId)
This method sets the id.

Parameters:
newId - is the new id to set.

getId

public String getId()
This method gets the id of this action. It is used as object-id for the widget that visualizes this action.

Specified by:
getId in interface Action
Returns:
the id of this action or null if the default id of the widget should NOT be changed.

setButtonStyle

public void setButtonStyle(ButtonStyle newStyle)
This method sets the style.

Parameters:
newStyle - is the style to set.

getButtonStyle

public ButtonStyle getButtonStyle()
This method gets the style of this action.

Specified by:
getButtonStyle in interface Action
Returns:
the action style.

setIcon

public void setIcon(UIPicture newIcon)
This method set the icon.

Parameters:
newIcon - is the new icon to set.

getIcon

public UIPicture getIcon()
This method gets the icon used to visualize this action.

Specified by:
getIcon in interface Action
Returns:
the icon for this action or null if no icon is associated.


Copyright © 2001-2008 mmm-Team. All Rights Reserved.