|
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 | |
---|---|
java.lang.String |
getActionCommand()
Get the ActionCommand used when an ActionEvent is sent |
char |
getKeyAccelerator()
Get the key that is used to trigger the button. |
int |
getNextState()
Get the next state of the ButtonModel if it has multiple states. |
int |
getPrevState()
Get the previous state of the ButtonModel if it has multiple states. |
SelectionGroupInterface |
getSelectionGroup()
Get the SelectionGroupInterface object used to provide a single selection behavior of a group of buttons. |
int |
getState()
Get the state of the buttonModel. |
int |
getStateCount()
Get the number of possible states for the buttonModel. |
boolean |
isArmed()
Return if the button is armed. |
boolean |
isDisabled()
Return if the button is disabled. |
boolean |
isPressed()
Return if the button is pressed. |
boolean |
isRollover()
Return if the button is rollover. |
boolean |
isSelected()
Return if the button is selected. |
void |
setActionCommand(java.lang.String cmd)
Set the ActionCommand used when an ActionEvent is sent |
void |
setArmed(boolean armed)
Set the button armed state. |
void |
setDisabled(boolean disabled)
Set the button disabled state. |
void |
setKeyAccelerator(char key)
Set the key that is used to trigger the button. |
void |
setPressed(boolean pressed)
Set the button pressed state. |
void |
setRollover(boolean rollover)
Set the button rollover state. |
void |
setSelected(boolean selected)
Set the button selected state. |
void |
setSelectionGroup(SelectionGroupInterface selectionGroup)
Set the selectionGroup used to provide singleSelection behavior to a group of buttons. |
void |
setState(int state)
Set the state of the button. |
Methods inherited from interface com.sas.awt.ActionSource |
---|
addActionListener, removeActionListener |
Method Detail |
---|
java.lang.String getActionCommand()
setActionCommand(java.lang.String)
,
ActionEvent
char 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()
,
ActionEvent
void 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()
,
ItemSelectable
void 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 |