|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.vrjuggler.vrjconfig.commoneditors.devicegraph.AbstractDeviceUnitPropertyHandler
public abstract class AbstractDeviceUnitPropertyHandler
Partial implementation of DeviceUnitPropertyHandler that
deals with the aspects that would be common to all implementations of that
interface.
| Field Summary | |
|---|---|
protected ConfigContext |
configContext
|
protected ConfigElement |
configElement
|
protected Map |
unitTypeMap
|
protected Collection |
unitTypes
|
| Constructor Summary | |
|---|---|
AbstractDeviceUnitPropertyHandler()
|
|
| Method Summary | |
|---|---|
void |
addDeviceUnitListener(DeviceUnitListener l)
Adds the given DeviceUnitListener to the list of listeners. |
protected void |
fireDeviceUnitAdded(Integer type,
int unitNum)
Fires a DeviceUnitEvent for the addition of a unit of the
given type. |
protected void |
fireDeviceUnitRemoved(Integer type,
int unitNum)
Fires a DeviceUnitEvent for the removal of the identified
unit of the given unit type. |
Collection |
getUnitTypes()
Returns the unit types for this handler. |
void |
removeDeviceUnitListener(DeviceUnitListener l)
Removes the given DeviceUnitListener to from list of
listeners. |
void |
setConfig(ConfigContext ctx,
ConfigElement elt)
Sets the configuration information for the configured device. |
void |
setUnitTypeMap(Map unitTypeMap)
Sets the unit type map for the configured device. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.vrjuggler.vrjconfig.commoneditors.devicegraph.DeviceUnitPropertyHandler |
|---|
addUnit, propertyValueAdded, propertyValueChanged, propertyValueOrderChanged, propertyValueRemoved, removeUnit |
| Field Detail |
|---|
protected ConfigContext configContext
protected ConfigElement configElement
protected Map unitTypeMap
protected Collection unitTypes
| Constructor Detail |
|---|
public AbstractDeviceUnitPropertyHandler()
| Method Detail |
|---|
public void setConfig(ConfigContext ctx,
ConfigElement elt)
setConfig in interface DeviceUnitPropertyHandlerpublic void setUnitTypeMap(Map unitTypeMap)
Integer to some type, as defined in
UnitConstants. The values of the map are dependent upon
the specific implementation of this interface.
setUnitTypeMap in interface DeviceUnitPropertyHandlerUnitConstantspublic Collection getUnitTypes()
Integer objects as defined in UnitConstants.
getUnitTypes in interface DeviceUnitPropertyHandlerUnitConstantspublic final void addDeviceUnitListener(DeviceUnitListener l)
DeviceUnitListener to the list of listeners.
addDeviceUnitListener in interface DeviceUnitPropertyHandlerpublic final void removeDeviceUnitListener(DeviceUnitListener l)
DeviceUnitListener to from list of
listeners.
removeDeviceUnitListener in interface DeviceUnitPropertyHandler
protected void fireDeviceUnitAdded(Integer type,
int unitNum)
DeviceUnitEvent for the addition of a unit of the
given type.
DeviceUnitEvent
protected void fireDeviceUnitRemoved(Integer type,
int unitNum)
DeviceUnitEvent for the removal of the identified
unit of the given unit type.
DeviceUnitEvent
|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||