|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.AbstractButton | +--javax.swing.JToggleButton | +--javax.swing.JCheckBox | +--com.klg.jclass.cell.editors.JCCheckBoxCellEditor
JCCheckBoxCellEditor
provides an editor using a check box
field for boolean objects.
Nested Class Summary |
Nested classes inherited from class javax.swing.JCheckBox |
JCheckBox.AccessibleJCheckBox |
Nested classes inherited from class javax.swing.JToggleButton |
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
Nested classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected static int |
BORDER_SIZE
|
protected com.klg.jclass.cell.JCCellInfo |
cellInfo
|
protected Object |
data
|
protected com.klg.jclass.cell.JCKeyModifier[] |
keys
|
protected com.klg.jclass.cell.JCCellEditorSupport |
support
|
Fields inherited from class javax.swing.JCheckBox |
BORDER_PAINTED_FLAT_CHANGED_PROPERTY |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
JCCheckBoxCellEditor()
Default constructor. |
|
JCCheckBoxCellEditor(String text)
|
Method Summary | |
void |
addCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
Adds a listener to the list that's notified when the editor starts, stops, or cancels editing. |
void |
cancelCellEditing()
Called when the edit process is cancelled. |
Object |
getCellEditorValue()
Returns the object to be committed. |
Component |
getComponent()
Returns the edit component. |
boolean |
getOriginalValue()
Returns the original unedited boolean value of this editor. |
com.klg.jclass.cell.JCKeyModifier[] |
getReservedKeys()
This editor reserves no keys for its own use. |
protected void |
initData()
|
void |
initialize(AWTEvent ev,
com.klg.jclass.cell.JCCellInfo info,
Object o)
The container calls initialize() before the edit starts to
let the editor know what kind of event started the edit
(via the AWTEvent object). |
boolean |
isModified()
Returns true if the data has been modified. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
removeCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
Removes a listener from the list that is notified when the editor starts, stops, or cancels editing. |
void |
stateChanged(ChangeEvent e)
|
boolean |
stopCellEditing()
Called when the edit process is stopped. |
protected void |
toggleValue(AWTEvent e)
|
Methods inherited from class javax.swing.JCheckBox |
configurePropertiesFromAction, createActionPropertyChangeListener, getAccessibleContext, getUIClassID, isBorderPaintedFlat, paramString, setBorderPaintedFlat, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Object data
protected com.klg.jclass.cell.JCCellInfo cellInfo
protected com.klg.jclass.cell.JCCellEditorSupport support
protected com.klg.jclass.cell.JCKeyModifier[] keys
protected static final int BORDER_SIZE
Constructor Detail |
public JCCheckBoxCellEditor()
public JCCheckBoxCellEditor(String text)
Method Detail |
public void initialize(AWTEvent ev, com.klg.jclass.cell.JCCellInfo info, Object o)
JCCellEditor
initialize()
before the edit starts to
let the editor know what kind of event started the edit
(via the AWTEvent
object).
info.getDrawingArea()
.
Implementors must handle null AWTEvent
s.
initialize
in interface JCCellEditor
ev
- event that initiated the edit operationinfo
- cell that displays information for the editoro
- item to be editedpublic Object getCellEditorValue()
getCellEditorValue
in interface JCCellEditor
public boolean getOriginalValue()
public Component getComponent()
getComponent
in interface JCCellEditor
public boolean isModified()
true
if the data has been modified.
isModified
in interface JCCellEditor
true
if the data has been modifiedpublic boolean stopCellEditing()
stopCellEditing
in interface JCCellEditor
public void cancelCellEditing()
cancelCellEditing
in interface JCCellEditor
public com.klg.jclass.cell.JCKeyModifier[] getReservedKeys()
getReservedKeys
in interface JCCellEditor
public void addCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
addCellEditorListener
in interface JCCellEditorEventSource
l
- the JCCellEditorListener
to be addedpublic void removeCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
removeCellEditorListener
in interface JCCellEditorEventSource
l
- the JCCellEditorListener
to be removedprotected void initData()
protected void toggleValue(AWTEvent e)
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |