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 voidaddBinding(T aShape, Binding aBinding)Adds the individual binding at the given index to given display object.BindinggetBinding(T aShape, int anIndex)Returns the individual binding at the given index for given display object.intgetBindingCount(T aShape)Returns the number of bindings associated with given display object.java.lang.ObjectgetChild(T aShape, int anIndex)Returns the individual child object for given display object and index.intgetChildCount(T aShape)Returns the number of children for given shape.UIHelpergetHelper(java.lang.Object anObj)Return helper.static UIHelperGetHelper(java.lang.Object anObj)Override.java.lang.StringgetName(T aShape)Returns the name of the given shape.UIOwnergetOwner(T aShape)Returns given display object's owner.java.lang.ObjectgetParent(T aShape)Returns the parent object for given object.java.lang.StringgetPropertyNameMapped(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.booleanisEnabled(T aShape, UIEvent.Type aType)Returns whether given event is enabled.BindingremoveBinding(T aShape, int anIndex)Removes the binding at the given index from given display object.voidsetEnabled(T aShape, UIEvent.Type aType, boolean aValue)Sets whether given event is enabled.voidsetOwner(T aShape, UIOwner anOwner)Sets given display object's owner.voidsetValue(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:
getChildCountin 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:
getPropertyNamesin classUIHelper<T extends RMShape>
-
getPropertyNameMapped
public java.lang.String getPropertyNameMapped(T aShape, java.lang.String aName)
Returns mapped property name for shape.- Overrides:
getPropertyNameMappedin classUIHelper<T extends RMShape>
-
getBindingCount
public int getBindingCount(T aShape)
Returns the number of bindings associated with given display object.- Overrides:
getBindingCountin 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:
getBindingin 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:
addBindingin classUIHelper<T extends RMShape>
-
removeBinding
public Binding removeBinding(T aShape, int anIndex)
Removes the binding at the given index from given display object.- Overrides:
removeBindingin 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:
setEnabledin classUIHelper<T extends RMShape>
-
getHelper
public UIHelper getHelper(java.lang.Object anObj)
Return helper.
-
GetHelper
public static UIHelper GetHelper(java.lang.Object anObj)
Override.
-
-