|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Object
Config
public class Config
This class represents set of parameters for Widget. Containing information about parameter-prototypes defined in widget.xml <parameters> node.
| Method Summary | |
|---|---|
void |
commit()
Saves the changes made to this config. |
Value |
export()
Export the configuration as Value structure. |
Value |
getChoices(int index)
Returns the list of choices available for option at specified index. |
String |
getDescription(int index)
Returns the description of option at specified index. |
String |
getName(int index)
Returns the name of option at specified index. |
String |
getType(int index)
Returns the type of option at specified index. |
Value |
getValue(int index)
Returns the value of option at specified index. |
Value |
getValue(String name)
Returns the value of specified option. |
boolean |
isEditable(int index)
Checks if option at specified index is editable. |
boolean |
isVisible()
Checks if this config is visible. |
boolean |
isVisible(int index)
Checks if option at specified index is visible. |
String |
parse(String value)
Parses embedded expressions. |
void |
setValue(int index,
Value value)
Sets the value of option at specified index. |
int |
size()
Returns the number of options. |
| Methods inherited from class Object |
|---|
toString, equals, hashCode |
| Methods inherited from |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isVisible()
public int size()
public boolean isEditable(int index)
index - Index of option, must be on range 0 .. size()-1.
public boolean isVisible(int index)
index - Index of option, must be on range 0 .. size()-1.
public String getName(int index)
index - Index of option, must be on range 0 .. size()-1.
public String getDescription(int index)
index - Index of option, must be on range 0 .. size()-1.
public String getType(int index)
index - Index of option, must be on range 0 .. size()-1.
public Value getChoices(int index)
index - Index of option, must be on range 0 .. size()-1.
public Value getValue(String name)
${..} expressions.
name - Name of option
null if it doesn't exist.public Value getValue(int index)
${..} expressions.
index - Index of option, must be on range 0 .. size()-1.
public void setValue(int index,
Value value)
index - Index of option, must be on range 0 .. size()-1.value - New option value,public String parse(String value)
value - Value to parse
public void commit()
public Value export()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||