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 SummaryConstructors
- 
Method SummaryModifier 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.RJHelperadd, 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- 
JButtonOrLabelHprpublic JButtonOrLabelHpr()Creates a new JButtonOrLabelHpr.
 
- 
- 
Method Details- 
getImageNameReturns the image name for this button's icon.
- 
setImageNameSets the image name for this button's icon and tries to set the icon by asking Ribs for the named icon.
- 
getIconReturns the button or label icon.
- 
setIconSets the button or label icon.
- 
getTextReturns the text for the button or label.
- 
setTextSets the text for the button or label.
- 
getHorizontalAlignmentStandard button or label property
- 
setHorizontalAlignmentStandard button or label property
- 
getVerticalAlignmentStandard button or label property
- 
setVerticalAlignmentStandard button or label property
- 
getHorizontalTextPositionStandard button or label property
- 
setHorizontalTextPositionStandard button or label property
- 
getVerticalTextPositionStandard button or label property
- 
setVerticalTextPositionStandard button or label property
- 
getIconTextGapStandard button or label property
- 
setIconTextGapStandard button or label property
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-