borland Packages  Class Hierarchy  dbswing Package 

IntlCheckBoxMenuItem component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----javax.swing.JComponent
                           +----javax.swing.AbstractButton
                                   +----javax.swing.JMenuItem
                                           +----javax.swing.JCheckBoxMenuItem
                                                   +----com.borland.dbswing.IntlCheckBoxMenuItem

About the IntlCheckBoxMenuItem component

Variables  Constructors  Properties  Methods  Event Listeners

Implements ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants

Note: This is a feature of JBuilder Professional and Enterprise.

IntlCheckBoxMenuItem is an extension of JCheckBoxMenuItem; it adds an additional property for internationalization support. The setTextWithMnemonic property accepts a text string containing an ampersand (&) preceding the character to be used as the menu's mnemonic character. This makes internationalization easier because the text and mnemonic can be translated as a single string. A translator given a list of strings to translate need not match single mnemonic characters in isolation with their corresponding menu names.

See also: IntlMenuItem, IntlMenu


IntlCheckBoxMenuItem variables

Variables implemented in java.awt.Component

Variables implemented in javax.swing.AbstractButton

Variables implemented in javax.swing.JComponent

IntlCheckBoxMenuItem constructors

IntlCheckBoxMenuItem properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

Properties implemented in javax.swing.AbstractButton

Properties implemented in javax.swing.JCheckBoxMenuItem

Properties implemented in javax.swing.JComponent

Properties implemented in javax.swing.JMenuItem

IntlCheckBoxMenuItem methods

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

Methods implemented in javax.swing.AbstractButton

Methods implemented in javax.swing.JCheckBoxMenuItem

Methods implemented in javax.swing.JComponent

Methods implemented in javax.swing.JMenuItem

IntlCheckBoxMenuItem event listeners


IntlCheckBoxMenuItem constructors

IntlCheckBoxMenuItem()

  public IntlCheckBoxMenuItem()
Constructs an IntlCheckBoxMenuItem. Calls the constructor of this class that takes a String, Icon, and boolean. Passes null, null, and false to the other constructor.

IntlCheckBoxMenuItem(java.lang.String)

  public IntlCheckBoxMenuItem(String text)
Constructs an IntlCheckBoxMenuItem. Calls the constructor of this class that takes a String, Icon, and boolean. Passes the specified text string, null, and false to the other constructor.

Parameters:

text
The text string that appears on the menu item.

IntlCheckBoxMenuItem(java.lang.String, boolean)

  public IntlCheckBoxMenuItem(String text, boolean selected)
Constructs an IntlCheckBoxMenuItem. Calls the constructor of this class that takes a String, Icon, and boolean. Passes the specified text string, null, and the selected parameter to the other constructor.

Parameters:

text
The text string that appears on the menu item.
selected
If true, a check mark appears beside the menu item; if false, no check mark appears.

IntlCheckBoxMenuItem(java.lang.String, javax.swing.Icon)

  public IntlCheckBoxMenuItem(String text, Icon icon)
Constructs an IntlCheckBoxMenuItem. Calls the constructor of this class that takes a String, Icon, and boolean. Passes the specified text string and icon, and false to the other constructor.

Parameters:

text
The text string that appears on the menu item.
icon
The icon that appears on the menu item.

IntlCheckBoxMenuItem(java.lang.String, javax.swing.Icon, boolean)

  public IntlCheckBoxMenuItem(String text, Icon icon, boolean selected)
Constructs an IntlCheckBoxMenuItem by calling its superclass and passing it the text, icon, and selected parameters. This constructor is called by all of the other IntlCheckBoxMenuItem constructors.

Parameters:

text
The text string that appears on the menu item.
icon
The icon that appears on the menu item.
selected
If true, a check mark appears beside the menu item; if false, no check mark appears.

IntlCheckBoxMenuItem(javax.swing.Icon)

  public IntlCheckBoxMenuItem(Icon icon)
Constructs an IntlCheckBoxMenuItem. Calls the constructor of this class that takes a String, Icon, and boolean. Passes null, the specified icon, and false to the other constructor.

Parameters:

icon
The icon that appears on the menu item.

IntlCheckBoxMenuItem properties

textWithMnemonic

 public String getTextWithMnemonic()
 public void setTextWithMnemonic(String text)
Returns and sets the text with an embedded mnemonic character. textWithMnemonic is a convenience property for setting the button's text, which interprets an ampersand character (&) within the text as an instruction to make the character following the ampersand the mnemonic character for the button. To put an ampersand in the text but not make the character following it a hot key, put a back slash before the ampersand. To make the ampersand the hot key, put two consecutive ampersands in the text.

This property can be used instead of the usual text property, even if a mnemonic character is not embedded in the text. It is particularly useful for applications that resource strings for internationalization, because the text and mnemonic can be specified in a single string.

Note that the first occurrence of the mnemonic character is always denoted visibly as the mnemonic key, despite the location of the ampersand within the text. Furthermore, only the first occurrence of an ampersand is removed from the text.

If both the text and textWithMneumonic properties are set, the most recently set property takes precedence.

textWithMnemonic is a bound property, and therefore a property change event is fired when its value is modified.


IntlCheckBoxMenuItem event listeners

This component is a source for the following event sets.

action

 public void addActionListener(java.awt.event.ActionListener )
 public void removeActionListener(java.awt.event.ActionListener )

ancestor

 public void addAncestorListener(javax.swing.event.AncestorListener )
 public void removeAncestorListener(javax.swing.event.AncestorListener )

change

 public void addChangeListener(javax.swing.event.ChangeListener )
 public void removeChangeListener(javax.swing.event.ChangeListener )

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener )
 public synchronized void removeContainerListener(java.awt.event.ContainerListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

inputMethod

 public synchronized void addInputMethodListener(java.awt.event.InputMethodListener )
 public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )

item

 public void addItemListener(java.awt.event.ItemListener )
 public void removeItemListener(java.awt.event.ItemListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

menuDragMouse

 public void addMenuDragMouseListener(javax.swing.event.MenuDragMouseListener )
 public void removeMenuDragMouseListener(javax.swing.event.MenuDragMouseListener )

menuKey

 public void addMenuKeyListener(javax.swing.event.MenuKeyListener )
 public void removeMenuKeyListener(javax.swing.event.MenuKeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )