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 Summary
Constructors Constructor Description LabeledHpr()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
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 javax.swing.Icon
getIcon(T aLabeled)
Returns the button or label icon.abstract int
getIconTextGap(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 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
setIcon(T aLabeled, javax.swing.Icon anIcon)
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
-
-
-
-
Method Detail
-
getChildCount
public int getChildCount(T anObj)
Override to suppress children.- Overrides:
getChildCount
in classJComponentHpr<T extends javax.swing.JComponent>
-
getIcon
public abstract javax.swing.Icon getIcon(T aLabeled)
Returns the button or label icon.
-
setIcon
public abstract void setIcon(T aLabeled, javax.swing.Icon anIcon)
Sets the button or label icon.
-
getHorizontalAlignment
public abstract int getHorizontalAlignment(T aLabeled)
Standard button or label property.
-
setHorizontalAlignment
public abstract void setHorizontalAlignment(T aLabeled, int aValue)
Standard button or label property.
-
getVerticalAlignment
public abstract int getVerticalAlignment(T aLabeled)
Standard button or label property.
-
setVerticalAlignment
public abstract void setVerticalAlignment(T aLabeled, int aValue)
Standard button or label property.
-
getHorizontalTextPosition
public abstract int getHorizontalTextPosition(T aLabeled)
Standard button or label property.
-
setHorizontalTextPosition
public abstract void setHorizontalTextPosition(T aLabeled, int aValue)
Standard button or label property.
-
getVerticalTextPosition
public abstract int getVerticalTextPosition(T aLabeled)
Standard button or label property.
-
setVerticalTextPosition
public abstract void setVerticalTextPosition(T aLabeled, int aValue)
Standard button or label property.
-
getIconTextGap
public abstract int getIconTextGap(T aLabeled)
Standard button or label property.
-
setIconTextGap
public abstract void setIconTextGap(T aLabeled, int aValue)
Standard button or label property.
-
getPropertyNamesImpl
protected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj)
Returns the property names for given object.- Overrides:
getPropertyNamesImpl
in classJComponentHpr<T extends javax.swing.JComponent>
-
-