maspack.widgets
Class PropertyWidget
java.lang.Object
maspack.widgets.PropertyWidget
public class PropertyWidget
- extends java.lang.Object
Method Summary |
static PropertyModeButton |
addModeButton(LabeledControl widget,
InheritableProperty prop)
|
static void |
addModeButtonOrSpace(LabeledComponentBase widget,
Property prop)
|
static void |
addModeButtonSpace(LabeledComponentBase widget)
|
static boolean |
canCreate(PropertyInfo info)
|
static boolean |
canCreateWithSlider(PropertyInfo info)
|
static javax.swing.JComponent |
create(HasProperties host,
java.lang.String name)
|
static LabeledComponentBase |
create(HasProperties host,
java.lang.String name,
double min,
double max)
|
static LabeledComponentBase |
create(Property prop)
|
static LabeledComponentBase |
create(Property prop,
double min,
double max)
|
static LabeledComponentBase |
create(java.lang.String labelText,
HasProperties host,
java.lang.String name)
|
static LabeledComponentBase |
create(java.lang.String labelText,
HasProperties host,
java.lang.String name,
double min,
double max)
|
static void |
finishWidget(LabeledComponentBase widget,
Property prop)
|
static PropertyModeButton |
getModeButton(java.awt.Component comp)
|
static NumericInterval |
getNumericRange(Property prop)
|
static Property |
getProperty(LabeledComponentBase widget)
|
static boolean |
hasModeButton(java.awt.Component comp)
|
static boolean |
initializeWidget(LabeledComponentBase widget,
Property prop)
|
static void |
setModeAppearance(LabeledControl control,
java.awt.Container parent,
PropertyMode mode)
|
static void |
setSynchronizeObject(javax.swing.JComponent widget,
java.lang.Object syncObj)
|
static void |
updateValue(LabeledControl widget,
Property prop)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyWidget
public PropertyWidget()
create
public static javax.swing.JComponent create(HasProperties host,
java.lang.String name)
create
public static LabeledComponentBase create(HasProperties host,
java.lang.String name,
double min,
double max)
create
public static LabeledComponentBase create(java.lang.String labelText,
HasProperties host,
java.lang.String name)
create
public static LabeledComponentBase create(java.lang.String labelText,
HasProperties host,
java.lang.String name,
double min,
double max)
create
public static LabeledComponentBase create(Property prop,
double min,
double max)
getNumericRange
public static NumericInterval getNumericRange(Property prop)
canCreateWithSlider
public static boolean canCreateWithSlider(PropertyInfo info)
canCreate
public static boolean canCreate(PropertyInfo info)
create
public static LabeledComponentBase create(Property prop)
updateValue
public static void updateValue(LabeledControl widget,
Property prop)
finishWidget
public static void finishWidget(LabeledComponentBase widget,
Property prop)
initializeWidget
public static boolean initializeWidget(LabeledComponentBase widget,
Property prop)
hasModeButton
public static boolean hasModeButton(java.awt.Component comp)
getModeButton
public static PropertyModeButton getModeButton(java.awt.Component comp)
setSynchronizeObject
public static void setSynchronizeObject(javax.swing.JComponent widget,
java.lang.Object syncObj)
getProperty
public static Property getProperty(LabeledComponentBase widget)
addModeButton
public static PropertyModeButton addModeButton(LabeledControl widget,
InheritableProperty prop)
addModeButtonSpace
public static void addModeButtonSpace(LabeledComponentBase widget)
addModeButtonOrSpace
public static void addModeButtonOrSpace(LabeledComponentBase widget,
Property prop)
setModeAppearance
public static void setModeAppearance(LabeledControl control,
java.awt.Container parent,
PropertyMode mode)