Class JLabelHpr<T extends javax.swing.JLabel>
- 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>
-
- com.inductiveautomation.snap.swing.helpers.JLabelHpr<T>
-
- Direct Known Subclasses:
RJMenuButton.Helper
public class JLabelHpr<T extends javax.swing.JLabel> extends LabeledHpr<T>
This helper implementation for JLabel.
-
-
Constructor Summary
Constructors Constructor Description JLabelHpr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHorizontalAlignment(T aLabeled)
Standard button or label property.int
getHorizontalTextPosition(T aLabeled)
Standard button or label property.javax.swing.Icon
getIcon(T aLabeled)
Returns the button or label icon.int
getIconTextGap(T aLabeled)
Standard button or label property.java.lang.String
getPropertyNameMapped(T anObj, java.lang.String aName)
Returns a mapped property name.int
getVerticalAlignment(T aLabeled)
Standard button or label property.int
getVerticalTextPosition(T aLabeled)
Standard button or label property.void
setHorizontalAlignment(T aLabeled, int aValue)
Standard button or label property.void
setHorizontalTextPosition(T aLabeled, int aValue)
Standard button or label property.void
setIcon(T aLabeled, javax.swing.Icon anIcon)
Sets the button or label icon.void
setIconTextGap(T aLabeled, int aValue)
Standard button or label property.void
setVerticalAlignment(T aLabeled, int aValue)
Standard button or label property.void
setVerticalTextPosition(T aLabeled, int aValue)
Standard button or label property.-
Methods inherited from class com.inductiveautomation.snap.swing.helpers.LabeledHpr
getChildCount, getPropertyNamesImpl
-
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, 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
-
getIcon
public javax.swing.Icon getIcon(T aLabeled)
Returns the button or label icon.- Specified by:
getIcon
in classLabeledHpr<T extends javax.swing.JLabel>
-
setIcon
public void setIcon(T aLabeled, javax.swing.Icon anIcon)
Sets the button or label icon.- Specified by:
setIcon
in classLabeledHpr<T extends javax.swing.JLabel>
-
getHorizontalAlignment
public int getHorizontalAlignment(T aLabeled)
Standard button or label property.- Specified by:
getHorizontalAlignment
in classLabeledHpr<T extends javax.swing.JLabel>
-
setHorizontalAlignment
public void setHorizontalAlignment(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setHorizontalAlignment
in classLabeledHpr<T extends javax.swing.JLabel>
-
getVerticalAlignment
public int getVerticalAlignment(T aLabeled)
Standard button or label property.- Specified by:
getVerticalAlignment
in classLabeledHpr<T extends javax.swing.JLabel>
-
setVerticalAlignment
public void setVerticalAlignment(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setVerticalAlignment
in classLabeledHpr<T extends javax.swing.JLabel>
-
getHorizontalTextPosition
public int getHorizontalTextPosition(T aLabeled)
Standard button or label property.- Specified by:
getHorizontalTextPosition
in classLabeledHpr<T extends javax.swing.JLabel>
-
setHorizontalTextPosition
public void setHorizontalTextPosition(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setHorizontalTextPosition
in classLabeledHpr<T extends javax.swing.JLabel>
-
getVerticalTextPosition
public int getVerticalTextPosition(T aLabeled)
Standard button or label property.- Specified by:
getVerticalTextPosition
in classLabeledHpr<T extends javax.swing.JLabel>
-
setVerticalTextPosition
public void setVerticalTextPosition(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setVerticalTextPosition
in classLabeledHpr<T extends javax.swing.JLabel>
-
getIconTextGap
public int getIconTextGap(T aLabeled)
Standard button or label property.- Specified by:
getIconTextGap
in classLabeledHpr<T extends javax.swing.JLabel>
-
setIconTextGap
public void setIconTextGap(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setIconTextGap
in classLabeledHpr<T extends javax.swing.JLabel>
-
getPropertyNameMapped
public java.lang.String getPropertyNameMapped(T anObj, java.lang.String aName)
Returns a mapped property name.- Overrides:
getPropertyNameMapped
in classUIHelper<T extends javax.swing.JLabel>
-
-