|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.swing.util.ButtonUtil
public class ButtonUtil
Utilities for buttons.
| Nested Class Summary | |
|---|---|
protected static class |
ButtonUtil.ButtonConfigBinding
Used for bindToProperty(java.lang.String, com.samskivert.util.PrefsConfig, javax.swing.AbstractButton, boolean). |
| Field Summary | |
|---|---|
protected static ActionListener |
_toggler
Our lazily-initialized toggling action listener. |
| Constructor Summary | |
|---|---|
ButtonUtil()
|
|
| Method Summary | |
|---|---|
static void |
bindToProperty(String property,
PrefsConfig config,
AbstractButton button,
boolean defval)
Binds the supplied button to the named boolean property in the supplied config repository. |
static ActionListener |
cycleToProperty(String property,
PrefsConfig config,
AbstractButton button,
int[] values)
Configure the specified button to cause the specified property to cycle through the specified values whenever the button is pressed. |
static void |
setToggling(AbstractButton b)
Set the specified button such that it alternates between being selected and not whenever it is pushed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ActionListener _toggler
| Constructor Detail |
|---|
public ButtonUtil()
| Method Detail |
|---|
public static void setToggling(AbstractButton b)
public static void bindToProperty(String property,
PrefsConfig config,
AbstractButton button,
boolean defval)
public static ActionListener cycleToProperty(String property,
PrefsConfig config,
AbstractButton button,
int[] values)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||