public class UIDef
extends Item
Modifier and Type | Method and Description |
---|---|
UIDef |
chainDefine(java.lang.String id,
java.lang.String... refs) |
java.lang.String |
chainRef(java.lang.String... refs)
Generate the ref id based on the current definition.
|
UIDef |
define(java.lang.String id,
java.lang.String... refs)
Returns UIDef's child with the specified ID.
|
UIDef |
get(java.lang.String id)
Returns UIDef's child with the specified ID.
|
java.util.List<UIDef> |
getChildren()
Returns UIDef's all children.
|
Config |
getConfig()
Returns UIDef's Config.
|
java.lang.String[] |
getItems()
Returns UIDef's all children's ID.
|
UIDef |
getRef()
Gets UIDef's reference object.
|
boolean |
hasChild(java.lang.String id)
Tests whether the specified child
UIDef ID exists. |
JSONObject |
mergedJSON() |
void |
parse(JSONObject json) |
UIDef |
removeAttr(java.lang.String name)
Removes UIDef's attribute.
|
UIDef |
setAttr(java.lang.String name,
java.lang.Object value)
Sets UIDef's attribute.
|
UIDef |
setAttr(java.lang.String name,
java.lang.String nlsKey,
java.lang.String nlsDefault)
Sets UIDef's attribute.
|
UIDef |
setItems(java.lang.String... ids)
Sets UIDef's children's ID.
|
java.lang.Object |
toJSON() |
java.lang.String |
toString() |
public Config getConfig()
public UIDef setAttr(java.lang.String name, java.lang.Object value)
name
- The attribute's namevalue
- The attribute's valuepublic UIDef setAttr(java.lang.String name, java.lang.String nlsKey, java.lang.String nlsDefault)
name
- The attribute's namenlsKey
- The attribute's NLS keynlsDefault
- The attribute's NLS valuepublic UIDef removeAttr(java.lang.String name)
name
- The attribute's namepublic java.lang.String chainRef(java.lang.String... refs)
public UIDef getRef()
public UIDef setItems(java.lang.String... ids)
ids
- The children's IDpublic java.lang.String[] getItems()
public java.util.List<UIDef> getChildren()
public UIDef get(java.lang.String id)
id
- The IDpublic boolean hasChild(java.lang.String id)
UIDef
ID exists.id
- public UIDef define(java.lang.String id, java.lang.String... refs)
id
- The ID.refs
- The reference object IDpublic UIDef chainDefine(java.lang.String id, java.lang.String... refs)
public java.lang.String toString()
public java.lang.Object toJSON()
public JSONObject mergedJSON()
public void parse(JSONObject json)