Class JComponentHpr<T extends javax.swing.JComponent>
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIHelper<T>
- 
- com.inductiveautomation.snap.swing.SwingHelper<T>
- 
- com.inductiveautomation.snap.swing.helpers.JComponentHpr<T>
 
 
 
- 
- Direct Known Subclasses:
- DragWell.Helper,- JComboBoxHpr,- JListHpr,- JMenuItemHpr,- JProgressBarHpr,- JScrollPaneHpr,- JSliderHpr,- JSpinnerHpr,- JSplitPaneHpr,- JTabbedPaneHpr,- JTableHpr,- JTextComponentHpr,- JTreeHpr,- LabeledHpr,- RJColorWellHpr,- RJThumbWheelHpr,- SpringsPaneHpr,- SwitchPaneHpr
 
 public class JComponentHpr<T extends javax.swing.JComponent> extends SwingHelper<T> This class is used to provide Snap UI functionality to Swing JComponents.
- 
- 
Constructor SummaryConstructors Constructor Description JComponentHpr()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinding(T anObj, Binding aBinding)Adds the individual binding at the given index to given component.protected SwingEventAdaptercreateEventAdapter(T aComponent)Creates the SwingEventAdapter for component.java.lang.StringgetAutosizing(T aComponent)Returns the autosizing for the given component.BindinggetBinding(T anObj, int anIndex)Returns the individual binding at the given index for given component.intgetBindingCount(T anObj)Returns the number of bindings associated with given component.java.util.List<Binding>getBindings(T anObj, boolean doCreate)Returns the list of RibsBindings, with option to create, if missing.protected javax.swing.event.ChangeListenergetChangeListener()Returns a change listener suitable for some controls.java.lang.ObjectgetChild(T aComp, int anIndex)Returns the individual child object for given object and index.intgetChildCount(T aComp)Returns the number of children for given object.java.lang.ObjectgetConstraints(T aComponent)Returns the constraints for component.SwingEventAdaptergetEventAdapter(T aComponent, boolean doCreate)Returns the SwingEventAdapter for component.java.lang.StringgetName(T anObj)Returns the name of the given component.UIOwnergetOwner(T anObj)Returns given component's owner.java.lang.ObjectgetParent(T anObj)Returns the parent object for given object.protected java.util.List<java.lang.String>getPropertyNamesImpl(T anObj)Returns the property names for JComponents.booleangetSendActionOnFocusLost(T aComponent)Returns whether this component should send action when focus lost.booleangetSendActionOnFocusLostDefault(T aComponent)Returns whether given component defaults to send action when it loses focus.voidinitUI(T anObj, UIOwner anOwner)Initializes newly created object.booleanisEnabled(T anObj, UIEvent.Type aType)Returns whether given event is enabled.BindingremoveBinding(T anObj, int anIndex)Removes the binding at the given index from given component.voidsetConstraints(T aComponent, java.lang.Object theConstraints)Sets the constraints for component.voidsetEnabled(T anObj, UIEvent.Type aType, boolean aValue)Sets whether given event is enabled.voidsetOwner(T anObj, UIOwner anOwner)Sets given component's owner.voidsetSendActionOnFocusLost(T aComponent, java.lang.Boolean aValue)Sets whether this component should sends action when it loses focus.- 
Methods inherited from class com.inductiveautomation.snap.swing.SwingHelpergetHelper, getSwingHelper, getSwingHelper
 - 
Methods inherited from class com.inductiveautomation.snap.ui.UIHelperenableEvents, getAction, getBinding, getChild, getItemDisplayKey, getItems, getKeyValue, getPropertyNameMapped, getPropertyNames, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getSelectedItem, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItemDisplayKey, setItems, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setSelectedItem, setText, setValue
 
- 
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName(T anObj) Returns the name of the given component.
 - 
getParentpublic java.lang.Object getParent(T anObj) Returns the parent object for given object.
 - 
getChildCountpublic int getChildCount(T aComp) Returns the number of children for given object.- Specified by:
- getChildCountin class- UIHelper<T extends javax.swing.JComponent>
 
 - 
getChildpublic java.lang.Object getChild(T aComp, int anIndex) Returns the individual child object for given object and index.
 - 
getConstraintspublic java.lang.Object getConstraints(T aComponent) Returns the constraints for component.
 - 
setConstraintspublic void setConstraints(T aComponent, java.lang.Object theConstraints) Sets the constraints for component.
 - 
getAutosizingpublic java.lang.String getAutosizing(T aComponent) Returns the autosizing for the given component.
 - 
getChangeListenerprotected javax.swing.event.ChangeListener getChangeListener() Returns a change listener suitable for some controls.
 - 
getSendActionOnFocusLostpublic boolean getSendActionOnFocusLost(T aComponent) Returns whether this component should send action when focus lost.
 - 
setSendActionOnFocusLostpublic void setSendActionOnFocusLost(T aComponent, java.lang.Boolean aValue) Sets whether this component should sends action when it loses focus.
 - 
getSendActionOnFocusLostDefaultpublic boolean getSendActionOnFocusLostDefault(T aComponent) Returns whether given component defaults to send action when it loses focus.
 - 
getBindingCountpublic int getBindingCount(T anObj) Returns the number of bindings associated with given component.- Overrides:
- getBindingCountin class- UIHelper<T extends javax.swing.JComponent>
 
 - 
getBindingpublic Binding getBinding(T anObj, int anIndex) Returns the individual binding at the given index for given component.- Overrides:
- getBindingin class- UIHelper<T extends javax.swing.JComponent>
 
 - 
getBindingspublic java.util.List<Binding> getBindings(T anObj, boolean doCreate) Returns the list of RibsBindings, with option to create, if missing.
 - 
addBindingpublic void addBinding(T anObj, Binding aBinding) Adds the individual binding at the given index to given component.- Overrides:
- addBindingin class- UIHelper<T extends javax.swing.JComponent>
 
 - 
removeBindingpublic Binding removeBinding(T anObj, int anIndex) Removes the binding at the given index from given component.- Overrides:
- removeBindingin class- UIHelper<T extends javax.swing.JComponent>
 
 - 
getPropertyNamesImplprotected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj) Returns the property names for JComponents.- Overrides:
- getPropertyNamesImplin class- UIHelper<T extends javax.swing.JComponent>
 
 - 
isEnabledpublic boolean isEnabled(T anObj, UIEvent.Type aType) Returns whether given event is enabled.
 - 
setEnabledpublic void setEnabled(T anObj, UIEvent.Type aType, boolean aValue) Sets whether given event is enabled.- Specified by:
- setEnabledin class- UIHelper<T extends javax.swing.JComponent>
 
 - 
getEventAdapterpublic SwingEventAdapter getEventAdapter(T aComponent, boolean doCreate) Returns the SwingEventAdapter for component.
 - 
createEventAdapterprotected SwingEventAdapter createEventAdapter(T aComponent) Creates the SwingEventAdapter for component.
 
- 
 
-