public class ConfigField extends Object
MetaDataPanel| Constructor and Description |
|---|
ConfigField(String pn,
String cs,
boolean mv,
JComponent c)
Instantiates a new config field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearDirty()
To be called when the CPE descriptor is saved.
|
String |
getClassString()
Gets the class string.
|
JComponent |
getFieldComponent()
Gets the field component.
|
Object |
getFieldValue()
Gets the field value.
|
String |
getParameterName()
Gets the parameter name.
|
boolean |
isDirty()
Returns whether this field has been modified since the last time the CPE descriptor was saved.
|
boolean |
isModified()
Returns whether this field has been modified from its original value.
|
boolean |
isMultiValued()
Checks if is multi valued.
|
void |
setFieldValue(Object fieldValue)
Sets the field value.
|
public ConfigField(String pn, String cs, boolean mv, JComponent c)
pn - Resource parameter name e.g. outputDircs - String value of Java type used for value e.g. Integermv - true if the value is a multi-value arrayc - Component used to represent field - Could be JTextField, JCheckBox, FileSelector or
ListSelectorpublic String getParameterName()
public String getClassString()
public JComponent getFieldComponent()
public boolean isMultiValued()
public Object getFieldValue()
public void setFieldValue(Object fieldValue)
fieldValue - the new field valuepublic boolean isModified()
public boolean isDirty()
public void clearDirty()
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.