Class LabeledHpr<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>
- 
- com.inductiveautomation.snap.swing.helpers.LabeledHpr<T>
 
 
 
 
- 
- Direct Known Subclasses:
- AbstractButtonHpr,- JLabelHpr
 
 public abstract class LabeledHpr<T extends javax.swing.JComponent> extends JComponentHpr<T> This class is the superclass for labels and buttons which handles attributes common to both classes.
- 
- 
Constructor SummaryConstructors Constructor Description LabeledHpr()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetChildCount(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 javax.swing.IcongetIcon(T aLabeled)Returns the button or label icon.abstract intgetIconTextGap(T aLabeled)Standard button or label property.protected java.util.List<java.lang.String>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 voidsetIcon(T aLabeled, javax.swing.Icon anIcon)Sets 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.JComponentHpraddBinding, 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.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- 
getChildCountpublic int getChildCount(T anObj) Override to suppress children.- Overrides:
- getChildCountin class- JComponentHpr<T extends javax.swing.JComponent>
 
 - 
getIconpublic abstract javax.swing.Icon getIcon(T aLabeled) Returns the button or label icon.
 - 
setIconpublic abstract void setIcon(T aLabeled, javax.swing.Icon anIcon) Sets the button or label icon.
 - 
getHorizontalAlignmentpublic abstract int getHorizontalAlignment(T aLabeled) Standard button or label property.
 - 
setHorizontalAlignmentpublic abstract void setHorizontalAlignment(T aLabeled, int aValue) Standard button or label property.
 - 
getVerticalAlignmentpublic abstract int getVerticalAlignment(T aLabeled) Standard button or label property.
 - 
setVerticalAlignmentpublic abstract void setVerticalAlignment(T aLabeled, int aValue) Standard button or label property.
 - 
getHorizontalTextPositionpublic abstract int getHorizontalTextPosition(T aLabeled) Standard button or label property.
 - 
setHorizontalTextPositionpublic abstract void setHorizontalTextPosition(T aLabeled, int aValue) Standard button or label property.
 - 
getVerticalTextPositionpublic abstract int getVerticalTextPosition(T aLabeled) Standard button or label property.
 - 
setVerticalTextPositionpublic abstract void setVerticalTextPosition(T aLabeled, int aValue) Standard button or label property.
 - 
getIconTextGappublic abstract int getIconTextGap(T aLabeled) Standard button or label property.
 - 
setIconTextGappublic abstract void setIconTextGap(T aLabeled, int aValue) Standard button or label property.
 - 
getPropertyNamesImplprotected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj) Returns the property names for given object.- Overrides:
- getPropertyNamesImplin class- JComponentHpr<T extends javax.swing.JComponent>
 
 
- 
 
-