|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.SwtUIItemEvaluationList
THIS CLASS HAS BEEN TEMPORARY ADDED HERE IN ORDER TO TEST LANGUAGE SWITCH IN AN SWT CONTEXT AND MIGHT SOON BE REMOVE. TODO SGu (26.03.2004): REVIEW. Might want to create an abstract class here. The add and setAt method would then change there signatures to accept objects. The two apply() methods are Swing/SWT specific.
| Constructor Summary | |
SwtUIItemEvaluationList(UIManager uiManager)
Creates a new UIItemEvaluationList and sets the initial capacity of the internal arrays to zero. |
|
SwtUIItemEvaluationList(UIManager uiManager,
int capacity)
Creates a new UIItemEvaluationList and sets the initial capacity of the internal arrays to the given value capicity. |
|
| Method Summary | |
void |
add(java.lang.String id,
org.eclipse.swt.widgets.Widget obj)
Adds a new id to the id array and a the obj to the object array. |
void |
apply()
The apply method invokes for each id-component pair the applyItem method of the internal UIManager. |
void |
apply(int index)
This specialized apply method allows you to update the id-component-resource relation for a specific item identified by the given index. |
void |
clear()
Clears both internal arrays. |
int |
getSize()
Returns the minimum of sizes of the two internal arrays. |
void |
setAt(int index,
org.eclipse.swt.widgets.Widget obj)
Sets a specific Component at the given index in the object array, |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtUIItemEvaluationList(UIManager uiManager)
uiManager - the UIManager to use during the apply.
public SwtUIItemEvaluationList(UIManager uiManager,
int capacity)
capicity.
uiManager - The UIManager which is used to apply id's to objects.capacity - the initial capacity of the internal arrays.| Method Detail |
public int getSize()
public void add(java.lang.String id,
org.eclipse.swt.widgets.Widget obj)
id - the id to add to the id arrayobj - the obj to add to the object array.
public void setAt(int index,
org.eclipse.swt.widgets.Widget obj)
index - the position at which you want the component to be.obj - the component to set at the given index.public void clear()
public void apply()
com.tensegrity.gui.UIManager#applyItem(int,Component)public void apply(int index)
index - the index in the id- and object array, identifying the
element you want to update.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||