org.ow2.clif.scenario.isac.egui.plugins.gui
Class WidgetDescription

java.lang.Object
  extended by org.ow2.clif.scenario.isac.egui.plugins.gui.WidgetDescription

public class WidgetDescription
extends java.lang.Object

This class is the implementation of a widget description object, it will be used to create a widget with this description in order to edit some parameters

Author:
JC Meillaud, A Peyrard

Field Summary
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 Summary
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
 
Method Summary
 java.lang.String getLabel()
           
 java.util.Map<java.lang.String,java.lang.Object> getParams()
           
 java.lang.String getText()
           
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
No widget should have this dummy type

See Also:
Constant Field Values

TEXT_FIELD

public static final int TEXT_FIELD
A simple text field

See Also:
Constant Field Values

RADIO_GROUP

public static final int RADIO_GROUP
A radio button group

See Also:
Constant Field Values

CHECK_BOX

public static final int CHECK_BOX
A check box group

See Also:
Constant Field Values

GROUP

public static final int GROUP
A group for grouping multiple widget

See Also:
Constant Field Values

COMBO

public static final int COMBO
A combo for grouping values

See Also:
Constant Field Values

NFIELD

public static final int NFIELD
A nfield for editing n values

See Also:
Constant Field Values

TABLE

public static final int TABLE
A table widget

See Also:
Constant Field Values
Constructor Detail

WidgetDescription

public 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

Parameters:
t - The type of the widget
text - The text of the widget if label is not defined (the name of the param)
label - The label of the widget
p - The parameters to build the widget
Method Detail

getParams

public java.util.Map<java.lang.String,java.lang.Object> getParams()
Returns:
Returns the params.

getText

public java.lang.String getText()
Returns:
Returns the text.

getType

public int getType()
Returns:
Returns the type.

getLabel

public java.lang.String getLabel()
Returns:
Returns the label.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Return a representation of the WidgetDescription