|
||||||||||
| 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,
String pColumnName,
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(DocumentEvent pDocumentEvent)
|
protected void |
fireEditingComplete(String pCompleteType,
boolean pClosePopup)
Delegates the event to the ICellEditorListener. |
protected void |
fireEditingStarted()
Delegates the event to the ICellEditorListener. |
void |
focusGained(FocusEvent pFocusEvent)
|
void |
focusLost(FocusEvent pFocusEvent)
|
ICellEditor |
getCellEditor()
Returns the ICellEditor that created this handler. |
JComponent |
getCellEditorComponent()
Returns the library dependent CellEditorComponent. |
ICellEditorListener |
getCellEditorListener()
Returns the CellEditorListener. |
String |
getColumnName()
Returns the column name that is edited in the IDataRow. |
IDataRow |
getDataRow()
Returns the IDataRow that is edited. |
Object |
getElementAt(int pIndex)
|
Object |
getSelectedItem()
|
int |
getSize()
|
void |
insertUpdate(DocumentEvent pDocumentEvent)
|
void |
keyPressed(KeyEvent pKeyEvent)
|
void |
keyReleased(KeyEvent pKeyEvent)
|
void |
keyTyped(KeyEvent pKeyEvent)
|
void |
mouseClicked(MouseEvent pMouseEvent)
|
void |
mouseEntered(MouseEvent pMouseEvent)
|
void |
mouseExited(MouseEvent pMouseEvent)
|
void |
mousePressed(MouseEvent pMouseEvent)
|
void |
mouseReleased(MouseEvent pMouseEvent)
|
void |
popupMenuCanceled(PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeInvisible(PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeVisible(PopupMenuEvent pPopupMenuEvent)
|
void |
removeUpdate(DocumentEvent pDocumentEvent)
|
void |
run()
|
void |
saveEditing()
Saves the changes made from the CellEditorComponent DataBook. |
void |
setSelectedItem(Object pItem)
|
void |
uninstallEditor()
Informs the handler, that the editor is or will be discarded. |
void |
updateEditor()
Informs the handler, that it should possibly get new information from the ICellEditorListener (for e.g. a new TranslationMap). |
| 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,
String pColumnName,
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<JComponent>public void updateEditor()
updateEditor in interface ICellEditorHandler<JComponent>public ICellEditor getCellEditor()
ICellEditor that created this handler.
getCellEditor in interface ICellEditorHandler<JComponent>ICellEditor that created this handler.public ICellEditorListener getCellEditorListener()
CellEditorListener.
getCellEditorListener in interface ICellEditorHandler<JComponent>CellEditorListener.public IDataRow getDataRow()
IDataRow that is edited.
getDataRow in interface ICellEditorHandler<JComponent>IDataRow that is edited.public String getColumnName()
IDataRow.
getColumnName in interface ICellEditorHandler<JComponent>IDataRow.public JComponent getCellEditorComponent()
CellEditorComponent.
getCellEditorComponent in interface ICellEditorHandler<JComponent>CellEditorComponent.
public void saveEditing()
throws ModelException
DataBook.
saveEditing in interface ICellEditorHandler<JComponent>ModelException - if the value can not be stored.
public void cancelEditing()
throws ModelException
DataBook.
cancelEditing in interface ICellEditorHandler<JComponent>ModelException - if the value can not be restored.public Object getSelectedItem()
getSelectedItem in interface ComboBoxModelpublic void setSelectedItem(Object pItem)
setSelectedItem in interface ComboBoxModelpublic Object getElementAt(int pIndex)
getElementAt in interface ListModelpublic int getSize()
getSize in interface ListModelpublic void insertUpdate(DocumentEvent pDocumentEvent)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent pDocumentEvent)
removeUpdate in interface DocumentListenerpublic void changedUpdate(DocumentEvent pDocumentEvent)
changedUpdate in interface DocumentListenerpublic void keyPressed(KeyEvent pKeyEvent)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent pKeyEvent)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent pKeyEvent)
keyTyped in interface KeyListenerpublic void popupMenuCanceled(PopupMenuEvent pPopupMenuEvent)
popupMenuCanceled in interface PopupMenuListenerpublic void popupMenuWillBecomeInvisible(PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeInvisible in interface PopupMenuListenerpublic void popupMenuWillBecomeVisible(PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeVisible in interface PopupMenuListenerpublic void run()
run in interface Runnablepublic void focusGained(FocusEvent pFocusEvent)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent pFocusEvent)
focusLost in interface FocusListenerpublic void mouseClicked(MouseEvent pMouseEvent)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent pMouseEvent)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent pMouseEvent)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent pMouseEvent)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent pMouseEvent)
mouseReleased in interface MouseListenerprotected void fireEditingStarted()
protected void fireEditingComplete(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 | |||||||||