Class JComponentHpr<T extends 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
This class is used to provide Snap UI functionality to Swing JComponents.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddBinding(T anObj, Binding aBinding) Adds the individual binding at the given index to given component.protected SwingEventAdaptercreateEventAdapter(T aComponent) Creates the SwingEventAdapter for component.getAutosizing(T aComponent) Returns the autosizing for the given component.getBinding(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.getBindings(T anObj, boolean doCreate) Returns the list of RibsBindings, with option to create, if missing.protected ChangeListenerReturns a change listener suitable for some controls.Returns the individual child object for given object and index.intgetChildCount(T aComp) Returns the number of children for given object.getConstraints(T aComponent) Returns the constraints for component.getEventAdapter(T aComponent, boolean doCreate) Returns the SwingEventAdapter for component.Returns the name of the given component.Returns given component's owner.Returns the parent object for given object.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.voidInitializes newly created object.booleanisEnabled(T anObj, UIEvent.Type aType) Returns whether given event is enabled.removeBinding(T anObj, int anIndex) Removes the binding at the given index from given component.voidsetConstraints(T aComponent, Object theConstraints) Sets the constraints for component.voidsetEnabled(T anObj, UIEvent.Type aType, boolean aValue) Sets whether given event is enabled.voidSets given component's owner.voidsetSendActionOnFocusLost(T aComponent, Boolean aValue) Sets whether this component should sends action when it loses focus.Methods inherited from class com.inductiveautomation.snap.swing.SwingHelpergetHelper, getSwingHelper, getSwingHelperMethods 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
- 
Constructor Details- 
JComponentHprpublic JComponentHpr()
 
- 
- 
Method Details- 
getNameReturns the name of the given component.- Specified by:
- getNamein class- UIHelper<T extends JComponent>
 
- 
initUIInitializes newly created object.- Overrides:
- initUIin class- UIHelper<T extends JComponent>
 
- 
getParentReturns the parent object for given object.- Specified by:
- getParentin class- UIHelper<T extends JComponent>
 
- 
getChildCountReturns the number of children for given object.- Specified by:
- getChildCountin class- UIHelper<T extends JComponent>
 
- 
getChildReturns the individual child object for given object and index.- Specified by:
- getChildin class- UIHelper<T extends JComponent>
 
- 
getOwnerReturns given component's owner.- Specified by:
- getOwnerin class- UIHelper<T extends JComponent>
 
- 
setOwnerSets given component's owner.- Specified by:
- setOwnerin class- UIHelper<T extends JComponent>
 
- 
getConstraintsReturns the constraints for component.
- 
setConstraintsSets the constraints for component.
- 
getAutosizingReturns the autosizing for the given component.
- 
getChangeListenerReturns a change listener suitable for some controls.
- 
getSendActionOnFocusLostReturns whether this component should send action when focus lost.
- 
setSendActionOnFocusLostSets whether this component should sends action when it loses focus.
- 
getSendActionOnFocusLostDefaultReturns whether given component defaults to send action when it loses focus.
- 
getBindingCountReturns the number of bindings associated with given component.- Overrides:
- getBindingCountin class- UIHelper<T extends JComponent>
 
- 
getBindingReturns the individual binding at the given index for given component.- Overrides:
- getBindingin class- UIHelper<T extends JComponent>
 
- 
getBindingsReturns the list of RibsBindings, with option to create, if missing.
- 
addBindingAdds the individual binding at the given index to given component.- Overrides:
- addBindingin class- UIHelper<T extends JComponent>
 
- 
removeBindingRemoves the binding at the given index from given component.- Overrides:
- removeBindingin class- UIHelper<T extends JComponent>
 
- 
getPropertyNamesImplReturns the property names for JComponents.- Overrides:
- getPropertyNamesImplin class- UIHelper<T extends JComponent>
 
- 
isEnabledReturns whether given event is enabled.- Specified by:
- isEnabledin class- UIHelper<T extends JComponent>
 
- 
setEnabledSets whether given event is enabled.- Specified by:
- setEnabledin class- UIHelper<T extends JComponent>
 
- 
getEventAdapterReturns the SwingEventAdapter for component.
- 
createEventAdapterCreates the SwingEventAdapter for component.
 
-