|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.DefaultButtonModel
org.jvnet.substance.utils.CompositeButtonModel
public class CompositeButtonModel
Composite button model that tracks changes to one primary and any number of secondary button models for composite rollover effects. This model can be used to "simulate" rollover effects on the primary component when the actual rollover happens on one of the secondary components. An example is a scroll bar. When the mouse enters one of the scroll buttons, the scroll track is highlighted as well.
Field Summary | |
---|---|
protected javax.swing.ButtonModel |
primaryModel
The primary model. |
protected javax.swing.ButtonModel[] |
secondaryModels
The secondary models. |
Fields inherited from class javax.swing.DefaultButtonModel |
---|
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask |
Constructor Summary | |
---|---|
CompositeButtonModel(javax.swing.ButtonModel primaryModel,
javax.swing.AbstractButton... secondaryButtons)
Creates a new composite button model. |
|
CompositeButtonModel(javax.swing.ButtonModel primaryModel,
javax.swing.ButtonModel... secondaryModels)
Creates a new composite button model. |
Method Summary | |
---|---|
boolean |
isArmed()
|
boolean |
isEnabled()
|
boolean |
isPressed()
|
boolean |
isRollover()
|
boolean |
isSelected()
|
Methods inherited from class javax.swing.DefaultButtonModel |
---|
addActionListener, addChangeListener, addItemListener, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.ButtonModel primaryModel
protected javax.swing.ButtonModel[] secondaryModels
Constructor Detail |
---|
public CompositeButtonModel(javax.swing.ButtonModel primaryModel, javax.swing.ButtonModel... secondaryModels)
primaryModel
- The primary model.secondaryModels
- The secondary models.public CompositeButtonModel(javax.swing.ButtonModel primaryModel, javax.swing.AbstractButton... secondaryButtons)
primaryModel
- The primary model.secondaryButtons
- The secondary buttons.Method Detail |
---|
public boolean isRollover()
isRollover
in interface javax.swing.ButtonModel
isRollover
in class javax.swing.DefaultButtonModel
public boolean isArmed()
isArmed
in interface javax.swing.ButtonModel
isArmed
in class javax.swing.DefaultButtonModel
public boolean isEnabled()
isEnabled
in interface javax.swing.ButtonModel
isEnabled
in class javax.swing.DefaultButtonModel
public boolean isPressed()
isPressed
in interface javax.swing.ButtonModel
isPressed
in class javax.swing.DefaultButtonModel
public boolean isSelected()
isSelected
in interface javax.swing.ButtonModel
isSelected
in class javax.swing.DefaultButtonModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |