public class TextFieldEditor extends AbstractParamEditor
JTextField
or JTextArea
.Constructor and Description |
---|
TextFieldEditor(Parameter parameter) |
Modifier and Type | Method and Description |
---|---|
JComponent |
getComponent()
|
JComponent |
getEditorComponent()
Gets the UI component used to edit the parameter's value.
|
JTextComponent |
getTextComponent() |
protected void |
initUI()
Initialized the UI of this editor.
|
void |
updateUI()
Tells the UI to update it's state.
|
checkParameterValue, getDefaultActionListener, getDefaultInputVerifier, getExceptionHandler, getLabelComponent, getParameter, getPhysUnitLabelComponent, handleParamException, isEnabled, nameComponent, nameEditorComponent, nameLabelComponent, nameUnitComponent, reconfigureUI, setDefaultLabelComponent, setDefaultPhysUnitLabelComponent, setEnabled, setLabelComponent, setParameterValue, setPhysUnitLabelComponent
public TextFieldEditor(Parameter parameter)
public JTextComponent getTextComponent()
public JComponent getEditorComponent()
public JComponent getComponent()
getComponent
in interface ParamEditor
getComponent
in class AbstractParamEditor
JTextField
componet or a JTextArea
wrapped with e.g. a JScrollPane
.getEditorComponent()
protected void initUI()
AbstractParamEditor
The default implementation creates a label component for the parameter's "label" and "physicalUnit" properties.
initUI
in class AbstractParamEditor
public void updateUI()
AbstractParamEditor
Note: If you override this method, you should call this base class version first.
updateUI
in interface ParamEditor
updateUI
in class AbstractParamEditor
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.