|
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.StylePropertyEditor
the
Constructor Summary | |
StylePropertyEditor(StyleElement data,
javax.swing.JFrame frame)
Constructor |
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. |
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 n)
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 * * @return true if editing was stopped |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StylePropertyEditor(StyleElement data, javax.swing.JFrame frame)
data
- the StyleClass holding the data you want to editframe
- the parent frameMethod Detail |
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
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public java.awt.Component getComponent()
public boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
public void cancelCellEditing()
cancelCellEditing
in interface javax.swing.CellEditor
public boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable
in interface javax.swing.CellEditor
#shouldSelectCell()
public boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell
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
- CellEditorListenerpublic void setClickCountToStart(int n)
public int getClickCountToStart()
|
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.