|
|||||||||
| 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.ButtonModelisRollover in class javax.swing.DefaultButtonModelpublic boolean isArmed()
isArmed in interface javax.swing.ButtonModelisArmed in class javax.swing.DefaultButtonModelpublic boolean isEnabled()
isEnabled in interface javax.swing.ButtonModelisEnabled in class javax.swing.DefaultButtonModelpublic boolean isPressed()
isPressed in interface javax.swing.ButtonModelisPressed in class javax.swing.DefaultButtonModelpublic boolean isSelected()
isSelected in interface javax.swing.ButtonModelisSelected in class javax.swing.DefaultButtonModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||