Package com.ribs.helpers
Class AbstractButtonHpr
- java.lang.Object
- 
- com.ribs.RJHelper
- 
- com.ribs.helpers.JButtonOrLabelHpr
- 
- com.ribs.helpers.AbstractButtonHpr
 
 
 
- 
- Direct Known Subclasses:
- RJCheckBoxHpr
 
 public class AbstractButtonHpr extends JButtonOrLabelHpr This class is a simple JButton subclass to support Ribs archival and to support Ribs unified accessor model.Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill . 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractButtonHpr()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.booleangetBoolValue(javax.swing.JComponent aComponent)Returns the button's bool value.javax.swing.ButtonGroupgetButtonGroup(javax.swing.JComponent aComponent)Returns the actual button group instance for this buttonjava.lang.StringgetButtonGroupName(javax.swing.JComponent aComponent)Returns the button group name for this button.java.lang.StringgetMarginString(javax.swing.AbstractButton aButton)Returns the margin string for a button, if it's been explicity set in Ribs.java.lang.StringgetSelectedImageName(javax.swing.JComponent aComponent)Returns the image name for this button's icon when selected.booleangetSendActionOnClick(javax.swing.AbstractButton aButton)Returns whether this button sends action when clicked.booleangetSendActionOnDoubleClick(javax.swing.AbstractButton aButton)Returns whether this button sends action when double-clicked.java.lang.StringgetStringValue(javax.swing.JComponent aComponent)Returns the button's visible text.java.lang.ObjectgetValue(javax.swing.JComponent aComponent)Returns the button's value.voidinitInstance(javax.swing.JComponent aComponent)Initializes the given instance (actually called the first time an owner is set).java.lang.ObjectnewInstance(RXElement anElement)Creates a new instance of class for given element.voidsetButtonGroupName(javax.swing.JComponent aComponent, java.lang.String aName)This method sets the button group name for this button and tries to set the button group by asking its parent RJPanel for the button group with the given name (the parent RJPanel will create one if necessary).voidsetMarginString(javax.swing.AbstractButton aButton, java.lang.String aString)Sets the margin string for a button.voidsetSelectedImageName(javax.swing.JComponent aComponent, java.lang.String aName)Sets the image name for this button's icon when selected.voidsetSendActionOnClick(javax.swing.AbstractButton aButton, boolean aValue)Sets whether this button sends action when clicked.voidsetSendActionOnDoubleClick(javax.swing.AbstractButton aButton, boolean aValue)Sets whether this button sends action when double-clicked.voidsetValue(javax.swing.JComponent aComponent, boolean aValue)Sets the button's boolean value.voidsetValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the visible button text.RXElementtoXML(javax.swing.JComponent aComponent, RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.ribs.helpers.JButtonOrLabelHprgetHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getImageName, getText, getVerticalAlignment, getVerticalTextPosition, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setImageName, setText, setVerticalAlignment, setVerticalTextPosition
 - 
Methods inherited from class com.ribs.RJHelperadd, focusGained, focusLost, fromXMLDeep, get, getActionListener, getAutoscrolls, getAutosizing, getBackground, getBindKey, getBooleanValue, getCallback, getChangeListener, getColorValue, getComponent, getComponentCount, getFloatValue, getFocusListener, getForeground, getIntValue, getMaster, getMaximumSize, getMinimumSize, getOwner, getRibHeight, getRibWidth, getRibX, getRibY, getSendActionOnFocusLost, getSubstitutionClassString, isOpaque, performBindKeyGet, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, setValue, setValue, setValue, takeFloatValue, takeIntValue, testOutBeanBag, toXMLDeep
 
- 
 
- 
- 
- 
Method Detail- 
newInstancepublic java.lang.Object newInstance(RXElement anElement) Creates a new instance of class for given element.- Overrides:
- newInstancein class- RJHelper
 
 - 
initInstancepublic void initInstance(javax.swing.JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).- Overrides:
- initInstancein class- RJHelper
 
 - 
getSelectedImageNamepublic java.lang.String getSelectedImageName(javax.swing.JComponent aComponent) Returns the image name for this button's icon when selected.
 - 
setSelectedImageNamepublic void setSelectedImageName(javax.swing.JComponent aComponent, java.lang.String aName)Sets the image name for this button's icon when selected.
 - 
getButtonGroupNamepublic java.lang.String getButtonGroupName(javax.swing.JComponent aComponent) Returns the button group name for this button.
 - 
getButtonGrouppublic javax.swing.ButtonGroup getButtonGroup(javax.swing.JComponent aComponent) Returns the actual button group instance for this button
 - 
setButtonGroupNamepublic void setButtonGroupName(javax.swing.JComponent aComponent, java.lang.String aName)This method sets the button group name for this button and tries to set the button group by asking its parent RJPanel for the button group with the given name (the parent RJPanel will create one if necessary).
 - 
getSendActionOnClickpublic boolean getSendActionOnClick(javax.swing.AbstractButton aButton) Returns whether this button sends action when clicked.
 - 
setSendActionOnClickpublic void setSendActionOnClick(javax.swing.AbstractButton aButton, boolean aValue)Sets whether this button sends action when clicked.
 - 
getSendActionOnDoubleClickpublic boolean getSendActionOnDoubleClick(javax.swing.AbstractButton aButton) Returns whether this button sends action when double-clicked.
 - 
setSendActionOnDoubleClickpublic void setSendActionOnDoubleClick(javax.swing.AbstractButton aButton, boolean aValue)Sets whether this button sends action when double-clicked.
 - 
getMarginStringpublic java.lang.String getMarginString(javax.swing.AbstractButton aButton) Returns the margin string for a button, if it's been explicity set in Ribs.
 - 
setMarginStringpublic void setMarginString(javax.swing.AbstractButton aButton, java.lang.String aString)Sets the margin string for a button.
 - 
getValuepublic java.lang.Object getValue(javax.swing.JComponent aComponent) Returns the button's value.
 - 
getStringValuepublic java.lang.String getStringValue(javax.swing.JComponent aComponent) Returns the button's visible text.- Overrides:
- getStringValuein class- RJHelper
 
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the visible button text.
 - 
getBoolValuepublic boolean getBoolValue(javax.swing.JComponent aComponent) Returns the button's bool value.- Overrides:
- getBoolValuein class- RJHelper
 
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, boolean aValue)Sets the button's boolean value.
 - 
toXMLpublic RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver) XML archival.- Overrides:
- toXMLin class- JButtonOrLabelHpr
 
 - 
fromXMLpublic void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.- Overrides:
- fromXMLin class- JButtonOrLabelHpr
 
 
- 
 
-