Class LabeledHpr<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>
com.inductiveautomation.snap.swing.helpers.LabeledHpr<T>
- Direct Known Subclasses:
AbstractButtonHpr
,JLabelHpr
This class is the superclass for labels and buttons which handles attributes common to both classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getChildCount
(T anObj) Override to suppress children.abstract int
getHorizontalAlignment
(T aLabeled) Standard button or label property.abstract int
getHorizontalTextPosition
(T aLabeled) Standard button or label property.abstract Icon
Returns the button or label icon.abstract int
getIconTextGap
(T aLabeled) Standard button or label property.getPropertyNamesImpl
(T anObj) Returns the property names for given object.abstract int
getVerticalAlignment
(T aLabeled) Standard button or label property.abstract int
getVerticalTextPosition
(T aLabeled) Standard button or label property.abstract void
setHorizontalAlignment
(T aLabeled, int aValue) Standard button or label property.abstract void
setHorizontalTextPosition
(T aLabeled, int aValue) Standard button or label property.abstract void
Sets the button or label icon.abstract void
setIconTextGap
(T aLabeled, int aValue) Standard button or label property.abstract void
setVerticalAlignment
(T aLabeled, int aValue) Standard button or label property.abstract void
setVerticalTextPosition
(T aLabeled, int aValue) Standard button or label property.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, initUI, 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, setValue
-
Constructor Details
-
LabeledHpr
public LabeledHpr()
-
-
Method Details
-
getChildCount
Override to suppress children.- Overrides:
getChildCount
in classJComponentHpr<T extends JComponent>
-
getIcon
Returns the button or label icon. -
setIcon
Sets the button or label icon. -
getHorizontalAlignment
Standard button or label property. -
setHorizontalAlignment
Standard button or label property. -
getVerticalAlignment
Standard button or label property. -
setVerticalAlignment
Standard button or label property. -
getHorizontalTextPosition
Standard button or label property. -
setHorizontalTextPosition
Standard button or label property. -
getVerticalTextPosition
Standard button or label property. -
setVerticalTextPosition
Standard button or label property. -
getIconTextGap
Standard button or label property. -
setIconTextGap
Standard button or label property. -
getPropertyNamesImpl
Returns the property names for given object.- Overrides:
getPropertyNamesImpl
in classJComponentHpr<T extends JComponent>
-