planetj.gui
Class CMRadioButtonJ

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.AbstractButton
                          |
                          +--javax.swing.JToggleButton
                                |
                                +--javax.swing.JRadioButton
                                      |
                                      +--planetj.gui.CMRadioButtonJ
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, ItemListener, ItemSelectable, MenuContainer, Serializable, SwingConstants

public class CMRadioButtonJ
extends JRadioButton
implements ItemListener

Provides I18N and business object support.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractButton
BORDER_PAINTED_CHANGED_PROPERTY, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CMRadioButtonJ()
          Insert the method's description here.
CMRadioButtonJ(Icon icon)
          CMRadioButtonJ constructor comment.
CMRadioButtonJ(Icon icon, boolean selected)
          CMRadioButtonJ constructor comment.
CMRadioButtonJ(String text)
          CMRadioButtonJ constructor comment.
CMRadioButtonJ(String text, boolean selected)
          CMRadioButtonJ constructor comment.
CMRadioButtonJ(String text, Icon icon)
          CMRadioButtonJ constructor comment.
CMRadioButtonJ(String text, Icon icon, boolean selected)
          CMRadioButtonJ constructor comment.
 
Method Summary
 void cMRadioButtonJ_ItemStateChanged(boolean newSelected)
          Comment
 Object getBusinessObject()
          getBusinessObject method returns the business object for the type
 String getTranslation()
          Gets the translated String.
 String getTranslationId()
          Gets the key of the translated String.
 void itemStateChanged(ItemEvent e)
          Method to handle events for the ItemListener interface.
static void main(String[] args)
          main entrypoint - starts the part when it is run as an application
 void setBusinessObject(Object obj)
          setBusinessObject method sets the business object
 void setLabel(String key)
          Overrides the superclass to set the key for the translated String.
 void setSelected(boolean newSelected)
          Sets the selected property (boolean) value.
 void setText(String key)
          Overrides the superclass to set the key for the translated String.
 void setTranslation(String newTranslation)
          Sets the String without translating it.
 
Methods inherited from class javax.swing.JRadioButton
getAccessibleContext, getUIClassID, updateUI
 
Methods inherited from class javax.swing.AbstractButton
addActionListener, addChangeListener, addItemListener, doClick, doClick, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, removeActionListener, removeChangeListener, removeItemListener, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelectedIcon, setUI, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMRadioButtonJ

public CMRadioButtonJ()
Insert the method's description here. Creation date: (12/18/99 11:31:20 AM)


CMRadioButtonJ

public CMRadioButtonJ(String text)
CMRadioButtonJ constructor comment.

Parameters:
text - java.lang.String

CMRadioButtonJ

public CMRadioButtonJ(String text,
                      Icon icon)
CMRadioButtonJ constructor comment.

Parameters:
text - java.lang.String
icon - javax.swing.Icon

CMRadioButtonJ

public CMRadioButtonJ(String text,
                      Icon icon,
                      boolean selected)
CMRadioButtonJ constructor comment.

Parameters:
text - java.lang.String
icon - javax.swing.Icon
selected - boolean

CMRadioButtonJ

public CMRadioButtonJ(String text,
                      boolean selected)
CMRadioButtonJ constructor comment.

Parameters:
text - java.lang.String
selected - boolean

CMRadioButtonJ

public CMRadioButtonJ(Icon icon)
CMRadioButtonJ constructor comment.

Parameters:
icon - javax.swing.Icon

CMRadioButtonJ

public CMRadioButtonJ(Icon icon,
                      boolean selected)
CMRadioButtonJ constructor comment.

Parameters:
icon - javax.swing.Icon
selected - boolean
Method Detail

cMRadioButtonJ_ItemStateChanged

public void cMRadioButtonJ_ItemStateChanged(boolean newSelected)
Comment


getBusinessObject

public Object getBusinessObject()
getBusinessObject method returns the business object for the type

Returns:
java.lang.Object

getTranslation

public String getTranslation()
Gets the translated String.


getTranslationId

public String getTranslationId()
Gets the key of the translated String.


itemStateChanged

public void itemStateChanged(ItemEvent e)
Method to handle events for the ItemListener interface.

Specified by:
itemStateChanged in interface ItemListener
Parameters:
e - java.awt.event.ItemEvent

main

public static void main(String[] args)
main entrypoint - starts the part when it is run as an application

Parameters:
args - java.lang.String[]

setBusinessObject

public void setBusinessObject(Object obj)
setBusinessObject method sets the business object

Parameters:
obj - java.lang.Object

setLabel

public void setLabel(String key)
Overrides the superclass to set the key for the translated String.

Overrides:
setLabel in class AbstractButton

setSelected

public void setSelected(boolean newSelected)
Sets the selected property (boolean) value.

Overrides:
setSelected in class AbstractButton

setText

public void setText(String key)
Overrides the superclass to set the key for the translated String.

Overrides:
setText in class AbstractButton

setTranslation

public void setTranslation(String newTranslation)
Sets the String without translating it.