Package com.inductiveautomation.snap.ui
Class UIHelper<T>
java.lang.Object
com.inductiveautomation.snap.ui.UIHelper<T>
- Direct Known Subclasses:
- RMViewerOwnerHpr,- SwingHelper
A class to provide utility methods for UI components.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddBinding(T anObj, Binding aBinding) Adds the individual binding at the given index to given UI node.voidenableEvents(T anObj, UIEvent.Type... theTypes) Called to enable events.Returns the action for a node.getBinding(T anObj, int anIndex) Returns the individual binding at the given index for given UI node.getBinding(T anObj, String aPropertyName) Returns the individual binding for the given property name.intgetBindingCount(T anObj) Returns the number of bindings associated with given UI node.abstract ObjectReturns the individual child object for given object and index.Returns first child with matching name, recursively, depth first.abstract intgetChildCount(T anObj) Returns the number of children for given object.abstract UIHelperReturns the Helper object for a given object.getItemDisplayKey(T anObj) Sets the display key for UI node item.Returns the items for an object.protected ObjectgetKeyValue(Object anObj, String aKey) Returns a key value.abstract StringReturns the name of the given object.abstract UIOwnerReturns given component's owner.abstract ObjectReturns the parent object for given object.getPropertyNameMapped(T anObj, String aPropertyName) Returns a mapped property name name.getPropertyNames(T anObj) Returns the property names for helper's instance class.getPropertyNamesImpl(T anObj) Returns the property names for helper's instance class.intgetSelectedIndex(T anObj) Returns the selected index property of given object.int[]getSelectedIndexes(T anObj) int[]getSelectedIndexs(T anObj) Returns the selected index property of given object.getSelectedItem(T anObj) Returns the selected object property of given object.Returns the text property of given object.Returns an object's value for given property name.voidInitializes the given object to send Events to target.voidinitUIDeep(T anObj, UIOwner anOwner) Initializes the given object and its children to send Events to target.booleanReturns whether given UI node is enabled.abstract booleanisEnabled(T anObj, UIEvent.Type aType) Returns whether given event is enabled.booleanisPropertyName(T anObj, String aPropertyName) Returns whether a given property name is valid for given object.booleanisValueAdjusting(T anObj) Returns whether UI node value is adjusting.removeBinding(T anObj, int anIndex) Removes the binding at the given index from given UI node.booleanremoveBinding(T anObj, String aPropertyName) Removes the binding with given property name from given UI node.voidSets the action for a node.voidsetEnabled(T anObj, boolean aValue) Sets whether given UI node is enabled.abstract voidsetEnabled(T anObj, UIEvent.Type aType, boolean aValue) Returns whether given event is enabled.voidsetItemDisplayKey(T anObj, String aKey) Sets the display key for UI node item.voidSets the items for an object.voidSets the items for an object.protected voidsetKeyValue(Object anObj, String aKey, Object aValue) Sets a KeyValue.abstract voidSets given component's owner.voidsetSelectedIndex(T anObj, int anIndex) Sets the selected index property of given object to given value.voidsetSelectedIndexes(T anObj, int[] theIndexes) Sets the selected index property of given object to given value.voidsetSelectedItem(T anObj, Object aValue) Sets the selected object property of given object to given value.voidSets the text property of given object to given string.voidSets an object's value for given property name.
- 
Constructor Details- 
UIHelperpublic UIHelper()
 
- 
- 
Method Details- 
getNameReturns the name of the given object.
- 
getOwnerReturns given component's owner.
- 
setOwnerSets given component's owner.
- 
initUIInitializes the given object to send Events to target.
- 
initUIDeepInitializes the given object and its children to send Events to target.
- 
getParentReturns the parent object for given object.
- 
getChildCountReturns the number of children for given object.
- 
getChildReturns the individual child object for given object and index.
- 
getChildReturns first child with matching name, recursively, depth first.
- 
isPropertyNameReturns whether a given property name is valid for given object.
- 
getPropertyNamesReturns the property names for helper's instance class.
- 
getPropertyNamesImplReturns the property names for helper's instance class.
- 
getPropertyNameMappedReturns a mapped property name name.
- 
getActionReturns the action for a node.
- 
setActionSets the action for a node.
- 
getBindingCountReturns the number of bindings associated with given UI node.
- 
getBindingReturns the individual binding at the given index for given UI node.
- 
getBindingReturns the individual binding for the given property name.
- 
addBindingAdds the individual binding at the given index to given UI node.
- 
removeBindingRemoves the binding at the given index from given UI node.
- 
removeBindingRemoves the binding with given property name from given UI node.
- 
getValueReturns an object's value for given property name.
- 
setValueSets an object's value for given property name.
- 
getTextReturns the text property of given object.
- 
setTextSets the text property of given object to given string.
- 
getItemsReturns the items for an object.
- 
setItemsSets the items for an object.
- 
setItemsSets the items for an object.
- 
getItemDisplayKeySets the display key for UI node item.
- 
setItemDisplayKeySets the display key for UI node item.
- 
getSelectedIndexReturns the selected index property of given object.
- 
setSelectedIndexSets the selected index property of given object to given value.
- 
getSelectedIndexsReturns the selected index property of given object.Kept in case someone is using reflection with the misspelling 
- 
getSelectedIndexes
- 
setSelectedIndexesSets the selected index property of given object to given value.
- 
getSelectedItemReturns the selected object property of given object.
- 
setSelectedItemSets the selected object property of given object to given value.
- 
isValueAdjustingReturns whether UI node value is adjusting.
- 
isEnabledReturns whether given UI node is enabled.
- 
setEnabledSets whether given UI node is enabled.
- 
isEnabledReturns whether given event is enabled.
- 
setEnabledReturns whether given event is enabled.
- 
getKeyValueReturns a key value.
- 
setKeyValueSets a KeyValue.
- 
enableEventsCalled to enable events.
- 
getHelperReturns the Helper object for a given object.
 
-