public class FileEditor extends CustomEditor implements PropertyDBService
Поддерживаются опции редактирования, заданные через строку,
пример:
type=save;mode=files;title=\"dialog title\"
Опции:
UiBean.editorOpts()| Modifier and Type | Class and Description |
|---|---|
static class |
FileEditor.DialogType |
static class |
FileEditor.FileSelectionMode |
| Modifier and Type | Field and Description |
|---|---|
protected Object |
defaultFile |
protected FileEditor.DialogType |
dialogType |
protected FileEditor.FileSelectionMode |
fileSelectionMode |
propertyEditorSupportcellEditable, component, listeners, shouldSelectCell| Constructor and Description |
|---|
FileEditor()
Конструктор
|
FileEditor(FileEditor sample)
Конструктор копирования
|
addPropertyChangeListener, firePropertyChanged, getCellEditorValue, getComponent, getCustomEditor, getTags, isPaintable, paintValue, removePropertyChangeListener, setTags, startEditing, supportsCustomEditoraddCellEditorListener, cancelCellEditing, clearAllListeners, fireEditingCanceled, fireEditingStopped, getEditIcon, getNullIcon, getNullSelectedIcon, getNullUnSelectedIcon, isCellEditable, isShouldSelectCell, removeCellEditorListener, setCellEditable, setComponent, setShouldSelectCell, stopCellEditingprotected Object defaultFile
protected FileEditor.FileSelectionMode fileSelectionMode
protected FileEditor.DialogType dialogType
public FileEditor()
public FileEditor(FileEditor sample)
sample - образец для копированияpublic FileEditor clone()
clone in class CustomEditorpublic void setNullSelected(boolean selected)
public boolean isNullSelected()
public void setNullable(boolean nullable)
public boolean isNullable()
public Object getDefaultFile()
public void setDefaultFile(Object defaultFile)
protected JComponent createComponent()
CustomEditorcreateComponent in class CustomEditorpublic FileEditor.FileSelectionMode getFileSelectionMode()
public void setFileSelectionMode(FileEditor.FileSelectionMode fileSelectionMode)
public FileEditor.DialogType getDialogType()
public void setDialogType(FileEditor.DialogType dialogType)
public String getSaveLabel()
public void setSaveLabel(String saveLabel)
public String getOpenLabel()
public void setOpenLabel(String openLabel)
public String getTitle()
public void setTitle(String str)
protected Map<String,Object> parseOptions(String opts)
opts - страка опцийprotected void parseEditOptions(String opts)
parseEditOptions in class CustomEditorpublic void setValue(Object value)
setValue in interface PropertyEditorpublic Object getValue()
getValue in interface PropertyEditorpublic String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorpublic String getAsText()
getAsText in interface PropertyEditorpublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorIllegalArgumentExceptionpublic void register(PropertyDB pdb)
PropertyDBServiceregister in interface PropertyDBServicepdb - редакторы типовCopyright © 2019. All rights reserved.