|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xj3d.ui.swt.widgets.ViewpointComboManager
public class ViewpointComboManager
A convenience class for managing the interactions with a Combo object on the managing display thread. This class acts as an object model intermediary between VRMLViewpointNodeTypes that are utilized by the browser and the String objects that are displayed within the Combo.
| Constructor Summary | |
|---|---|
ViewpointComboManager(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Combo combo)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(VRMLViewpointNodeType node)
Add the specified node to the combo. |
void |
clear()
Clear the combo of all items |
VRMLViewpointNodeType |
getNode(int index)
Return the node associated with the combo at the specified index. |
void |
remove(VRMLViewpointNodeType node)
Remove the specified node from the combo. |
void |
run()
Method for the display thread to perform the necessary updates to the combo. |
void |
select(VRMLViewpointNodeType node)
Select the specified node in the the combo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewpointComboManager(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Combo combo)
display - - The Display ancestor of the combo argumentcombo - - The Combo object to handle interactions for.| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void clear()
public void add(VRMLViewpointNodeType node)
node - - The node to add to the combo.public void remove(VRMLViewpointNodeType node)
node - - The node to remove from the combopublic void select(VRMLViewpointNodeType node)
node - - The node to select in the combopublic VRMLViewpointNodeType getNode(int index)
index - - The index of the node in the combo to return
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||