![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
imp.gui.IComponent
imp.gui.TabularContainer
imp.gui.FieldsInput
public class FieldsInput
Defines a fields editor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
---|---|
FieldsInput |
add(int index,
Value format)
Adds a field format and return this. |
Value |
getValue()
Gets the input field values. |
void |
outputValue(String values)
Called when a value is output. |
void |
outputValue(Value values)
Called when a value is output. |
FieldsInput |
setValue(Value values)
Sets the default value and return this. |
Methods inherited from class imp.gui.TabularContainer |
---|
add, addSpace, get, length, setColumns |
Methods inherited from class imp.gui.IComponent |
---|
getBgcolor, getColor, getTextFont, getTitle, getTooltip, grab, refresh, setBgcolor, setColor, setHeight, setTextFont, setTitle, setTooltip, setWidth |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public FieldsInput add(int index, Value format)
index
- [optional, default is -1] Field index.
A value of -1 indicates the bottommost position. A value of 0 indicates the topmost position: higher position values are lower in the display.format
- string | <string name = .. value = .. items = .. /> |
number | <number name = .. value = .. min = .. max = .. step = ../> |
date | <date name = .. value = .. format = .. locale = .. /> |
color | <color name = .. value = .. /> |
option | <option name = .. value = .. items = .. /> |
password | <password name = .. value = .. /> |
plain-text | <plain-text name = .. value = .. /> |
wild | <wild/>
A wild field allows to create a new field defining with any name and with a value defined as string. |
no input but a title | <title value = .. /> |
no input but an external text (not rendered here) | <div> .. |
a ``validate'' button | <validate value = .. />
When a validate button is defined, output is performed if and only if the validate button is clicked, else the output is performed at each input. |
public Value getValue()
public void outputValue(String values)
values
- The input field values as a string.public void outputValue(Value values)
values
- The input field values.public FieldsInput setValue(Value values)
values
- The default field values.