Class AbstractButtonHpr<T extends javax.swing.AbstractButton>
- 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.AbstractButtonHpr<T>
-
- Direct Known Subclasses:
JButtonHpr,JToggleButtonHpr
public class AbstractButtonHpr<T extends javax.swing.AbstractButton> extends LabeledHpr<T>
JComponentHpr subclass for AbstractButtons.
-
-
Constructor Summary
Constructors Constructor Description AbstractButtonHpr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHorizontalAlignment(T aLabeled)Standard button or label property.intgetHorizontalTextPosition(T aLabeled)Standard button or label property.javax.swing.IcongetIcon(T aLabeled)Returns the button or label icon.intgetIconTextGap(T aLabeled)Standard button or label property.java.lang.StringgetPropertyNameMapped(T anObj, java.lang.String aPropertyName)Returns a mapped property name.java.lang.StringgetText(T aButton)Returns the text property of given object.intgetVerticalAlignment(T aLabeled)Standard button or label property.intgetVerticalTextPosition(T aLabeled)Standard button or label property.voidinitUI(T aButton, UIOwner anOwner)Initializes newly created object.voidsetHorizontalAlignment(T aLabeled, int aValue)Standard button or label property.voidsetHorizontalTextPosition(T aLabeled, int aValue)Standard button or label property.voidsetIcon(T aLabeled, javax.swing.Icon anIcon)Sets the button or label icon.voidsetIconTextGap(T aLabeled, int aValue)Standard button or label property.voidsetVerticalAlignment(T aLabeled, int aValue)Standard button or label property.voidsetVerticalTextPosition(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, 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, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItemDisplayKey, setItems, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setSelectedItem, setText, setValue
-
-
-
-
Method Detail
-
initUI
public void initUI(T aButton, UIOwner anOwner)
Initializes newly created object.- Overrides:
initUIin classJComponentHpr<T extends javax.swing.AbstractButton>
-
getIcon
public javax.swing.Icon getIcon(T aLabeled)
Returns the button or label icon.- Specified by:
getIconin classLabeledHpr<T extends javax.swing.AbstractButton>
-
setIcon
public void setIcon(T aLabeled, javax.swing.Icon anIcon)
Sets the button or label icon.- Specified by:
setIconin classLabeledHpr<T extends javax.swing.AbstractButton>
-
getHorizontalAlignment
public int getHorizontalAlignment(T aLabeled)
Standard button or label property.- Specified by:
getHorizontalAlignmentin classLabeledHpr<T extends javax.swing.AbstractButton>
-
setHorizontalAlignment
public void setHorizontalAlignment(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setHorizontalAlignmentin classLabeledHpr<T extends javax.swing.AbstractButton>
-
getVerticalAlignment
public int getVerticalAlignment(T aLabeled)
Standard button or label property.- Specified by:
getVerticalAlignmentin classLabeledHpr<T extends javax.swing.AbstractButton>
-
setVerticalAlignment
public void setVerticalAlignment(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setVerticalAlignmentin classLabeledHpr<T extends javax.swing.AbstractButton>
-
getHorizontalTextPosition
public int getHorizontalTextPosition(T aLabeled)
Standard button or label property.- Specified by:
getHorizontalTextPositionin classLabeledHpr<T extends javax.swing.AbstractButton>
-
setHorizontalTextPosition
public void setHorizontalTextPosition(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setHorizontalTextPositionin classLabeledHpr<T extends javax.swing.AbstractButton>
-
getVerticalTextPosition
public int getVerticalTextPosition(T aLabeled)
Standard button or label property.- Specified by:
getVerticalTextPositionin classLabeledHpr<T extends javax.swing.AbstractButton>
-
setVerticalTextPosition
public void setVerticalTextPosition(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setVerticalTextPositionin classLabeledHpr<T extends javax.swing.AbstractButton>
-
getIconTextGap
public int getIconTextGap(T aLabeled)
Standard button or label property.- Specified by:
getIconTextGapin classLabeledHpr<T extends javax.swing.AbstractButton>
-
setIconTextGap
public void setIconTextGap(T aLabeled, int aValue)
Standard button or label property.- Specified by:
setIconTextGapin classLabeledHpr<T extends javax.swing.AbstractButton>
-
getPropertyNameMapped
public java.lang.String getPropertyNameMapped(T anObj, java.lang.String aPropertyName)
Returns a mapped property name.- Overrides:
getPropertyNameMappedin classUIHelper<T extends javax.swing.AbstractButton>
-
-