borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
CheckboxPanel component
java.lang.Object
+----java.awt.Component
+----java.awt.Container
+----java.awt.Panel
+----borland.jbcl.control.BevelPanel
+----borland.jbcl.control.CheckboxPanel
About the CheckboxPanel component
Variables Constructors Properties Methods Event Listeners
Implements BlackBox, MenuContainer, ImageObserver, Serializable
The CheckboxPanel contains CheckboxControl components and handles their layout and location. If the check boxes are grouped, they appear as radio buttons and only one of them may be selected at any time.
Add CheckboxControl components to the panel by adding a String or array of String objects for the new check box labels.
CheckboxPanel variables
CheckboxPanel constructors
CheckboxPanel properties
*Read-only properties **Write-only properties
Properties implemented in this class
CheckboxPanel methods
Methods implemented in this class
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- contains(int, int)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paintAll(java.awt.Graphics)
- postEvent(java.awt.Event)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- processFocusEvent(java.awt.event.FocusEvent)
- processKeyEvent(java.awt.event.KeyEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- remove(java.awt.MenuComponent)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- repaint(long, int, int, int, int)
- requestFocus()
- reshape(int, int, int, int)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show()
- show(boolean)
- size()
- toString()
- transferFocus()
- update(java.awt.Graphics)
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paintComponents(java.awt.Graphics)
- paramString()
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- processEvent(java.awt.AWTEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- removeNotify()
- validate()
- validateTree()
CheckboxPanel event listeners
CheckboxPanel constructors
CheckboxPanel()
public CheckboxPanel()
Constructs a CheckboxPanel with default property values. The panel is created empty; you must add CheckboxControl components to it before using it. The default property values are listed in the following table.
Property |
Value |
layout
| GridLayout
|
orientation
| vertical
|
insets
| 6 pixels
|
CheckboxPanel properties
grouped
public boolean isGrouped()
public void setGrouped(boolean grouped)
labels
public String[] getLabels()
public void setLabels(java.lang.String[] labels)
An array of String labels for each item in the CheckboxPanel.
layout
public void setLayout(java.awt.LayoutManager layout)
The layout manager used for the CheckboxPanel.
orientation
public int getOrientation()
public void setOrientation(int o)
The orientation of the CheckboxPanel. Valid values for orientation are defined in borland.jbcl.util.Orientation variables.
selectedIndex
public int getSelectedIndex()
public void setSelectedIndex(int index)
The index of the selected checkbox, if grouped.
selectedLabel
public String getSelectedLabel()
public void setSelectedLabel(java.lang.String label)
The selected checkbox item, if grouped.
selectedLabels
public String[] getSelectedLabels()
public void setSelectedLabels(java.lang.String[] selectedLabels)
The selected checkbox items as an array of strings.
CheckboxPanel methods
addLabel(java.lang.String)
public void addLabel(java.lang.String label)
Adds a new CheckboxControl component with the specified label to the panel.
Parameters:
- label
- The label of the checkbox item.
getLabel(int)
public String getLabel(int index)
Returns the label of the CheckboxControl component at the location in the list specified by index.
Parameters:
- index
- The position of the checkbox item in the list.
setLabel(int, java.lang.String)
public void setLabel(int index, java.lang.String label)
Sets the label of the CheckboxControl at the specified index location to the value specified by label.
Parameters:
- index
- The position of the checkbox item in the list.
- label
- The label of the checkbox item.
CheckboxPanel event listeners
This component is a source for the following event sets.
For information on the standard AWT event sets, see Standard Java events.
component
public synchronized void addComponentListener(java.awt.event.ComponentListener l)
public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
container
public synchronized void addContainerListener(java.awt.event.ContainerListener l)
public void removeContainerListener(java.awt.event.ContainerListener l)
focus
public void addFocusListener(java.awt.event.FocusListener l)
public void removeFocusListener(java.awt.event.FocusListener l)
item
public void addItemListener(java.awt.event.ItemListener l)
public void removeItemListener(java.awt.event.ItemListener l)
key
public void addKeyListener(java.awt.event.KeyListener l)
public void removeKeyListener(java.awt.event.KeyListener l)
mouse
public synchronized void addMouseListener(java.awt.event.MouseListener l)
public synchronized void removeMouseListener(java.awt.event.MouseListener l)
mouseMotion
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)