public class DefaultApplicationManager extends java.lang.Object implements ApplicationManager
| Constructor and Description |
|---|
DefaultApplicationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenu(org.gvsig.andami.actioninfo.ActionInfo action,
java.lang.String text) |
void |
addPropertiesObserver(org.gvsig.tools.observer.Observer o) |
void |
addSelectableTool(org.gvsig.andami.actioninfo.ActionInfo action,
java.lang.String toolBarName) |
void |
addTool(org.gvsig.andami.actioninfo.ActionInfo action,
java.lang.String toolBarName) |
void |
close(boolean quietly)
Close the application.
|
int |
confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType) |
int |
confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType,
java.lang.String msgid) |
java.awt.Component |
createComponent(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object... parameters) |
java.awt.Component |
createComponentWithParams(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object[] parameters) |
javax.swing.tree.TreeModel |
createProjectLayersTreeModel() |
javax.swing.tree.TreeModel |
createProjectStoresTreeModel() |
void |
deletePropertiesObserver(org.gvsig.tools.observer.Observer o) |
void |
deletePropertiesObservers() |
java.lang.Object |
get(java.lang.String key) |
org.gvsig.about.AboutManager |
getAbout()
Utility method to obtain the AboutManager used in the application at this moment.
|
javax.swing.JComponent |
getActiveComponent(java.lang.Class<? extends Document> documentClass)
Returns the JComponent associated to the active document for the
specified type of document.
|
Document |
getActiveDocument()
Returns the active document of the application or null
if there is no active document.
|
Document |
getActiveDocument(java.lang.Class<? extends Document> documentClass)
Returns the active document of the application that is of the
requested type or null if there is no active document or the
active document is not of the requested type.
|
Document |
getActiveDocument(java.lang.String documentTypeName)
Returns the active document of the application that is of the
requested type or null if there is no active document or the
active document is not of the requested type.
|
org.gvsig.andami.ui.mdiManager.IWindow |
getActiveWindow()
Return the active window, IWindow, in the application.
|
org.gvsig.andami.ui.mdiManager.IWindow |
getActiveWindow(java.lang.Class<? extends Document> documentClass) |
org.gvsig.andami.Arguments |
getArguments()
Return the arguments passed to the application in the command line
|
org.gvsig.gui.ColorTablesFactory |
getColorTablesFactory() |
org.cresques.cts.IProjection |
getCRS(java.lang.String code)
Obtain the projection associated by the code of projection
Passed as parameter.
|
org.gvsig.fmap.mapcontext.layers.FLayer |
getCurrentLayer() |
Project |
getCurrentProject()
Return the project that is loaded and in use in the application.
|
org.gvsig.fmap.dal.DataManager |
getDataManager()
Utility method to obtain the DataManager used in the application at this moment.
|
org.gvsig.tools.dataTypes.DataTypesManager |
getDataTypesManager() |
org.gvsig.tools.dispose.DisposableManager |
getDisposableManager()
Utility method to obtain the DisposableManager used in the application at this moment.
|
IDocumentWindow |
getDocumentWindow(Document document)
Returns the window associated with the document passed as
parameter or null if there is no window associated with
the document.
|
org.gvsig.tools.dynobject.DynObjectManager |
getDynObjectManager()
Utility method to obtain the DynObjectManager used in the application at this moment.
|
org.gvsig.tools.extensionpoint.ExtensionPointManager |
getExtensionPointManager()
Utility method to obtain the ExtensionPointManager used in the application at this moment.
|
java.lang.String |
getFromClipboard()
Get the value of the system clipboard as a string.
|
org.gvsig.fmap.geom.GeometryManager |
getGeometryManager()
Utility method to obtain the GeometryManager used in the application at this moment.
|
org.gvsig.tools.swing.icontheme.IconThemeManager |
getIconThemeManager()
Utility method to obtain the IconThemeManager used in the application at this moment.
|
java.lang.String |
getLocaleLanguage() |
org.gvsig.andami.ui.mdiFrame.MainFrame |
getMainFrame() |
org.gvsig.fmap.mapcontext.MapContextManager |
getMapContextManager()
Utility method to obtain the MapContextManager used in the application at this moment.
|
org.gvsig.tools.persistence.PersistenceManager |
getPersistenceManager()
Utility method to obtain the PersistenceManager used in the application at this moment.
|
PreferencesNode |
getPreferences()
Return the root of the nodes of preferences in the application.
|
PreferencesNode |
getPreferences(java.lang.String node)
Search and return the node of preferences required as nodeName.
|
ProjectManager |
getProjectManager()
Utility method to obtain the ProjectManager used in the application at this moment.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String name) |
java.awt.Component |
getRootComponent() |
org.gvsig.andami.ui.mdiManager.MDIManager |
getUIManager()
Utility method to obtain the UIManager used in the application at this moment.
|
Version |
getVersion()
Return the version of the application.
|
java.util.List<WizardPanel> |
getWizardPanels() |
java.lang.String |
inputDialog(java.lang.String message,
java.lang.String title) |
java.lang.String |
inputDialog(java.lang.String message,
java.lang.String title,
int messageType,
java.lang.String initialValue) |
java.lang.String |
makeTitle(java.lang.String base,
java.lang.String docname,
java.lang.String docname2)
Utility method to create uniforms window names.
|
void |
message(java.lang.String message,
int message_type) |
void |
messageDialog(java.lang.String message,
java.lang.String[] messageArgs,
java.lang.String title,
int messageType) |
void |
messageDialog(java.lang.String message,
java.lang.String[] messageArgs,
java.lang.String title,
int messageType,
java.lang.String msgid) |
void |
messageDialog(java.lang.String message,
java.lang.String title,
int messageType) |
org.gvsig.fmap.dal.DataStore |
pepareOpenDataSource(org.gvsig.fmap.dal.DataStore store,
PrepareContext context) |
org.gvsig.fmap.dal.DataStoreParameters |
prepareOpenDataStoreParameters(org.gvsig.fmap.dal.DataStoreParameters storeParameters,
PrepareContext context) |
java.util.List<org.gvsig.fmap.dal.DataStoreParameters> |
prepareOpenDataStoreParameters(java.util.List<org.gvsig.fmap.dal.DataStoreParameters> storeParameters,
PrepareContext context) |
org.gvsig.fmap.mapcontext.layers.FLayer |
prepareOpenLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer,
PrepareContextView context) |
void |
putInClipboard(java.lang.String data)
Put the string value passed as parameter in the clipboard of
the system.
|
void |
refreshDocument(org.gvsig.fmap.dal.DataStoreParameters params) |
void |
refreshDocument(org.gvsig.fmap.dal.feature.FeatureStore store) |
void |
refreshMenusAndToolBars() |
void |
registerAddTableWizard(java.lang.String name,
java.lang.String description,
java.lang.Class<? extends WizardPanel> wpClass) |
void |
registerColorTablesFactory(org.gvsig.gui.ColorTablesFactory factory) |
void |
registerPrepareOpenDataStore(PrepareDataStore action) |
void |
registerPrepareOpenDataStoreParameters(PrepareDataStoreParameters action) |
void |
registerPrepareOpenLayer(PrepareLayer action) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
java.io.File[] |
showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled) |
org.apache.commons.lang3.tuple.ImmutablePair<java.io.File[],java.nio.charset.Charset> |
showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled,
boolean askCharset) |
java.io.File[] |
showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled,
javax.swing.JComponent accesory) |
void |
showDialog(java.awt.Component contents,
java.lang.String title) |
java.io.File[] |
showOpenDirectoryDialog(java.lang.String title,
java.io.File initialPath) |
java.io.File[] |
showOpenFileDialog(java.lang.String title,
java.io.File initialPath) |
java.io.File[] |
showSaveFileDialog(java.lang.String title,
java.io.File initialPath) |
void |
showTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode,
java.lang.String title,
java.lang.String htmlText) |
void |
showTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode,
java.lang.String title,
java.lang.String htmlText,
javax.swing.event.HyperlinkListener hyperlinkListener) |
java.lang.String |
translate(java.lang.String message,
java.lang.String... args) |
public void addMenu(org.gvsig.andami.actioninfo.ActionInfo action,
java.lang.String text)
addMenu in interface ApplicationManagerpublic void addPropertiesObserver(org.gvsig.tools.observer.Observer o)
addPropertiesObserver in interface ApplicationManagerpublic void addSelectableTool(org.gvsig.andami.actioninfo.ActionInfo action,
java.lang.String toolBarName)
addSelectableTool in interface ApplicationManagerpublic void addTool(org.gvsig.andami.actioninfo.ActionInfo action,
java.lang.String toolBarName)
addTool in interface ApplicationManagerpublic void close(boolean quietly)
ApplicationManagerclose in interface ApplicationManagerpublic int confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType)
confirmDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic int confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType,
java.lang.String msgid)
confirmDialog in interface org.gvsig.andami.ui.mdiFrame.ThreadSafeDialogsconfirmDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic java.awt.Component createComponent(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object... parameters)
createComponent in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic java.awt.Component createComponentWithParams(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object[] parameters)
createComponentWithParams in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic javax.swing.tree.TreeModel createProjectLayersTreeModel()
createProjectLayersTreeModel in interface ApplicationManagerpublic javax.swing.tree.TreeModel createProjectStoresTreeModel()
createProjectStoresTreeModel in interface ApplicationManagerpublic void deletePropertiesObserver(org.gvsig.tools.observer.Observer o)
deletePropertiesObserver in interface ApplicationManagerpublic void deletePropertiesObservers()
deletePropertiesObservers in interface ApplicationManagerpublic java.lang.Object get(java.lang.String key)
get in interface org.gvsig.tools.util.GetItemByKey<java.lang.String,java.lang.Object>public org.gvsig.about.AboutManager getAbout()
ApplicationManagergetAbout in interface ApplicationManagerpublic javax.swing.JComponent getActiveComponent(java.lang.Class<? extends Document> documentClass)
ApplicationManagergetActiveComponent in interface ApplicationManagerpublic Document getActiveDocument()
ApplicationManagergetActiveDocument in interface ApplicationManagerpublic Document getActiveDocument(java.lang.Class<? extends Document> documentClass)
ApplicationManagergetActiveDocument in interface ApplicationManagerpublic Document getActiveDocument(java.lang.String documentTypeName)
ApplicationManagergetActiveDocument in interface ApplicationManagerpublic org.gvsig.andami.ui.mdiManager.IWindow getActiveWindow()
ApplicationManagergetActiveWindow in interface ApplicationManagerpublic org.gvsig.andami.ui.mdiManager.IWindow getActiveWindow(java.lang.Class<? extends Document> documentClass)
getActiveWindow in interface ApplicationManagerpublic org.gvsig.andami.Arguments getArguments()
ApplicationManagergetArguments in interface ApplicationManagerpublic org.gvsig.gui.ColorTablesFactory getColorTablesFactory()
getColorTablesFactory in interface ApplicationManagerpublic org.cresques.cts.IProjection getCRS(java.lang.String code)
ApplicationManagergetCRS in interface ApplicationManagercode - of the projection requestedpublic org.gvsig.fmap.mapcontext.layers.FLayer getCurrentLayer()
getCurrentLayer in interface ApplicationManagerpublic Project getCurrentProject()
ApplicationManagergetCurrentProject in interface ApplicationManagerpublic org.gvsig.fmap.dal.DataManager getDataManager()
ApplicationManagergetDataManager in interface ApplicationManagerpublic org.gvsig.tools.dataTypes.DataTypesManager getDataTypesManager()
getDataTypesManager in interface ApplicationManagerpublic org.gvsig.tools.dispose.DisposableManager getDisposableManager()
ApplicationManagergetDisposableManager in interface ApplicationManagerpublic IDocumentWindow getDocumentWindow(Document document)
ApplicationManagergetDocumentWindow in interface ApplicationManagerdocument - to search the windowpublic org.gvsig.tools.dynobject.DynObjectManager getDynObjectManager()
ApplicationManagergetDynObjectManager in interface ApplicationManagerpublic org.gvsig.tools.extensionpoint.ExtensionPointManager getExtensionPointManager()
ApplicationManagergetExtensionPointManager in interface ApplicationManagerpublic java.lang.String getFromClipboard()
ApplicationManagergetFromClipboard in interface ApplicationManagerpublic org.gvsig.fmap.geom.GeometryManager getGeometryManager()
ApplicationManagergetGeometryManager in interface ApplicationManagerpublic org.gvsig.tools.swing.icontheme.IconThemeManager getIconThemeManager()
ApplicationManagergetIconThemeManager in interface ApplicationManagerpublic java.lang.String getLocaleLanguage()
getLocaleLanguage in interface ApplicationManagerpublic org.gvsig.andami.ui.mdiFrame.MainFrame getMainFrame()
getMainFrame in interface ApplicationManagerpublic org.gvsig.fmap.mapcontext.MapContextManager getMapContextManager()
ApplicationManagergetMapContextManager in interface ApplicationManagerpublic org.gvsig.tools.persistence.PersistenceManager getPersistenceManager()
ApplicationManagergetPersistenceManager in interface ApplicationManagerpublic PreferencesNode getPreferences()
ApplicationManagergetPreferences in interface ApplicationManagerpublic PreferencesNode getPreferences(java.lang.String node)
ApplicationManagergetPreferences in interface ApplicationManagerpublic ProjectManager getProjectManager()
ApplicationManagergetProjectManager in interface ApplicationManagerpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface org.gvsig.tools.util.PropertiesSupportpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface org.gvsig.tools.util.PropertiesSupportpublic java.awt.Component getRootComponent()
getRootComponent in interface ApplicationManagerpublic org.gvsig.andami.ui.mdiManager.MDIManager getUIManager()
ApplicationManagergetUIManager in interface ApplicationManagerpublic Version getVersion()
ApplicationManagergetVersion in interface ApplicationManagerpublic java.util.List<WizardPanel> getWizardPanels() throws java.lang.Exception
getWizardPanels in interface ApplicationManagerjava.lang.Exceptionpublic java.lang.String inputDialog(java.lang.String message,
java.lang.String title)
inputDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic java.lang.String inputDialog(java.lang.String message,
java.lang.String title,
int messageType,
java.lang.String initialValue)
inputDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic java.lang.String makeTitle(java.lang.String base,
java.lang.String docname,
java.lang.String docname2)
ApplicationManagermakeTitle in interface ApplicationManagerpublic void message(java.lang.String message,
int message_type)
message in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic void messageDialog(java.lang.String message,
java.lang.String[] messageArgs,
java.lang.String title,
int messageType)
messageDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic void messageDialog(java.lang.String message,
java.lang.String[] messageArgs,
java.lang.String title,
int messageType,
java.lang.String msgid)
messageDialog in interface org.gvsig.andami.ui.mdiFrame.ThreadSafeDialogsmessageDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic void messageDialog(java.lang.String message,
java.lang.String title,
int messageType)
messageDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic org.gvsig.fmap.dal.DataStore pepareOpenDataSource(org.gvsig.fmap.dal.DataStore store,
PrepareContext context)
throws java.lang.Exception
pepareOpenDataSource in interface ApplicationManagerjava.lang.Exceptionpublic org.gvsig.fmap.dal.DataStoreParameters prepareOpenDataStoreParameters(org.gvsig.fmap.dal.DataStoreParameters storeParameters,
PrepareContext context)
throws java.lang.Exception
prepareOpenDataStoreParameters in interface ApplicationManagerjava.lang.Exceptionpublic java.util.List<org.gvsig.fmap.dal.DataStoreParameters> prepareOpenDataStoreParameters(java.util.List<org.gvsig.fmap.dal.DataStoreParameters> storeParameters,
PrepareContext context)
throws java.lang.Exception
prepareOpenDataStoreParameters in interface ApplicationManagerjava.lang.Exceptionpublic org.gvsig.fmap.mapcontext.layers.FLayer prepareOpenLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer,
PrepareContextView context)
throws java.lang.Exception
prepareOpenLayer in interface ApplicationManagerjava.lang.Exceptionpublic void putInClipboard(java.lang.String data)
ApplicationManagerputInClipboard in interface ApplicationManagerdata - to put in the clipboard.public void refreshDocument(org.gvsig.fmap.dal.DataStoreParameters params)
refreshDocument in interface ApplicationManagerpublic void refreshDocument(org.gvsig.fmap.dal.feature.FeatureStore store)
refreshDocument in interface ApplicationManagerpublic void refreshMenusAndToolBars()
refreshMenusAndToolBars in interface ApplicationManagerpublic void registerAddTableWizard(java.lang.String name,
java.lang.String description,
java.lang.Class<? extends WizardPanel> wpClass)
registerAddTableWizard in interface ApplicationManagerpublic void registerColorTablesFactory(org.gvsig.gui.ColorTablesFactory factory)
registerColorTablesFactory in interface ApplicationManagerpublic void registerPrepareOpenDataStore(PrepareDataStore action)
registerPrepareOpenDataStore in interface ApplicationManagerpublic void registerPrepareOpenDataStoreParameters(PrepareDataStoreParameters action)
registerPrepareOpenDataStoreParameters in interface ApplicationManagerpublic void registerPrepareOpenLayer(PrepareLayer action)
registerPrepareOpenLayer in interface ApplicationManagerpublic void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface org.gvsig.tools.util.PropertiesSupportpublic java.io.File[] showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled)
showChooserDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic org.apache.commons.lang3.tuple.ImmutablePair<java.io.File[],java.nio.charset.Charset> showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled,
boolean askCharset)
showChooserDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic java.io.File[] showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled,
javax.swing.JComponent accesory)
showChooserDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic void showDialog(java.awt.Component contents,
java.lang.String title)
showDialog in interface org.gvsig.andami.ui.mdiFrame.ThreadSafeDialogspublic java.io.File[] showOpenDirectoryDialog(java.lang.String title,
java.io.File initialPath)
showOpenDirectoryDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic java.io.File[] showOpenFileDialog(java.lang.String title,
java.io.File initialPath)
showOpenFileDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic java.io.File[] showSaveFileDialog(java.lang.String title,
java.io.File initialPath)
showSaveFileDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManagerpublic void showTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode,
java.lang.String title,
java.lang.String htmlText)
showTextDialog in interface ApplicationManagerpublic void showTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode,
java.lang.String title,
java.lang.String htmlText,
javax.swing.event.HyperlinkListener hyperlinkListener)
showTextDialog in interface ApplicationManagerpublic java.lang.String translate(java.lang.String message,
java.lang.String... args)
translate in interface ApplicationManagerCopyright © 2025 gvSIG Association. All rights reserved.