public class DashboardPrefs extends java.lang.Object implements PropertyHolder
| Modifier and Type | Field and Description |
|---|---|
BooleanProperty |
autoShowWidgets |
FileProperty |
csvFile |
IntegerListProperty |
grid_heights |
IntegerListProperty |
grid_widths |
IntegerProperty |
height |
BooleanProperty |
hideMenu |
BooleanProperty |
logToCSV |
FileProperty |
saveFile |
IntegerProperty |
team |
IntegerProperty |
width |
IntegerProperty |
x |
IntegerProperty |
y |
| Constructor and Description |
|---|
DashboardPrefs(DashboardFrame frame) |
| Modifier and Type | Method and Description |
|---|---|
static DashboardPrefs |
getInstance() |
java.util.Map<java.lang.String,Property> |
getProperties()
Returns a mapping between every property name and the corresponding property.
|
void |
propertyChanged(Property property)
This method will be called after the given
Property's value
has changed. |
boolean |
validatePropertyChange(Property property,
java.lang.Object value)
This method allows the
PropertyHolder to veto whether or not the
given Property should change to the given value. |
public final IntegerProperty team
public final BooleanProperty hideMenu
public final BooleanProperty autoShowWidgets
public final IntegerListProperty grid_widths
public final IntegerListProperty grid_heights
public final IntegerProperty x
public final IntegerProperty y
public final IntegerProperty width
public final IntegerProperty height
public final FileProperty saveFile
public final BooleanProperty logToCSV
public final FileProperty csvFile
public DashboardPrefs(DashboardFrame frame)
public static DashboardPrefs getInstance()
public java.util.Map<java.lang.String,Property> getProperties()
PropertyHoldergetProperties in interface PropertyHolderpublic boolean validatePropertyChange(Property property, java.lang.Object value)
PropertyHolderPropertyHolder to veto whether or not the
given Property should change to the given value.
It is called whenever setValue(...)
is called.
It is called only when the value if the value is acceptable.
In other words, it must not be null and it must correspond to
the type of element that the Property accepts. So if the given
Property is an IntegerProperty, then value will
be a non-null Integer object.
Note that this method will not be called when a property receives its value from a save file
validatePropertyChange in interface PropertyHolderproperty - the Propertyvalue - the value to change it topublic void propertyChanged(Property property)
PropertyHolderProperty's value
has changed.propertyChanged in interface PropertyHolderproperty - the Property that changed