|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeModel
org.vrjuggler.vrjconfig.commoneditors.proxytree.ProxyTreeModel
public class ProxyTreeModel
Model showing how proxies point at a device.
ConfigListener,
ConfigElementListener,
Serialized Form| Nested Class Summary | |
|---|---|
protected class |
ProxyTreeModel.DeviceUnit
Used to represent a position/digital/analog unit on an device. |
protected class |
ProxyTreeModel.ProxyType
Used to represent different categories of units on each device. |
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
ProxyTreeModel(ConfigElement elm,
ConfigContext context,
int num_positional,
int num_digital,
int num_analog)
Constructor that creates a tree representation of a device and all proxies pointing at it. |
|
ProxyTreeModel(TreeNode root)
Constructor used for testing. |
|
| Method Summary | |
|---|---|
void |
configElementAdded(ConfigEvent evt)
ConfigListener interface to catch all added ConfigElements. |
void |
configElementRemoved(ConfigEvent evt)
ConfigListener interface to catch removed added ConfigElements. |
List |
findAnalogProxies()
|
List |
findDigitalProxies()
|
List |
findPositionProxies()
|
ConfigContext |
getConfigContext()
Return the ConfigContext associated with this station. |
ConfigElement |
getConfigElement()
Return the ConfigElement for this device. |
protected List |
getNodesFor(Object obj)
Gets a list of all the tree nodes that contain the given Object. |
void |
nameChanged(ConfigElementEvent evt)
ConfigElementListener interface to catch all changes in existing proxies by calling a helper method, elementChanged. |
void |
propertyValueAdded(ConfigElementEvent evt)
|
void |
propertyValueChanged(ConfigElementEvent evt)
|
void |
propertyValueOrderChanged(ConfigElementEvent evt)
|
void |
propertyValueRemoved(ConfigElementEvent evt)
|
void |
proxyAdded(ConfigElement elm,
String token,
int unit)
Called whenever a new proxy for this device is added. |
void |
proxyRemoved(ConfigElement elm,
String token,
int unit)
Called whenever a proxy for this device is removed. |
void |
rebuildTree()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyTreeModel(TreeNode root)
public ProxyTreeModel(ConfigElement elm,
ConfigContext context,
int num_positional,
int num_digital,
int num_analog)
| Method Detail |
|---|
public void rebuildTree()
public ConfigElement getConfigElement()
public ConfigContext getConfigContext()
protected List getNodesFor(Object obj)
public void configElementAdded(ConfigEvent evt)
configElementAdded in interface ConfigListenerConfigListenerpublic void configElementRemoved(ConfigEvent evt)
configElementRemoved in interface ConfigListenerConfigListenerpublic void nameChanged(ConfigElementEvent evt)
nameChanged in interface ConfigElementListenerConfigElementListenerpublic void propertyValueChanged(ConfigElementEvent evt)
propertyValueChanged in interface ConfigElementListenerpublic void propertyValueOrderChanged(ConfigElementEvent evt)
propertyValueOrderChanged in interface ConfigElementListenerpublic void propertyValueAdded(ConfigElementEvent evt)
propertyValueAdded in interface ConfigElementListenerpublic void propertyValueRemoved(ConfigElementEvent evt)
propertyValueRemoved in interface ConfigElementListener
public void proxyAdded(ConfigElement elm,
String token,
int unit)
public void proxyRemoved(ConfigElement elm,
String token,
int unit)
public List findDigitalProxies()
public List findAnalogProxies()
public List findPositionProxies()
|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||