public class ConfigField extends Object
MetaDataPanel
Constructor and Description |
---|
ConfigField(String pn,
String cs,
boolean mv,
JComponent c) |
Modifier and Type | Method and Description |
---|---|
void |
clearDirty()
To be called when the CPE descriptor is saved.
|
String |
getClassString() |
JComponent |
getFieldComponent() |
Object |
getFieldValue() |
String |
getParameterName() |
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() |
void |
setFieldValue(Object fieldValue) |
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)
public boolean isModified()
public boolean isDirty()
public void clearDirty()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.