|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.DefaultButtonModel javax.swing.JToggleButton.ToggleButtonModel oracle.javatools.ui.TriStateButtonModel
public class TriStateButtonModel
A button model that has an extra state "Partial" to indicate a state between selected and unselected. Is subverts the isArmed and isRollover states of the standard toggle button model to create the partial state.
Field Summary |
---|
Fields inherited from class javax.swing.DefaultButtonModel |
---|
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask |
Constructor Summary | |
---|---|
TriStateButtonModel()
|
Method Summary | |
---|---|
boolean |
canUserSetPartial()
|
boolean |
getDirection()
|
boolean |
isPartial()
|
void |
setCanUserSetPartial(boolean userCanSetPartial)
|
void |
setDirection(boolean directionTruePartialFalse)
Set the order of the partial state when cycling through the states. |
void |
setPartial(boolean isPartial)
|
void |
setPressed(boolean b)
When the button is pressed, cycle the model to the next state. |
void |
setSelected(boolean b)
|
Methods inherited from class javax.swing.JToggleButton.ToggleButtonModel |
---|
isSelected |
Methods inherited from class javax.swing.DefaultButtonModel |
---|
addActionListener, addChangeListener, addItemListener, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, isArmed, isEnabled, isPressed, isRollover, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setRollover |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TriStateButtonModel()
Method Detail |
---|
public boolean isPartial()
public void setPartial(boolean isPartial)
public void setPressed(boolean b)
setPressed
in interface javax.swing.ButtonModel
setPressed
in class javax.swing.JToggleButton.ToggleButtonModel
b
- public void setSelected(boolean b)
setSelected
in interface javax.swing.ButtonModel
setSelected
in class javax.swing.JToggleButton.ToggleButtonModel
public void setCanUserSetPartial(boolean userCanSetPartial)
userCanSetPartial
- if true then then the partial state will be cycled through
as the user clicks repeatedly on the checkbox. If false the checkbox will
cycle from true to false and back again just like a regular checkbox.public boolean canUserSetPartial()
public void setDirection(boolean directionTruePartialFalse)
directionTruePartialFalse
- if true then the Partial state will appear
when changing from true to false. If false the Partial state
will appear when changing from false to true.public boolean getDirection()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |