|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.gui.SchemaPropertyCellEditor
public class SchemaPropertyCellEditor
Field Summary | |
---|---|
(package private) Component |
activeEditor
|
(package private) ActionListener |
al
|
(package private) ComboBoxModel |
allOptions
|
(package private) JCheckBox |
booleanEditor
|
(package private) FocusAdapter |
editorFocus
|
(package private) ItemListener |
il
|
(package private) JTextField |
integerEditor
|
(package private) JDBCMetaData |
jdbcMetaData
|
(package private) JComboBox |
listEditor
|
(package private) String |
listEditorValue
|
(package private) ArrayList |
listeners
|
(package private) MouseListener |
ml
|
(package private) String |
noSelect
|
(package private) JComboBox |
relationList
|
(package private) JPanel |
relationRenderer
|
(package private) JTable |
relationTable
|
(package private) ComboBoxModel |
selOptions
|
(package private) JTextField |
stringEditor
|
(package private) JTable |
tableEditor
|
(package private) Workbench |
workbench
|
Constructor Summary | |
---|---|
SchemaPropertyCellEditor(Workbench workbench)
Creates a new instance of SchemaPropertyCellEditor |
|
SchemaPropertyCellEditor(Workbench workbench,
JDBCMetaData jdbcMetaData)
|
Method Summary | |
---|---|
void |
addCellEditorListener(CellEditorListener l)
Adds a listener to the list that's notified when the editor stops, or cancels editing. |
void |
cancelCellEditing()
Tells the editor to cancel editing and not accept any partially edited value. |
protected void |
fireEditingCancelled()
|
protected void |
fireEditingStopped()
|
Object |
getCellEditorValue()
Returns the value contained in the editor. |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
|
boolean |
isCellEditable(EventObject anEvent)
Asks the editor if it can start editing using anEvent . |
void |
removeCellEditorListener(CellEditorListener l)
Removes a listener from the list that's notified |
boolean |
shouldSelectCell(EventObject anEvent)
Returns true if the editing cell should be selected, false otherwise. |
boolean |
stopCellEditing()
Tells the editor to stop editing and accept any partially edited value as the value of the editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Workbench workbench
ArrayList listeners
JTextField stringEditor
JCheckBox booleanEditor
JTextField integerEditor
JTable tableEditor
Component activeEditor
JComboBox listEditor
JComboBox relationList
JTable relationTable
JPanel relationRenderer
JDBCMetaData jdbcMetaData
ComboBoxModel allOptions
ComboBoxModel selOptions
String listEditorValue
MouseListener ml
ItemListener il
ActionListener al
String noSelect
FocusAdapter editorFocus
Constructor Detail |
---|
public SchemaPropertyCellEditor(Workbench workbench, JDBCMetaData jdbcMetaData)
public SchemaPropertyCellEditor(Workbench workbench)
Method Detail |
---|
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
public void addCellEditorListener(CellEditorListener l)
addCellEditorListener
in interface CellEditor
l
- the CellEditorListenerpublic void cancelCellEditing()
cancelCellEditing
in interface CellEditor
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
public boolean isCellEditable(EventObject anEvent)
anEvent
.
anEvent
is in the invoking component coordinate system.
The editor can not assume the Component returned by
getCellEditorComponent
is installed. This method
is intended for the use of client to avoid the cost of setting up
and installing the editor component if editing is not possible.
If editing can be started this method returns true.
isCellEditable
in interface CellEditor
anEvent
- the event the editor should use to consider
whether to begin editing or not
shouldSelectCell(java.util.EventObject)
public void removeCellEditorListener(CellEditorListener l)
removeCellEditorListener
in interface CellEditor
l
- the CellEditorListenerpublic boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell
in interface CellEditor
anEvent
- the event the editor should use to start
editing
isCellEditable(java.util.EventObject)
public boolean stopCellEditing()
stopCellEditing
in interface CellEditor
protected void fireEditingStopped()
protected void fireEditingCancelled()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |