|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.style.control.PropertyCellEditor
the
Field Summary | |
protected javax.swing.event.ChangeEvent |
_changeEvent
|
protected int |
_clickCountToStart
|
protected oracle.dacf.style.control.PropertyCellEditor.EditorDelegate |
_delegate
|
protected javax.swing.JComponent |
_editorComponent
|
protected javax.swing.event.EventListenerList |
_listenerList
Event listeners |
protected java.beans.PropertyEditor |
_propertyEditor
|
Constructor Summary | |
PropertyCellEditor(javax.swing.JComboBox comboBox,
java.beans.PropertyEditor propertyEditor)
Constructor for the ComboBox version |
|
PropertyCellEditor(javax.swing.JTextField textField,
java.beans.PropertyEditor propertyEditor)
Constructor for the TextField version |
|
PropertyCellEditor(oracle.dacf.style.control.properties.PropertyPanel pPanel,
java.beans.PropertyEditor propertyEditor)
Constructor for the ComboBox version |
Method Summary | |
void |
addCellEditorListener(javax.swing.event.CellEditorListener l)
Adds a CellEditorListener |
void |
cancelCellEditing()
Tell the editor to cancel editing and not accept any partially edited value. |
protected void |
fireEditingCanceled()
|
protected void |
fireEditingStopped()
|
java.lang.Object |
getCellEditorValue()
Returns the value contained in the editor |
int |
getClickCountToStart()
returns the clickCountToStart value |
java.awt.Component |
getComponent()
returns the property editor component |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Returns the component that should be added to the client's Component hierarchy. |
boolean |
isCellEditable(java.util.EventObject anEvent)
Ask the editor if it can start editing using anEvent. |
void |
removeCellEditorListener(javax.swing.event.CellEditorListener l)
Remove a CellEditorListener |
void |
setClickCountToStart(int count)
clickCountToStart controls the number of clicks required to start editing if the event passed to isCellEditable() or startCellEditing() is a MouseEvent. |
boolean |
shouldSelectCell(java.util.EventObject anEvent)
Tell the editor to start editing using anEvent. |
boolean |
stopCellEditing()
Tell the editor to stop editing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.swing.event.EventListenerList _listenerList
protected javax.swing.event.ChangeEvent _changeEvent
protected javax.swing.JComponent _editorComponent
protected oracle.dacf.style.control.PropertyCellEditor.EditorDelegate _delegate
protected int _clickCountToStart
protected java.beans.PropertyEditor _propertyEditor
Constructor Detail |
public PropertyCellEditor(javax.swing.JTextField textField, java.beans.PropertyEditor propertyEditor)
textField
- the textfield you will use for editingpropertyEditor
- the Property editorpublic PropertyCellEditor(javax.swing.JComboBox comboBox, java.beans.PropertyEditor propertyEditor)
comboBox
- the comboBox you will use for editingpropertyEditor
- the Property editorpublic PropertyCellEditor(oracle.dacf.style.control.properties.PropertyPanel pPanel, java.beans.PropertyEditor propertyEditor)
pPanel
- the PropertyPanel that displays the values and popups the
editor in a DialogpropertyEditor
- the Property editorMethod Detail |
public java.awt.Component getComponent()
public void setClickCountToStart(int count)
count
- the new clickCountToStart valuepublic int getClickCountToStart()
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable
in interface javax.swing.CellEditor
anEvent
- the event the editor should use to consider
whether to begin editing or not.
#shouldSelectCell()
public boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell
in interface javax.swing.CellEditor
anEvent
- the event the editor should use to start
editing.
#isCellEditable()
public boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
public void cancelCellEditing()
cancelCellEditing
in interface javax.swing.CellEditor
public void addCellEditorListener(javax.swing.event.CellEditorListener l)
addCellEditorListener
in interface javax.swing.CellEditor
l
- CellEditorListenerpublic void removeCellEditorListener(javax.swing.event.CellEditorListener l)
removeCellEditorListener
in interface javax.swing.CellEditor
l
- CellEditorListenerprotected void fireEditingStopped()
protected void fireEditingCanceled()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
table
- the JTable that is asking the editor to edit
This parameter can be null.value
- the value of the cell to be edited. It is
up to the specific editor to interpret
and draw the value. eg. if value is the
String "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null is a valid value.isSelected
- true is the cell is to be renderer with
selection highlightingrow
- the row of the cell being editedcolumn
- the column of the cell being edited
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.