public class WidgetDescription
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CHECK_BOX
A check box group
|
static int |
COMBO
A combo for grouping values
|
static int |
GROUP
A group for grouping multiple widget
|
static int |
NFIELD
A nfield for editing n values
|
static int |
NONE
No widget should have this dummy type
|
static int |
RADIO_GROUP
A radio button group
|
static int |
TABLE
A table widget
|
static int |
TEXT_FIELD
A simple text field
|
Constructor and Description |
---|
WidgetDescription(int t,
java.lang.String text,
java.lang.String label,
java.util.Map<java.lang.String,java.lang.Object> p)
Build a new widget description element
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel() |
java.util.Map<java.lang.String,java.lang.Object> |
getParams() |
java.lang.String |
getText() |
int |
getType() |
java.lang.String |
toString() |
public static final int NONE
public static final int TEXT_FIELD
public static final int RADIO_GROUP
public static final int CHECK_BOX
public static final int GROUP
public static final int COMBO
public static final int NFIELD
public static final int TABLE
public WidgetDescription(int t, java.lang.String text, java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> p)
t
- The type of the widgettext
- The text of the widget if label is not defined (the name of the param)label
- The label of the widgetp
- The parameters to build the widgetpublic java.util.Map<java.lang.String,java.lang.Object> getParams()
public java.lang.String getText()
public int getType()
public java.lang.String getLabel()
public java.lang.String toString()
toString
in class java.lang.Object