cz.cuni.jagrlib.reg
Class InfoParam

java.lang.Object
  extended by cz.cuni.jagrlib.reg.InfoParam

public class InfoParam
extends java.lang.Object

Parameter information.

Since:
0.25
See Also:
InfoParam.java

Field Summary
 java.lang.Object defaultValue
          Default value.
 java.lang.String description
          Description of parameter.
 InfoParamGUI infoGUI
          Information about parameter's GUI.
static java.lang.String IP_DESCR
          Description for combobox.
static java.lang.String IP_MAXVALUE
          Maximum value of parameter.
static java.lang.String IP_MINVALUE
          Minimum value of parameter.
static java.lang.String IP_STRING
          Display text of item of combobox.
static java.lang.String IP_TYPE
          Type of real value of item of combobox.
static java.lang.String IP_TYPE_BOOLEAN
          Type of parameter - Boolean.
static java.lang.String IP_TYPE_COMBO
          Type of parameter - Combo box.
static java.lang.String IP_TYPE_DOUBLE
          Type of parameter - Double.
static java.lang.String IP_TYPE_FLOAT
          Type of parameter - Float.
static java.lang.String IP_TYPE_INTEGER
          Type of parameter - Integer.
static java.lang.String IP_TYPE_LONG
          Type of parameter - Long.
static java.lang.String IP_TYPE_MULTILINE
          Type of parameter - multi-line string.
static java.lang.String IP_TYPE_SPEC
          Type of parameter - Special.
static java.lang.String IP_TYPE_STRING
          Type of parameter - String.
static java.lang.String IP_VALUE
          Real value of item of combobox.
static int MULTILINE_HEIGHT
          Multiline parameter height in lines.
 java.lang.String name
          Name of parameter.
 java.util.Map<java.lang.String,java.lang.Object> nextInfo
          All other information goes here..
 InfoModule owner
          Owner of parameter.
 int propManip
          Manipulator type.
 java.lang.String propManipClass
          Class-name for manipulation with special parameter (either fully-qualified or local in package cz.cuni.jagrlib.gui).
static java.lang.String TI_PARAM
           
 java.lang.String type
          Parameter type.
 java.lang.Object value
          Parameter value.
 java.util.Vector<java.util.Map<java.lang.String,java.lang.Object>> values
          Valid values of the parameter.
 boolean visible
          Visible parameter (GUI editable).
 
Constructor Summary
InfoParam()
           
InfoParam(java.lang.String _name, java.lang.String _type, java.lang.String _description, boolean _visible)
          Create a new InfoParam.
 
Method Summary
 void propEnd()
           
 void setBounds(java.lang.Object min, java.lang.Object max)
          Set parameter bounds.
 void setEnum(java.lang.String label, java.lang.Object value, java.lang.String descr)
           
protected  java.lang.String typeConvert(java.lang.String newType)
           
 int visibleLines()
          Returns visible height in lines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IP_STRING

public static final java.lang.String IP_STRING
Display text of item of combobox.

See Also:
Constant Field Values

IP_VALUE

public static final java.lang.String IP_VALUE
Real value of item of combobox.

See Also:
Constant Field Values

IP_TYPE

public static final java.lang.String IP_TYPE
Type of real value of item of combobox.

See Also:
Constant Field Values

IP_DESCR

public static final java.lang.String IP_DESCR
Description for combobox.

See Also:
Constant Field Values

IP_MINVALUE

public static final java.lang.String IP_MINVALUE
Minimum value of parameter.

See Also:
Constant Field Values

IP_MAXVALUE

public static final java.lang.String IP_MAXVALUE
Maximum value of parameter.

See Also:
Constant Field Values

IP_TYPE_STRING

public static final java.lang.String IP_TYPE_STRING
Type of parameter - String.

See Also:
Constant Field Values

IP_TYPE_MULTILINE

public static final java.lang.String IP_TYPE_MULTILINE
Type of parameter - multi-line string.

See Also:
Constant Field Values

IP_TYPE_INTEGER

public static final java.lang.String IP_TYPE_INTEGER
Type of parameter - Integer.

See Also:
Constant Field Values

IP_TYPE_LONG

public static final java.lang.String IP_TYPE_LONG
Type of parameter - Long.

See Also:
Constant Field Values

IP_TYPE_FLOAT

public static final java.lang.String IP_TYPE_FLOAT
Type of parameter - Float.

See Also:
Constant Field Values

IP_TYPE_DOUBLE

public static final java.lang.String IP_TYPE_DOUBLE
Type of parameter - Double.

See Also:
Constant Field Values

IP_TYPE_COMBO

public static final java.lang.String IP_TYPE_COMBO
Type of parameter - Combo box.

See Also:
Constant Field Values

IP_TYPE_BOOLEAN

public static final java.lang.String IP_TYPE_BOOLEAN
Type of parameter - Boolean.

See Also:
Constant Field Values

IP_TYPE_SPEC

public static final java.lang.String IP_TYPE_SPEC
Type of parameter - Special.

See Also:
Constant Field Values

TI_PARAM

public static final java.lang.String TI_PARAM
See Also:
Constant Field Values

MULTILINE_HEIGHT

public static final int MULTILINE_HEIGHT
Multiline parameter height in lines.

See Also:
Constant Field Values

name

public java.lang.String name
Name of parameter. Unique in one module.


type

public java.lang.String type
Parameter type.


value

public java.lang.Object value
Parameter value.


defaultValue

public java.lang.Object defaultValue
Default value.


description

public java.lang.String description
Description of parameter.


visible

public boolean visible
Visible parameter (GUI editable).


values

public java.util.Vector<java.util.Map<java.lang.String,java.lang.Object>> values
Valid values of the parameter.
Map contains HashMaps with information about combobox items: <String>, <Value>, <Type>
or boundary values (min, max).


propManip

public int propManip
Manipulator type.


propManipClass

public java.lang.String propManipClass
Class-name for manipulation with special parameter (either fully-qualified or local in package cz.cuni.jagrlib.gui).


owner

public InfoModule owner
Owner of parameter. It can be InfoModule.


infoGUI

public InfoParamGUI infoGUI
Information about parameter's GUI.


nextInfo

public java.util.Map<java.lang.String,java.lang.Object> nextInfo
All other information goes here..

Constructor Detail

InfoParam

public InfoParam(java.lang.String _name,
                 java.lang.String _type,
                 java.lang.String _description,
                 boolean _visible)
Create a new InfoParam.

Parameters:
_name - Name of parameter.
_type - Type of parameter (IP_TYPE_...).
_description - Description of parameter.
_visible - Will be this parameter visible in Skel (GUI)?

InfoParam

public InfoParam()
Method Detail

typeConvert

protected java.lang.String typeConvert(java.lang.String newType)

setBounds

public void setBounds(java.lang.Object min,
                      java.lang.Object max)
Set parameter bounds.


setEnum

public void setEnum(java.lang.String label,
                    java.lang.Object value,
                    java.lang.String descr)

propEnd

public void propEnd()

visibleLines

public int visibleLines()
Returns visible height in lines.