com.sas.servlet.beans.mdtable
Class MDCommand

java.lang.Object
  |
  +--com.sas.servlet.beans.mdtable.MDCommand
Direct Known Subclasses:
DrillDownCommand, ScrollCommand

public abstract class MDCommand
extends Object

The MDCommand object is the base class for all commands that can be sent to the MDTable. A command represents data needed by the MDTable bean to preform a specified task, such as drill-down, up, or scroll.


Constructor Summary
MDCommand()
           
 
Method Summary
abstract  Object clone()
           
 boolean getActive()
          Returns the state of the command.
 String getAxis()
          Returns the axis relating to the command, ROW or COLUMN.
 String getName()
          Returns the name of the command.
 String getType()
          Returns the type of the command.
 void setActive(boolean b)
          Sets the state of the command.
 void setAxis(String axis)
          Sets the axis relating to the command, ROW or COLUMN.
 void setName(String name)
          Sets the name of the command.
 void setType(String type)
          Sets the type of the command.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MDCommand

public MDCommand()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()
Returns the name of the command.
Returns:
the name of the command.
See Also:
setName(java.lang.String)

setName

public void setName(String name)
Sets the name of the command.
Parameters:
name - the name of the command.
See Also:
getName()

getType

public String getType()
Returns the type of the command. Possible values are DRILLDOWN, UP, SCROLLDOWN, SCROLLDOWNMAX, SCROLLLUP, SCROLLUPMAX, SCROLLLEFT, SCROLLLEFTMAX, SCROLLRIGHT, SCROLLRIGHTMAX.
Returns:
the type of the command.
See Also:
setType(java.lang.String)

setType

public void setType(String type)
Sets the type of the command. Possible values are DRILLDOWN, UP, SCROLLDOWN, SCROLLDOWNMAX, SCROLLLUP, SCROLLUPMAX, SCROLLLEFT, SCROLLLEFTMAX, SCROLLRIGHT, SCROLLRIGHTMAX.
Parameters:
type - the type of the command.
See Also:
getType()

getActive

public boolean getActive()
Returns the state of the command. As commands are executed they are stored by MDTable. As each MDCommand is executed the object is stored in a stack and marked active or inactive in order, to enable the user to use the back & forward keys.
Returns:
the state of the command.
See Also:
setActive(boolean)

setActive

public void setActive(boolean b)
Sets the state of the command. As commands are executed they are stored by MDTable. As each MDCommand is executed the object is stored in a stack and mark active or inactive in order, to enable the user to use the back & forward keys.
Parameters:
b - the state of the command.
See Also:
getActive()

getAxis

public String getAxis()
Returns the axis relating to the command, ROW or COLUMN.
Returns:
the axis relating to the command.
See Also:
setAxis(java.lang.String)

setAxis

public void setAxis(String axis)
Sets the axis relating to the command, ROW or COLUMN.
Parameters:
axis - the axis relating to the command.
See Also:
getAxis()

clone

public abstract Object clone()
Overrides:
clone in class Object


Version: 1.2.20000317.001 Formatted: 2000/07/06 15:57:33PM