Package com.ribs.helpers
Class JButtonOrLabelHpr
- java.lang.Object
- 
- com.ribs.RJHelper
- 
- com.ribs.helpers.JButtonOrLabelHpr
 
 
- 
- Direct Known Subclasses:
- AbstractButtonHpr,- JLabelHpr
 
 public class JButtonOrLabelHpr extends RJHelper This class is the superclass for labels and buttons which handles attributes common to both classes.
- 
- 
Constructor SummaryConstructors Constructor Description JButtonOrLabelHpr()Creates a new JButtonOrLabelHpr.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.intgetHorizontalAlignment(javax.swing.JComponent aComponent)Standard button or label propertyintgetHorizontalTextPosition(javax.swing.JComponent aComponent)Standard button or label propertyjavax.swing.IcongetIcon(javax.swing.JComponent aComponent)Returns the button or label icon.intgetIconTextGap(javax.swing.JComponent aComponent)Standard button or label propertyjava.lang.StringgetImageName(javax.swing.JComponent aComponent)Returns the image name for this button's icon.java.lang.StringgetText(javax.swing.JComponent aComponent)Returns the text for the button or label.intgetVerticalAlignment(javax.swing.JComponent aComponent)Standard button or label propertyintgetVerticalTextPosition(javax.swing.JComponent aComponent)Standard button or label propertyvoidsetHorizontalAlignment(javax.swing.JComponent aComponent, int val)Standard button or label propertyvoidsetHorizontalTextPosition(javax.swing.JComponent aComponent, int val)Standard button or label propertyvoidsetIcon(javax.swing.JComponent aComponent, javax.swing.Icon anIcon)Sets the button or label icon.voidsetIconTextGap(javax.swing.JComponent aComponent, int val)Standard button or label propertyvoidsetImageName(javax.swing.JComponent aComponent, java.lang.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(javax.swing.JComponent aComponent, java.lang.String aString)Sets the text for the button or label.voidsetVerticalAlignment(javax.swing.JComponent aComponent, int val)Standard button or label propertyvoidsetVerticalTextPosition(javax.swing.JComponent aComponent, int val)Standard button or label propertyRXElementtoXML(javax.swing.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
 
- 
 
- 
- 
- 
Method Detail- 
getImageNamepublic java.lang.String getImageName(javax.swing.JComponent aComponent) Returns the image name for this button's icon.
 - 
setImageNamepublic void setImageName(javax.swing.JComponent aComponent, java.lang.String aName)Sets the image name for this button's icon and tries to set the icon by asking Ribs for the named icon.
 - 
getIconpublic javax.swing.Icon getIcon(javax.swing.JComponent aComponent) Returns the button or label icon.
 - 
setIconpublic void setIcon(javax.swing.JComponent aComponent, javax.swing.Icon anIcon)Sets the button or label icon.
 - 
getTextpublic java.lang.String getText(javax.swing.JComponent aComponent) Returns the text for the button or label.
 - 
setTextpublic void setText(javax.swing.JComponent aComponent, java.lang.String aString)Sets the text for the button or label.
 - 
getHorizontalAlignmentpublic int getHorizontalAlignment(javax.swing.JComponent aComponent) Standard button or label property
 - 
setHorizontalAlignmentpublic void setHorizontalAlignment(javax.swing.JComponent aComponent, int val)Standard button or label property
 - 
getVerticalAlignmentpublic int getVerticalAlignment(javax.swing.JComponent aComponent) Standard button or label property
 - 
setVerticalAlignmentpublic void setVerticalAlignment(javax.swing.JComponent aComponent, int val)Standard button or label property
 - 
getHorizontalTextPositionpublic int getHorizontalTextPosition(javax.swing.JComponent aComponent) Standard button or label property
 - 
setHorizontalTextPositionpublic void setHorizontalTextPosition(javax.swing.JComponent aComponent, int val)Standard button or label property
 - 
getVerticalTextPositionpublic int getVerticalTextPosition(javax.swing.JComponent aComponent) Standard button or label property
 - 
setVerticalTextPositionpublic void setVerticalTextPosition(javax.swing.JComponent aComponent, int val)Standard button or label property
 - 
getIconTextGappublic int getIconTextGap(javax.swing.JComponent aComponent) Standard button or label property
 - 
setIconTextGappublic void setIconTextGap(javax.swing.JComponent aComponent, int val)Standard button or label property
 - 
toXMLpublic RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.
 
- 
 
-