Field.BeanTable, Field.CheckBox, Field.Date, Field.Double, Field.EnumCombo, Field.Int, Field.Password, Field.Text, Field.TextArea, Field.TextCombodebugPersistence, label, listenerList, name, popupMenu, previousValue, showFormat, storeData, validValue| Constructor and Description |
|---|
Field.CheckBox(String fldName,
String label,
boolean defValue,
PersistenceManager storeData)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_validate(StringBuffer buff)
See if edit value is valid, put error message in buff.
|
JComponent |
getEditComponent()
return the editing JComponent
|
protected Object |
getEditValue()
Get current value from editComponent
|
protected Object |
getStoreValue(Object defValue)
Get value from Store.
|
boolean |
isSelected()
Return the current value
|
protected void |
setEditValue(Object value)
Set current value of editComponent
|
void |
setSelected(boolean v)
Set value; if different from current value, store in PersistenceManager and
send event.
|
protected void |
setStoreValue(Object value)
Put new value into Store.
|
accept, acceptIfDifferent, addPopupMenuAction, addPropertyChangeListener, addStandardPopups, addValidator, dfrac, finish, getDeepEditComponent, getLabel, getName, getPersistenceManager, getToolTipText, getValue, isEditable, isEnabled, next, removePropertyChangeListener, restoreValue, sendEvent, setEditable, setEnabled, setNewValueFromStore, setToolTipText, setValue, validatepublic Field.CheckBox(String fldName, String label, boolean defValue, PersistenceManager storeData)
fldName - name of the field; must be unique within the storelabel - label to display to the userdefValue - default value to start with.storeData - store/fetch data from here, may be null.PrefPanel.addCheckBoxField(java.lang.String, java.lang.String, boolean)protected boolean _validate(StringBuffer buff)
public JComponent getEditComponent()
getEditComponent in class Fieldprotected Object getEditValue()
FieldgetEditValue in class Fieldprotected void setEditValue(Object value)
FieldsetEditValue in class Fieldprotected void setStoreValue(Object value)
FieldsetStoreValue in class Fieldprotected Object getStoreValue(Object defValue)
FieldgetStoreValue in class Fieldpublic boolean isSelected()
public void setSelected(boolean v)
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.