|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.schema.DisplayContainer
Represents an object that contains displayable strings. For example labels, flyover help, descriptions, etc.
Displayable strings are stored and retrieved by id. A list of ids a DisplayContainer contains can be retrieved using the getIds method. Utility methods are provided to retrieve displayable strings without the need to interact with the DisplayValue object.
DisplayValue
,
Serialized FormField Summary | |
private Vector |
displays
|
private static int |
VEC_CAP_INCR
|
Constructor Summary | |
DisplayContainer()
|
Method Summary | |
void |
addDisplayValue(DisplayValue dv)
Append a DisplayValue object to the end of the array |
DisplayValue[] |
getDisplays()
Get the entire array of DisplayValue objects |
DisplayValue |
getDisplays(int index)
Gets the DisplayValue at index in the array. |
String |
getDisplayString(String id)
Get the display string associated with an id |
DisplayValue |
getDisplayValue(String id)
Get a DisplayValue object by its id |
String[] |
getIds()
Get a list of string ids string values are stored under |
void |
removeDisplayValue(String id)
Remove a DisplayValue object from the array by its id |
void |
setDisplays(DisplayValue[] vals)
Set the entire array of DisplayValue objects |
void |
setDisplays(int index,
DisplayValue dv)
Sets a DisplayValue at a specific index. |
void |
setDisplayString(String id,
String value)
Set the display string associated with an id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int VEC_CAP_INCR
private Vector displays
Constructor Detail |
public DisplayContainer()
Method Detail |
public void setDisplays(int index, DisplayValue dv)
index
- the index in the array to set the DisplayValue
dv the DisplayValue to setpublic DisplayValue getDisplays(int index)
index
- the index into the array
public void setDisplays(DisplayValue[] vals)
vals
- the new array of DisplayValue objectspublic DisplayValue[] getDisplays()
public String[] getIds()
public void addDisplayValue(DisplayValue dv)
dv
- the new DisplayValue object, if null ignoredpublic DisplayValue getDisplayValue(String id)
id
- the id of the DisplayValue to retrieved
public void removeDisplayValue(String id)
id
- the id of hte DisplayValue to removepublic String getDisplayString(String id)
id
- the id to retrievepublic void setDisplayString(String id, String value)
id
- the id of the string to set
value the value of the display string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |