public class FileDialogCellEditor extends AbstractDialogCellEditor
FileDialog
is wrapped by this implementation. It will open the default
file selection dialog on trying to activate the cell editor.configRegistry, conversionEditErrorHandler, dataValidator, dialog, displayConverter, editDialogSettings, editHandler, layerCell, parent, validationEditErrorHandler
DIALOG_MESSAGE, DIALOG_SHELL_ICON, DIALOG_SHELL_LOCATION, DIALOG_SHELL_RESIZABLE, DIALOG_SHELL_SIZE, DIALOG_SHELL_TITLE
Constructor and Description |
---|
FileDialogCellEditor() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close/dispose the contained
Control |
org.eclipse.swt.widgets.FileDialog |
createDialogInstance()
Will create the dialog instance that should be wrapped by this
AbstractDialogCellEditor . |
org.eclipse.swt.widgets.FileDialog |
getDialogInstance() |
Object |
getEditorValue()
Returns the current value in this editor prior to conversion.
|
boolean |
isClosed() |
int |
open()
Opens this dialog, creating it first if it has not yet been created.
|
void |
setEditorValue(Object value)
Sets the given value to editor control.
|
activateAtAnyPosition, activateCell, addEditorControlListeners, calculateValue, commit, commit, commit, createEditorControl, getCanonicalValue, getCanonicalValue, getColumnIndex, getColumnPosition, getCommittedValue, getEditorControl, getEditType, getRowIndex, getRowPosition, openAdjacentEditor, openInline, removeEditorControlListeners, setCanonicalValue, setDialogSettings, supportMultiEdit, validateCanonicalValue, validateCanonicalValue
public int open()
ICellEditDialog
Specified in here for convenience so we only need to check against this interface for a dialog.
open
in interface ICellEditDialog
open
in class AbstractDialogCellEditor
public org.eclipse.swt.widgets.FileDialog createDialogInstance()
AbstractDialogCellEditor
AbstractDialogCellEditor
.
Note that you always need to create and return a new instance because on commit or close the
dialog will be closed, which disposes the shell of the dialog. Therefore the instance will not
be usable after commit/close.createDialogInstance
in class AbstractDialogCellEditor
AbstractDialogCellEditor
public org.eclipse.swt.widgets.FileDialog getDialogInstance()
getDialogInstance
in class AbstractDialogCellEditor
AbstractDialogCellEditor
public Object getEditorValue()
ICellEditor
getEditorValue
in interface ICellEditor
getEditorValue
in class AbstractDialogCellEditor
public void setEditorValue(Object value)
ICellEditor
setEditorValue
in interface ICellEditor
setEditorValue
in class AbstractDialogCellEditor
value
- The display value to set to the wrapped editor control.public void close()
ICellEditor
Control
close
in interface ICellEditor
close
in class AbstractDialogCellEditor
public boolean isClosed()
isClosed
in interface ICellEditor
isClosed
in class AbstractDialogCellEditor
true
if this editor has been closed already,
false
if it is still openCopyright © 2013. All Rights Reserved.