|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface ButtonModelInterface
ButtonModelInterface is an interface to access a ButtonModel
that holds the state information about a specific button.
BaseButton,
ButtonListenerInterface| Method Summary | |
|---|---|
abstract java.lang.String |
getActionCommand()
Get the ActionCommand used when an ActionEvent is sent |
abstract char |
getKeyAccelerator()
Get the key that is used to trigger the button. |
abstract int |
getNextState()
Get the next state of the ButtonModel if it has multiple states. |
abstract int |
getPrevState()
Get the previous state of the ButtonModel if it has multiple states. |
abstract SelectionGroupInterface |
getSelectionGroup()
Get the SelectionGroupInterface object used to provide a single selection behavior of a group of buttons. |
abstract int |
getState()
Get the state of the buttonModel. |
abstract int |
getStateCount()
Get the number of possible states for the buttonModel. |
abstract boolean |
isArmed()
Return if the button is armed. |
abstract boolean |
isDisabled()
Return if the button is disabled. |
abstract boolean |
isPressed()
Return if the button is pressed. |
abstract boolean |
isRollover()
Return if the button is rollover. |
abstract boolean |
isSelected()
Return if the button is selected. |
abstract void |
setActionCommand(java.lang.String cmd)
Set the ActionCommand used when an ActionEvent is sent |
abstract void |
setArmed(boolean armed)
Set the button armed state. |
abstract void |
setDisabled(boolean disabled)
Set the button disabled state. |
abstract void |
setKeyAccelerator(char key)
Set the key that is used to trigger the button. |
abstract void |
setPressed(boolean pressed)
Set the button pressed state. |
abstract void |
setRollover(boolean rollover)
Set the button rollover state. |
abstract void |
setSelected(boolean selected)
Set the button selected state. |
abstract void |
setSelectionGroup(SelectionGroupInterface selectionGroup)
Set the selectionGroup used to provide singleSelection behavior to a group of buttons. |
abstract void |
setState(int state)
Set the state of the button. |
| Methods inherited from interface com.sas.awt.ActionSource |
|---|
addActionListener, removeActionListener |
| Methods inherited from interface com.sas.beans.PropertyChangeSource |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
java.lang.String getActionCommand()
setActionCommand(java.lang.String),
ActionEventchar getKeyAccelerator()
setKeyAccelerator(char)int getNextState()
int getPrevState()
SelectionGroupInterface getSelectionGroup()
setSelectionGroup(com.sas.visuals.SelectionGroupInterface)int getState()
setState(int)int getStateCount()
boolean isArmed()
setArmed(boolean)boolean isDisabled()
setDisabled(boolean)boolean isRollover()
setRollover(boolean)boolean isPressed()
setPressed(boolean)boolean isSelected()
setSelected(boolean)void setActionCommand(java.lang.String cmd)
getActionCommand(),
ActionEventvoid setArmed(boolean armed)
armed - true if armed, false otherwise.isArmed()void setDisabled(boolean disabled)
disabled - true if disabled, false otherwise.isDisabled()void setKeyAccelerator(char key)
getKeyAccelerator()void setPressed(boolean pressed)
pressed - true if pressed, false otherwise.isPressed()void setRollover(boolean rollover)
rollover - true if rollover, false otherwise.isRollover()void setSelected(boolean selected)
selected - true if selected, false otherwise.isSelected(),
ItemSelectablevoid setSelectionGroup(SelectionGroupInterface selectionGroup)
selectionGroup - selectionGroup to add button to.getSelectionGroup()void setState(int state)
state - the button stategetState()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||