|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
com.sibvisions.rad.ui.swing.ext.celleditor.JVxLinkedCellEditor.CellEditorHandler
public static class JVxLinkedCellEditor.CellEditorHandler
Sets the internal changed Flag, and informs the CellEditorListener if editing is completed.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
JVxLinkedCellEditor.CellEditorHandler(JVxLinkedCellEditor pCellEditor,
ICellFormatterEditorListener pCellEditorListener,
IDataRow pDataRow,
java.lang.String pColumnName,
java.lang.String pDisplayColumnName)
Constructs a new CellEditorHandler. |
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
void |
changedUpdate(javax.swing.event.DocumentEvent pDocumentEvent)
|
protected void |
fireEditingComplete(java.lang.String pCompleteType,
boolean pClosePopup)
Delegates the event to the ICellEditorListener. |
protected void |
fireEditingStarted()
Delegates the event to the ICellEditorListener. |
void |
focusGained(java.awt.event.FocusEvent pFocusEvent)
|
void |
focusLost(java.awt.event.FocusEvent pFocusEvent)
|
ICellEditor |
getCellEditor()
Returns the ICellEditor that created this handler. |
javax.swing.JComponent |
getCellEditorComponent()
Returns the library dependent CellEditorComponent. |
ICellEditorListener |
getCellEditorListener()
Returns the CellEditorListener. |
java.lang.String |
getColumnName()
Returns the column name that is edited in the IDataRow. |
IDataRow |
getDataRow()
Returns the IDataRow that is edited. |
java.lang.Object |
getElementAt(int pIndex)
|
java.lang.Object |
getSelectedItem()
|
int |
getSize()
|
void |
insertUpdate(javax.swing.event.DocumentEvent pDocumentEvent)
|
void |
keyPressed(java.awt.event.KeyEvent pKeyEvent)
|
void |
keyReleased(java.awt.event.KeyEvent pKeyEvent)
|
void |
keyTyped(java.awt.event.KeyEvent pKeyEvent)
|
void |
mouseClicked(java.awt.event.MouseEvent pMouseEvent)
|
void |
mouseEntered(java.awt.event.MouseEvent pMouseEvent)
|
void |
mouseExited(java.awt.event.MouseEvent pMouseEvent)
|
void |
mousePressed(java.awt.event.MouseEvent pMouseEvent)
|
void |
mouseReleased(java.awt.event.MouseEvent pMouseEvent)
|
void |
popupMenuCanceled(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
|
void |
removeUpdate(javax.swing.event.DocumentEvent pDocumentEvent)
|
void |
run()
|
void |
saveEditing()
Saves the changes made from the CellEditorComponent DataBook. |
void |
setSelectedItem(java.lang.Object pItem)
|
void |
uninstallEditor()
Informs the handler, that the editor is or will be discarded. |
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.ListModel |
|---|
addListDataListener, removeListDataListener |
| Constructor Detail |
|---|
public JVxLinkedCellEditor.CellEditorHandler(JVxLinkedCellEditor pCellEditor,
ICellFormatterEditorListener pCellEditorListener,
IDataRow pDataRow,
java.lang.String pColumnName,
java.lang.String pDisplayColumnName)
pCellEditor - the CellEditor that created this handler.pCellEditorListener - CellEditorListener to inform, if editing is started or completed.pDataRow - the data row that is edited.pColumnName - the column name of the edited column.pDisplayColumnName - the name of the displayed column.| Method Detail |
|---|
public void uninstallEditor()
uninstallEditor in interface ICellEditorHandler<javax.swing.JComponent>public ICellEditor getCellEditor()
ICellEditor that created this handler.
getCellEditor in interface ICellEditorHandler<javax.swing.JComponent>ICellEditor that created this handler.public ICellEditorListener getCellEditorListener()
CellEditorListener.
getCellEditorListener in interface ICellEditorHandler<javax.swing.JComponent>CellEditorListener.public IDataRow getDataRow()
IDataRow that is edited.
getDataRow in interface ICellEditorHandler<javax.swing.JComponent>IDataRow that is edited.public java.lang.String getColumnName()
IDataRow.
getColumnName in interface ICellEditorHandler<javax.swing.JComponent>IDataRow.public javax.swing.JComponent getCellEditorComponent()
CellEditorComponent.
getCellEditorComponent in interface ICellEditorHandler<javax.swing.JComponent>CellEditorComponent.
public void saveEditing()
throws ModelException
DataBook.
saveEditing in interface ICellEditorHandler<javax.swing.JComponent>ModelException - if the value can not be stored.
public void cancelEditing()
throws ModelException
DataBook.
cancelEditing in interface ICellEditorHandler<javax.swing.JComponent>ModelException - if the value can not be restored.public java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModelpublic void setSelectedItem(java.lang.Object pItem)
setSelectedItem in interface javax.swing.ComboBoxModelpublic java.lang.Object getElementAt(int pIndex)
getElementAt in interface javax.swing.ListModelpublic int getSize()
getSize in interface javax.swing.ListModelpublic void insertUpdate(javax.swing.event.DocumentEvent pDocumentEvent)
insertUpdate in interface javax.swing.event.DocumentListenerpublic void removeUpdate(javax.swing.event.DocumentEvent pDocumentEvent)
removeUpdate in interface javax.swing.event.DocumentListenerpublic void changedUpdate(javax.swing.event.DocumentEvent pDocumentEvent)
changedUpdate in interface javax.swing.event.DocumentListenerpublic void keyPressed(java.awt.event.KeyEvent pKeyEvent)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent pKeyEvent)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent pKeyEvent)
keyTyped in interface java.awt.event.KeyListenerpublic void popupMenuCanceled(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
popupMenuCanceled in interface javax.swing.event.PopupMenuListenerpublic void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListenerpublic void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListenerpublic void run()
run in interface java.lang.Runnablepublic void focusGained(java.awt.event.FocusEvent pFocusEvent)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent pFocusEvent)
focusLost in interface java.awt.event.FocusListenerpublic void mouseClicked(java.awt.event.MouseEvent pMouseEvent)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent pMouseEvent)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent pMouseEvent)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent pMouseEvent)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent pMouseEvent)
mouseReleased in interface java.awt.event.MouseListenerprotected void fireEditingStarted()
protected void fireEditingComplete(java.lang.String pCompleteType,
boolean pClosePopup)
pCompleteType - the editing complete type.pClosePopup - try closing the popup.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||