|
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.JComboBox | +--com.klg.jclass.cell.editors.JCComboBoxCellEditor
JCComboBoxCellEditor
provides an editor using a simple ComboBox
component.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComboBox |
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
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 boolean |
ignoreEnterKey
|
protected com.klg.jclass.cell.JCKeyModifier[] |
key_modifiers
|
protected Object |
originalValue
|
protected com.klg.jclass.cell.JCCellEditorSupport |
support
|
protected int[] |
values
|
Fields inherited from class javax.swing.JComboBox |
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCComboBoxCellEditor()
Creates a new JCComboBoxCellEditor object. |
|
JCComboBoxCellEditor(Object[] items)
Creates a new JCComboBoxCellEditor object with no values. |
|
JCComboBoxCellEditor(Object[] items,
int[] values)
Creates a new JCComboBoxCellEditor object. |
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 |
addNotify()
|
void |
cancelCellEditing()
Called when the edit process is cancelled. |
Object |
getCellEditorValue()
Returns the object to be committed. |
Component |
getComponent()
Returns the ComboBox component. |
com.klg.jclass.cell.JCKeyModifier[] |
getReservedKeys()
This editor reserves no keys for its own use. |
void |
initialize(AWTEvent ev,
com.klg.jclass.cell.JCCellInfo info,
Object o)
Initializes the ComboBox component by selecting the appropriate
index associated with the data. |
boolean |
isModified()
Determines whether any changes have been made. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
paint(Graphics g)
Overwrites superclass method to invoke popup. |
void |
removeCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
Removes a listener from the list that's notified when the editor starts, stops, or cancels editing. |
boolean |
stopCellEditing()
Called when the edit process is stopped. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected com.klg.jclass.cell.JCCellEditorSupport support
protected int[] values
protected boolean ignoreEnterKey
protected Object originalValue
protected com.klg.jclass.cell.JCKeyModifier[] key_modifiers
Constructor Detail |
public JCComboBoxCellEditor()
JCComboBoxCellEditor
object.
public JCComboBoxCellEditor(Object[] items)
JCComboBoxCellEditor
object with no values.
items
- an array of String itemspublic JCComboBoxCellEditor(Object[] items, int[] values)
JCComboBoxCellEditor
object.
items
- an array of String itemsvalues
- an array of integers that represent the enumerated values
associated with the String itemsMethod Detail |
public void initialize(AWTEvent ev, com.klg.jclass.cell.JCCellInfo info, Object o)
ComboBox
component by selecting the appropriate
index associated with the data.
initialize
in interface JCCellEditor
ev
- info
- o
- public void paint(Graphics g)
paint
in class JComponent
g
- public Component getComponent()
ComboBox
component.
getComponent
in interface JCCellEditor
ComboBox
componentpublic Object getCellEditorValue()
getCellEditorValue
in interface JCCellEditor
public boolean isModified()
JCCellEditor
JCCellEditor
's
isModified()
method to determine whether any changes have
been made.
isModified
in interface JCCellEditor
public 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 keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void addCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
addCellEditorListener
in interface JCCellEditorEventSource
l
- the JCCellEditorListener
public void removeCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
removeCellEditorListener
in interface JCCellEditorEventSource
l
- the JCCellEditorListener
public void addNotify()
addNotify
in class JComponent
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |