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 TypeMethodDescriptionintgetChildCount(T anObj) Override to suppress children.abstract intgetHorizontalAlignment(T aLabeled) Standard button or label property.abstract intgetHorizontalTextPosition(T aLabeled) Standard button or label property.abstract IconReturns the button or label icon.abstract intgetIconTextGap(T aLabeled) Standard button or label property.getPropertyNamesImpl(T anObj) Returns the property names for given object.abstract intgetVerticalAlignment(T aLabeled) Standard button or label property.abstract intgetVerticalTextPosition(T aLabeled) Standard button or label property.abstract voidsetHorizontalAlignment(T aLabeled, int aValue) Standard button or label property.abstract voidsetHorizontalTextPosition(T aLabeled, int aValue) Standard button or label property.abstract voidSets the button or label icon.abstract voidsetIconTextGap(T aLabeled, int aValue) Standard button or label property.abstract voidsetVerticalAlignment(T aLabeled, int aValue) Standard button or label property.abstract voidsetVerticalTextPosition(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, setSendActionOnFocusLostMethods inherited from class com.inductiveautomation.snap.swing.SwingHelper
getHelper, getSwingHelper, getSwingHelperMethods 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:
getChildCountin 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:
getPropertyNamesImplin classJComponentHpr<T extends JComponent>
-