com.softwareag.cis.plugin.adapter.command
Class AbstractButtonCommand
java.lang.Object
com.softwareag.cis.plugin.adapter.command.AbstractButtonCommand
- All Implemented Interfaces:
- com.softwareag.cis.server.util.ICommand
- Direct Known Subclasses:
- CancelButtonCommand, OKButtonCommand
public abstract class AbstractButtonCommand
- extends java.lang.Object
- implements com.softwareag.cis.server.util.ICommand
Field Summary |
static java.lang.String |
rcs_id
|
Method Summary |
CommonAdapter |
getAdapter()
Get the adapter of the current command |
abstract int |
getKeyCode()
Get code of key to be pressed to trigger this command |
java.util.Locale |
getLocale()
Get the locale to be used for this ButtonCommand |
abstract java.lang.String |
getTitle()
Get the label to be used for this command |
void |
setAdapter(CommonAdapter adapter)
Set the adapter of the current command |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.softwareag.cis.server.util.ICommand |
execute |
rcs_id
public static final java.lang.String rcs_id
- See Also:
- Constant Field Values
AbstractButtonCommand
public AbstractButtonCommand()
getTitle
public abstract java.lang.String getTitle()
- Get the label to be used for this command
- Returns:
- the localized label
getKeyCode
public abstract int getKeyCode()
- Get code of key to be pressed to trigger this command
- Returns:
- the keycode
- See Also:
BaseConstants
getLocale
public java.util.Locale getLocale()
- Get the locale to be used for this ButtonCommand
- Returns:
- the locale
setAdapter
public void setAdapter(CommonAdapter adapter)
- Set the adapter of the current command
- Parameters:
adapter
-
getAdapter
public CommonAdapter getAdapter()
- Get the adapter of the current command
- Returns:
- CommonAdapter - the adapter of the current command