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 TypeMethodDescriptionvoidfromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.intgetHorizontalAlignment(JComponent aComponent) Standard button or label propertyintgetHorizontalTextPosition(JComponent aComponent) Standard button or label propertygetIcon(JComponent aComponent) Returns the button or label icon.intgetIconTextGap(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.intgetVerticalAlignment(JComponent aComponent) Standard button or label propertyintgetVerticalTextPosition(JComponent aComponent) Standard button or label propertyvoidsetHorizontalAlignment(JComponent aComponent, int val) Standard button or label propertyvoidsetHorizontalTextPosition(JComponent aComponent, int val) Standard button or label propertyvoidsetIcon(JComponent aComponent, Icon anIcon) Sets the button or label icon.voidsetIconTextGap(JComponent aComponent, int val) Standard button or label propertyvoidsetImageName(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.voidsetText(JComponent aComponent, String aString) Sets the text for the button or label.voidsetVerticalAlignment(JComponent aComponent, int val) Standard button or label propertyvoidsetVerticalTextPosition(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.
-