public class ButtonUtil extends Object
Constructor and Description |
---|
ButtonUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 2015. All rights reserved.