public interface ApplicationManager extends ThreadSafeDialogs
Modifier and Type | Method and Description |
---|---|
void |
addMenu(ActionInfo action,
String text) |
void |
addSelectableTool(ActionInfo action,
String toolBarName) |
void |
addTool(ActionInfo action,
String toolBarName) |
TreeModel |
createProjectLayersTreeModel() |
AboutManager |
getAbout()
Utility method to obtain the AboutManager used in the application at this moment.
|
JComponent |
getActiveComponent(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(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(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.
|
IWindow |
getActiveWindow()
Return the active window, IWindow, in the application.
|
String |
getArgument(String name)
Return the value of the argument passed in the command line by
the name indicated as the parameter.
|
String[] |
getArguments()
Return the arguments passed to the application in the command line
|
ColorTablesFactory |
getColorTablesFactory() |
IProjection |
getCRS(String code)
Obtain the projection associated by the code of projection
Passed as parameter.
|
Project |
getCurrentProject()
Return the project that is loaded and in use in the application.
|
DataManager |
getDataManager()
Utility method to obtain the DataManager used in the application at this moment.
|
DataTypesManager |
getDataTypesManager() |
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.
|
DynObjectManager |
getDynObjectManager()
Utility method to obtain the DynObjectManager used in the application at this moment.
|
ExtensionPointManager |
getExtensionPointManager()
Utility method to obtain the ExtensionPointManager used in the application at this moment.
|
String |
getFromClipboard()
Get the value of the system clipboard as a string.
|
GeometryManager |
getGeometryManager()
Utility method to obtain the GeometryManager used in the application at this moment.
|
IconThemeManager |
getIconThemeManager()
Utility method to obtain the IconThemeManager used in the application at this moment.
|
String |
getLocaleLanguage() |
MainFrame |
getMainFrame() |
MapContextManager |
getMapContextManager()
Utility method to obtain the MapContextManager used in the application at this moment.
|
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(String nodeName)
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.
|
Component |
getRootComponent() |
MDIManager |
getUIManager()
Utility method to obtain the UIManager used in the application at this moment.
|
Version |
getVersion()
Return the version of the application.
|
List<WizardPanel> |
getWizardPanels() |
void |
message(String message,
int message_type)
sets message in status bar
This method is thread safe.
|
DataStore |
pepareOpenDataSource(DataStore store,
PrepareContext context) |
DataStoreParameters |
prepareOpenDataStoreParameters(DataStoreParameters storeParameters,
PrepareContext context) |
List<DataStoreParameters> |
prepareOpenDataStoreParameters(List<DataStoreParameters> storeParameters,
PrepareContext context) |
FLayer |
prepareOpenLayer(FLayer layer,
PrepareContextView context) |
void |
putInClipboard(String data)
Put the string value passed as parameter in the clipboard of
the system.
|
void |
refreshMenusAndToolBars() |
void |
registerAddTableWizard(String name,
String description,
Class<? extends WizardPanel> wpClass) |
void |
registerColorTablesFactory(ColorTablesFactory factory) |
void |
registerPrepareOpenDataStore(PrepareDataStore action) |
void |
registerPrepareOpenDataStoreParameters(PrepareDataStoreParameters action) |
void |
registerPrepareOpenLayer(PrepareLayer action) |
void |
showTextDialog(WindowManager.MODE mode,
String title,
String htmlText) |
void |
showTextDialog(WindowManager.MODE mode,
String title,
String htmlText,
HyperlinkListener hyperlinkListener) |
String |
translate(String message,
String... args) |
confirmDialog, createComponent, createComponentWithParams, inputDialog, inputDialog, messageDialog, messageDialog, showChooserDialog, showDialog, showOpenDirectoryDialog, showOpenFileDialog, showSaveFileDialog
Version getVersion()
IWindow getActiveWindow()
Project getCurrentProject()
Document getActiveDocument()
Document getActiveDocument(String documentTypeName)
documentTypeName,
- type name of the document requested.Document getActiveDocument(Class<? extends Document> documentClass)
documentClass,
- class of the document requested.JComponent getActiveComponent(Class<? extends Document> documentClass)
documentClass
- IDocumentWindow getDocumentWindow(Document document)
document
- to search the windowPreferencesNode getPreferences()
PreferencesNode getPreferences(String nodeName)
nodeName,
- name of the node to returnString[] getArguments()
String getArgument(String name)
application --name=value
name
- of the requested argumentString getFromClipboard()
void putInClipboard(String data)
data
- to put in the clipboard.IProjection getCRS(String code)
code
- of the projection requestedDataManager getDataManager()
ProjectManager getProjectManager()
MDIManager getUIManager()
GeometryManager getGeometryManager()
PersistenceManager getPersistenceManager()
DisposableManager getDisposableManager()
DynObjectManager getDynObjectManager()
ExtensionPointManager getExtensionPointManager()
MapContextManager getMapContextManager()
AboutManager getAbout()
DataTypesManager getDataTypesManager()
IconThemeManager getIconThemeManager()
void registerAddTableWizard(String name, String description, Class<? extends WizardPanel> wpClass)
List<WizardPanel> getWizardPanels() throws Exception
Exception
void registerPrepareOpenDataStore(PrepareDataStore action)
void registerPrepareOpenDataStoreParameters(PrepareDataStoreParameters action)
void registerPrepareOpenLayer(PrepareLayer action)
DataStore pepareOpenDataSource(DataStore store, PrepareContext context) throws Exception
Exception
DataStoreParameters prepareOpenDataStoreParameters(DataStoreParameters storeParameters, PrepareContext context) throws Exception
Exception
List<DataStoreParameters> prepareOpenDataStoreParameters(List<DataStoreParameters> storeParameters, PrepareContext context) throws Exception
Exception
FLayer prepareOpenLayer(FLayer layer, PrepareContextView context) throws Exception
Exception
ColorTablesFactory getColorTablesFactory()
void registerColorTablesFactory(ColorTablesFactory factory)
String getLocaleLanguage()
void message(String message, int message_type)
message
- message_type
- One of: JOptionPane.ERROR_MESSAGE,
JOptionPane.WARNING_MESSAGE, JOptionPane.INFORMATION_MESSAGEComponent getRootComponent()
void refreshMenusAndToolBars()
MainFrame getMainFrame()
void addMenu(ActionInfo action, String text)
void addTool(ActionInfo action, String toolBarName)
void addSelectableTool(ActionInfo action, String toolBarName)
void showTextDialog(WindowManager.MODE mode, String title, String htmlText)
void showTextDialog(WindowManager.MODE mode, String title, String htmlText, HyperlinkListener hyperlinkListener)
TreeModel createProjectLayersTreeModel()