Package com.ribs.helpers
Class JButtonOrLabelHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JButtonOrLabelHpr
- 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 TypeMethodDescriptionvoid
fromXML
(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.int
getHorizontalAlignment
(JComponent aComponent) Standard button or label propertyint
getHorizontalTextPosition
(JComponent aComponent) Standard button or label propertygetIcon
(JComponent aComponent) Returns the button or label icon.int
getIconTextGap
(JComponent aComponent) Standard button or label propertygetImageName
(JComponent aComponent) Returns the image name for this button's icon.getText
(JComponent aComponent) Returns the text for the button or label.int
getVerticalAlignment
(JComponent aComponent) Standard button or label propertyint
getVerticalTextPosition
(JComponent aComponent) Standard button or label propertyvoid
setHorizontalAlignment
(JComponent aComponent, int val) Standard button or label propertyvoid
setHorizontalTextPosition
(JComponent aComponent, int val) Standard button or label propertyvoid
setIcon
(JComponent aComponent, Icon anIcon) Sets the button or label icon.void
setIconTextGap
(JComponent aComponent, int val) Standard button or label propertyvoid
setImageName
(JComponent aComponent, String aName) Sets the image name for this button's icon and tries to set the icon by asking Ribs for the named icon.void
setText
(JComponent aComponent, String aString) Sets the text for the button or label.void
setVerticalAlignment
(JComponent aComponent, int val) Standard button or label propertyvoid
setVerticalTextPosition
(JComponent aComponent, int val) Standard button or label propertytoXML
(JComponent aComponent, RXArchiver anArchiver) XML archival.Methods inherited from class com.ribs.RJHelper
add, focusGained, focusLost, fromXMLDeep, get, getActionListener, getAutoscrolls, getAutosizing, getBackground, getBindKey, getBooleanValue, getBoolValue, getCallback, getChangeListener, getColorValue, getComponent, getComponentCount, getFloatValue, getFocusListener, getForeground, getIntValue, getMaster, getMaximumSize, getMinimumSize, getOwner, getRibHeight, getRibWidth, getRibX, getRibY, getSendActionOnFocusLost, getStringValue, getSubstitutionClassString, getValue, initInstance, isOpaque, newInstance, performBindKeyGet, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, setValue, setValue, setValue, setValue, setValue, takeFloatValue, takeIntValue, testOutBeanBag, toXMLDeep
-
Constructor Details
-
JButtonOrLabelHpr
public JButtonOrLabelHpr()Creates a new JButtonOrLabelHpr.
-
-
Method Details
-
getImageName
Returns the image name for this button's icon. -
setImageName
Sets the image name for this button's icon and tries to set the icon by asking Ribs for the named icon. -
getIcon
Returns the button or label icon. -
setIcon
Sets the button or label icon. -
getText
Returns the text for the button or label. -
setText
Sets the text for the button or label. -
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 -
toXML
XML archival. -
fromXML
XML unarchival.
-