Class JSpinnerHpr<T extends javax.swing.JSpinner>
- java.lang.Object
-
- com.inductiveautomation.snap.ui.UIHelper<T>
-
- com.inductiveautomation.snap.swing.SwingHelper<T>
-
- com.inductiveautomation.snap.swing.helpers.JComponentHpr<T>
-
- com.inductiveautomation.snap.swing.helpers.JSpinnerHpr<T>
-
public class JSpinnerHpr<T extends javax.swing.JSpinner> extends JComponentHpr<T>
Implements Ribs bindings for JSpinner.
-
-
Constructor Summary
Constructors Constructor Description JSpinnerHpr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChildCount(T anObj)Override to suppress children.javax.swing.JFormattedTextFieldgetEditorTextField(javax.swing.JSpinner aSpinner)Returns the spinner editor textfield.protected java.util.List<java.lang.String>getPropertyNamesImpl(T anObj)Returns the property names for given object.voidinitUI(T aSpinner, UIOwner anOwner)Initializes newly created object.voidsetValue(T aSpinner, java.lang.String aPropertyName, java.lang.Object aValue)Sets an object's value for given property name.-
Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpr
addBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLost
-
Methods inherited from class com.inductiveautomation.snap.swing.SwingHelper
getHelper, getSwingHelper, getSwingHelper
-
Methods inherited from class com.inductiveautomation.snap.ui.UIHelper
enableEvents, 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
-
-
-
-
Method Detail
-
getChildCount
public int getChildCount(T anObj)
Override to suppress children.- Overrides:
getChildCountin classJComponentHpr<T extends javax.swing.JSpinner>
-
initUI
public void initUI(T aSpinner, UIOwner anOwner)
Initializes newly created object.- Overrides:
initUIin classJComponentHpr<T extends javax.swing.JSpinner>
-
getEditorTextField
public javax.swing.JFormattedTextField getEditorTextField(javax.swing.JSpinner aSpinner)
Returns the spinner editor textfield.
-
getPropertyNamesImpl
protected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj)
Returns the property names for given object.- Overrides:
getPropertyNamesImplin classJComponentHpr<T extends javax.swing.JSpinner>
-
-