Package com.ribs.helpers
Class AbstractButtonHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JButtonOrLabelHpr
com.ribs.helpers.AbstractButtonHpr
- Direct Known Subclasses:
- RJCheckBoxHpr
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 <info@reportmill.com>.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidfromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.booleangetBoolValue(JComponent aComponent) Returns the button's bool value.getButtonGroup(JComponent aComponent) Returns the actual button group instance for this buttongetButtonGroupName(JComponent aComponent) Returns the button group name for this button.getMarginString(AbstractButton aButton) Returns the margin string for a button, if it's been explicity set in Ribs.getSelectedImageName(JComponent aComponent) Returns the image name for this button's icon when selected.booleangetSendActionOnClick(AbstractButton aButton) Returns whether this button sends action when clicked.booleangetSendActionOnDoubleClick(AbstractButton aButton) Returns whether this button sends action when double-clicked.getStringValue(JComponent aComponent) Returns the button's visible text.getValue(JComponent aComponent) Returns the button's value.voidinitInstance(JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).newInstance(RXElement anElement) Creates a new instance of class for given element.voidsetButtonGroupName(JComponent aComponent, 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(AbstractButton aButton, String aString) Sets the margin string for a button.voidsetSelectedImageName(JComponent aComponent, String aName) Sets the image name for this button's icon when selected.voidsetSendActionOnClick(AbstractButton aButton, boolean aValue) Sets whether this button sends action when clicked.voidsetSendActionOnDoubleClick(AbstractButton aButton, boolean aValue) Sets whether this button sends action when double-clicked.voidsetValue(JComponent aComponent, boolean aValue) Sets the button's boolean value.voidsetValue(JComponent aComponent, String aValue) Sets the visible button text.toXML(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, setVerticalTextPositionMethods 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
- 
Constructor Details- 
AbstractButtonHprpublic AbstractButtonHpr()
 
- 
- 
Method Details- 
newInstanceCreates a new instance of class for given element.- Overrides:
- newInstancein class- RJHelper
 
- 
initInstanceInitializes the given instance (actually called the first time an owner is set).- Overrides:
- initInstancein class- RJHelper
 
- 
getSelectedImageNameReturns the image name for this button's icon when selected.
- 
setSelectedImageNameSets the image name for this button's icon when selected.
- 
getButtonGroupNameReturns the button group name for this button.
- 
getButtonGroupReturns the actual button group instance for this button
- 
setButtonGroupNameThis 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).
- 
getSendActionOnClickReturns whether this button sends action when clicked.
- 
setSendActionOnClickSets whether this button sends action when clicked.
- 
getSendActionOnDoubleClickReturns whether this button sends action when double-clicked.
- 
setSendActionOnDoubleClickSets whether this button sends action when double-clicked.
- 
getMarginStringReturns the margin string for a button, if it's been explicity set in Ribs.
- 
setMarginStringSets the margin string for a button.
- 
getValueReturns the button's value.
- 
getStringValueReturns the button's visible text.- Overrides:
- getStringValuein class- RJHelper
 
- 
setValueSets the visible button text.
- 
getBoolValueReturns the button's bool value.- Overrides:
- getBoolValuein class- RJHelper
 
- 
setValueSets the button's boolean value.
- 
toXMLXML archival.- Overrides:
- toXMLin class- JButtonOrLabelHpr
 
- 
fromXMLXML unarchival.- Overrides:
- fromXMLin class- JButtonOrLabelHpr
 
 
-