public abstract class AbstractWorkbenchMapsetSettingsEditor extends java.lang.Object implements WorkbenchSettingsEditor
WorkbenchSettingsEditor
| Modifier and Type | Field and Description |
|---|---|
protected ActionBureau |
actionBureau |
protected VfsFile |
file |
protected javax.swing.JComponent |
gui |
protected MapSet |
mapset |
protected MapsetSettings |
mapsetSettings |
protected java.lang.String |
name |
protected MapsetSettingsStore |
settingsStore |
protected WorkbenchApp |
workbench |
| Constructor and Description |
|---|
AbstractWorkbenchMapsetSettingsEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
doAction(java.lang.String actionName) |
void |
doAction(java.lang.String actionName,
java.lang.String... args)
Perform an action with optional arguments.
|
VfsFile |
getFile() |
javax.swing.JComponent |
getGui() |
java.lang.String |
getName() |
CoggableSettings |
getSettings()
Marker method used to require implementing classes to have a CoggableSettings field
|
SettingsStore |
getSettingsStore()
Marker method used to require implementing classes to have a SettingsStore field
|
WorkbenchApp |
getWorkbench() |
protected void |
initializeEditor() |
void |
load()
Initializes editor by instantiating a MapSet object from the WorkbenchFile that is selected.
|
void |
reloadFromStore()
Reloads settings object from the
MapsetSettingsStore |
void |
save()
Invokes saveToStore.
|
void |
saveToStore()
Reloads the MapsetSettings from the edited cog then stores it.
|
void |
setFile(VfsFile newFile) |
void |
setLine(int line) |
void |
setWorkbench(WorkbenchApp workbench) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedit, getSettingsGuiprotected WorkbenchApp workbench
protected java.lang.String name
protected VfsFile file
protected javax.swing.JComponent gui
protected ActionBureau actionBureau
protected MapSet mapset
protected MapsetSettings mapsetSettings
protected MapsetSettingsStore settingsStore
public AbstractWorkbenchMapsetSettingsEditor()
protected void initializeEditor()
throws java.io.IOException
java.io.IOExceptionpublic void saveToStore()
saveToStore in interface SettingsEditorSettingsEditor.saveToStore()public void reloadFromStore()
MapsetSettingsStorereloadFromStore in interface SettingsEditorSettingsEditor.reloadFromStore()public CoggableSettings getSettings()
SettingsEditorgetSettings in interface SettingsEditorCoggableSettingsSettingsEditor.getSettings()public SettingsStore getSettingsStore()
SettingsEditorgetSettingsStore in interface SettingsEditorSettingsStoreSettingsEditor.getSettingsStore()public VfsFile getFile()
getFile in interface WorkbenchFileEditorWorkbenchFileEditor.getFile()public void setFile(VfsFile newFile)
setFile in interface WorkbenchFileEditorWorkbenchFileEditor.setFile(com.partnersoft.io.vfs.VfsFile)public void setLine(int line)
setLine in interface WorkbenchFileEditorWorkbenchFileEditor.setLine(int)public void load()
throws java.io.IOException
load in interface WorkbenchEditorjava.io.IOExceptionSettingsGui.edit(java.awt.Container, CoggableSettings),
WorkbenchEditor.load()public void save()
throws java.io.IOException
save in interface WorkbenchEditorjava.io.IOExceptionWorkbenchEditor.save()public java.lang.String getName()
getName in interface WorkbenchEditorWorkbenchEditor.getName()public void setWorkbench(WorkbenchApp workbench)
setWorkbench in interface WorkbenchEditorWorkbenchEditor.setWorkbench(com.partnersoft.workbench.app.WorkbenchApp)public WorkbenchApp getWorkbench()
getWorkbench in interface WorkbenchEditorWorkbenchEditor.getWorkbench()public javax.swing.JComponent getGui()
getGui in interface WorkbenchEditorWorkbenchEditor.getGui()public void doAction(java.lang.String actionName)
doAction in interface WorkbenchEditorWorkbenchEditor.doAction(java.lang.String)public void doAction(java.lang.String actionName,
java.lang.String... args)
WorkbenchEditordoAction in interface WorkbenchEditorWorkbenchEditor.doAction(java.lang.String, java.lang.String[])