public class SchemaPropertyCellEditor extends Object implements TableCellEditor
| Modifier and Type | Field and Description | 
|---|---|
(package private) Component | 
activeEditor  | 
(package private) ActionListener | 
al  | 
(package private) ComboBoxModel | 
allOptions  | 
(package private) JCheckBox | 
booleanEditor  | 
(package private) JTextArea | 
cdataTextArea  | 
(package private) FocusAdapter | 
editorFocus  | 
(package private) ItemListener | 
il  | 
(package private) JTextField | 
integerEditor  | 
(package private) JdbcMetaData | 
jdbcMetaData  | 
(package private) JScrollPane | 
jScrollPaneCDATA  | 
(package private) JComboBox | 
listEditor  | 
(package private) String | 
listEditorValue  | 
(package private) List<CellEditorListener> | 
listeners  | 
(package private) MouseListener | 
ml  | 
(package private) String | 
noSelect  | 
(package private) Object | 
originalValue  | 
(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 and Description | 
|---|
SchemaPropertyCellEditor(Workbench workbench)  | 
SchemaPropertyCellEditor(Workbench workbench,
                        JdbcMetaData jdbcMetaData)
Creates a new instance of SchemaPropertyCellEditor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
MondrianGuiDef.RelationOrJoin | 
getRelation(JTable table,
           int row,
           int column)  | 
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 
 | 
void | 
setMetaData(JdbcMetaData jdbcMetaData)  | 
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. 
 | 
Workbench workbench
final List<CellEditorListener> listeners
JTextField stringEditor
JTextArea cdataTextArea
JScrollPane jScrollPaneCDATA
JCheckBox booleanEditor
JTextField integerEditor
JTable tableEditor
Component activeEditor
JComboBox listEditor
JTable relationTable
JPanel relationRenderer
JdbcMetaData jdbcMetaData
ComboBoxModel allOptions
ComboBoxModel selOptions
String listEditorValue
MouseListener ml
ItemListener il
ActionListener al
String noSelect
FocusAdapter editorFocus
Object originalValue
public SchemaPropertyCellEditor(Workbench workbench)
public SchemaPropertyCellEditor(Workbench workbench, JdbcMetaData jdbcMetaData)
public MondrianGuiDef.RelationOrJoin getRelation(JTable table, int row, int column)
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorpublic void addCellEditorListener(CellEditorListener l)
addCellEditorListener in interface CellEditorl - the CellEditorListenerpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic 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 CellEditoranEvent - the event the editor should use to consider
                whether to begin editing or notshouldSelectCell(java.util.EventObject)public void removeCellEditorListener(CellEditorListener l)
removeCellEditorListener in interface CellEditorl - the CellEditorListenerpublic boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell in interface CellEditoranEvent - the event the editor should use to start
                editingisCellEditable(java.util.EventObject)public boolean stopCellEditing()
stopCellEditing in interface CellEditorprotected void fireEditingStopped()
protected void fireEditingCancelled()
public void setMetaData(JdbcMetaData jdbcMetaData)