planetj.gui
Class CMCheckBoxJ
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.AbstractButton
                          |
                          +--javax.swing.JToggleButton
                                |
                                +--javax.swing.JCheckBox
                                      |
                                      +--planetj.gui.CMCheckBoxJ
- All Implemented Interfaces: 
 - Accessible, EventListener, ImageObserver, ItemListener, ItemSelectable, MenuContainer, Serializable, SwingConstants
 
- public class CMCheckBoxJ
- extends JCheckBox
- implements ItemListener
   
Provides I18N functionality on top of all basic swing functionality.
- See Also:
 - Serialized Form
 
 
 
| 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 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 | 
 
 
 
 
 
| 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, 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 | 
 
 
CMCheckBoxJ
public CMCheckBoxJ()
- Insert the method's description here.
 Creation date: (12/18/99 11:11:10 AM)
 
CMCheckBoxJ
public CMCheckBoxJ(String text)
- CMCheckBoxJ constructor comment.
 - Parameters:
 text - java.lang.String
CMCheckBoxJ
public CMCheckBoxJ(String text,
                   Icon icon)
- CMCheckBoxJ constructor comment.
 - Parameters:
 text - java.lang.Stringicon - javax.swing.Icon
CMCheckBoxJ
public CMCheckBoxJ(String text,
                   Icon icon,
                   boolean selected)
- CMCheckBoxJ constructor comment.
 - Parameters:
 text - java.lang.Stringicon - javax.swing.Iconselected - boolean
CMCheckBoxJ
public CMCheckBoxJ(String text,
                   boolean selected)
- CMCheckBoxJ constructor comment.
 - Parameters:
 text - java.lang.Stringselected - boolean
CMCheckBoxJ
public CMCheckBoxJ(Icon icon)
- CMCheckBoxJ constructor comment.
 - Parameters:
 icon - javax.swing.Icon
CMCheckBoxJ
public CMCheckBoxJ(Icon icon,
                   boolean selected)
- CMCheckBoxJ constructor comment.
 - Parameters:
 icon - javax.swing.Iconselected - boolean
cMCheckBoxJ_ItemStateChanged
public void cMCheckBoxJ_ItemStateChanged(boolean newSelected)
- Comment
 
 
 
getTranslation
public String getTranslation()
- Gets the translated String.
 
 
 
getTranslationId
public String getTranslationId()
- Gets the key of the translated String.
 
 
 
isNotSelected
public boolean isNotSelected()
- Gets the notSelected property (boolean) value.
 
- Returns:
 - The notSelected property value.
 - See Also:
 #setNotSelected
 
 
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[]
 
 
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
 
 
 
setToolTipText
public void setToolTipText(String toolTip)
- Sets the toolTipText property (java.lang.String) value.
- Overrides:
 setToolTipText in class JComponent
 
- Parameters:
 toolTip - The new value for the property.- See Also:
 JComponent.getToolTipText()
 
 
setTranslation
public void setTranslation(String newTranslation)
- Sets the String without translating it.