Class RMViewerOwnerHpr<T extends RMShape>
- java.lang.Object
-
- com.inductiveautomation.snap.ui.UIHelper<T>
-
- com.inductiveautomation.rm.viewer.RMViewerOwnerHpr<T>
-
- Direct Known Subclasses:
RMViewerOwnerJHpr
public class RMViewerOwnerHpr<T extends RMShape> extends UIHelper<T>
A RibsHelper implementation for RMShape.
-
-
Constructor Summary
Constructors Constructor Description RMViewerOwnerHpr()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBinding(T aShape, Binding aBinding)
Adds the individual binding at the given index to given display object.Binding
getBinding(T aShape, int anIndex)
Returns the individual binding at the given index for given display object.int
getBindingCount(T aShape)
Returns the number of bindings associated with given display object.java.lang.Object
getChild(T aShape, int anIndex)
Returns the individual child object for given display object and index.int
getChildCount(T aShape)
Returns the number of children for given shape.UIHelper
getHelper(java.lang.Object anObj)
Return helper.static UIHelper
GetHelper(java.lang.Object anObj)
Override.java.lang.String
getName(T aShape)
Returns the name of the given shape.UIOwner
getOwner(T aShape)
Returns given display object's owner.java.lang.Object
getParent(T aShape)
Returns the parent object for given object.java.lang.String
getPropertyNameMapped(T aShape, java.lang.String aName)
Returns mapped property name for shape.java.util.List<java.lang.String>
getPropertyNames(T aShape)
Returns the property names for given shape.boolean
isEnabled(T aShape, UIEvent.Type aType)
Returns whether given event is enabled.Binding
removeBinding(T aShape, int anIndex)
Removes the binding at the given index from given display object.void
setEnabled(T aShape, UIEvent.Type aType, boolean aValue)
Sets whether given event is enabled.void
setOwner(T aShape, UIOwner anOwner)
Sets given display object's owner.void
setValue(T aShape, java.lang.String aPropertyName, java.lang.Object aValue)
Override to call RMShape.repaint().-
Methods inherited from class com.inductiveautomation.snap.ui.UIHelper
enableEvents, getAction, getBinding, getChild, getItemDisplayKey, getItems, getKeyValue, getPropertyNamesImpl, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getSelectedItem, getText, getValue, initUI, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItemDisplayKey, setItems, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setSelectedItem, setText
-
-
-
-
Method Detail
-
getName
public java.lang.String getName(T aShape)
Returns the name of the given shape.
-
getParent
public java.lang.Object getParent(T aShape)
Returns the parent object for given object.
-
getChildCount
public int getChildCount(T aShape)
Returns the number of children for given shape.- Specified by:
getChildCount
in classUIHelper<T extends RMShape>
-
getChild
public java.lang.Object getChild(T aShape, int anIndex)
Returns the individual child object for given display object and index.
-
getPropertyNames
public java.util.List<java.lang.String> getPropertyNames(T aShape)
Returns the property names for given shape.- Overrides:
getPropertyNames
in classUIHelper<T extends RMShape>
-
getPropertyNameMapped
public java.lang.String getPropertyNameMapped(T aShape, java.lang.String aName)
Returns mapped property name for shape.- Overrides:
getPropertyNameMapped
in classUIHelper<T extends RMShape>
-
getBindingCount
public int getBindingCount(T aShape)
Returns the number of bindings associated with given display object.- Overrides:
getBindingCount
in classUIHelper<T extends RMShape>
-
getBinding
public Binding getBinding(T aShape, int anIndex)
Returns the individual binding at the given index for given display object.- Overrides:
getBinding
in classUIHelper<T extends RMShape>
-
addBinding
public void addBinding(T aShape, Binding aBinding)
Adds the individual binding at the given index to given display object.- Overrides:
addBinding
in classUIHelper<T extends RMShape>
-
removeBinding
public Binding removeBinding(T aShape, int anIndex)
Removes the binding at the given index from given display object.- Overrides:
removeBinding
in classUIHelper<T extends RMShape>
-
setValue
public void setValue(T aShape, java.lang.String aPropertyName, java.lang.Object aValue)
Override to call RMShape.repaint().
-
isEnabled
public boolean isEnabled(T aShape, UIEvent.Type aType)
Returns whether given event is enabled.
-
setEnabled
public void setEnabled(T aShape, UIEvent.Type aType, boolean aValue)
Sets whether given event is enabled.- Specified by:
setEnabled
in classUIHelper<T extends RMShape>
-
getHelper
public UIHelper getHelper(java.lang.Object anObj)
Return helper.
-
GetHelper
public static UIHelper GetHelper(java.lang.Object anObj)
Override.
-
-