public interface Application extends Internationalization
DEBUG_LANGUAGE| Modifier and Type | Method and Description |
|---|---|
void |
endSession()
Ends the user session.
|
void |
exit()
Closes the application.
|
IFormManager |
getFormManager(String formManagerName)
Provides a reference to a FormManager.
|
Frame |
getFrame()
Returns the frame in which the application is placed.
|
Locale |
getLocale()
Returns the current application locale.
|
JMenuBar |
getMenu()
Provides a reference to the application menu bar.
|
MenuListener |
getMenuListener()
Provides a reference to the class that listens the menu events.
|
String |
getName()
Returns the application name.
|
ApplicationPreferences |
getPreferences()
Returns the application preferences.
|
EntityReferenceLocator |
getReferenceLocator()
Provides a reference to the ReferenceLocator configured to this
application.
|
ResourceBundle |
getResourceBundle()
Returns the current application resource bundle.
|
JToolBar |
getToolBar()
Provides a reference to the application tool bar.
|
ToolBarListener |
getToolBarListener()
Returns the application tool bar listener
|
void |
lock()
Deprecated.
|
boolean |
login()
Performs the login operation
|
void |
registerFormManager(String formManagerName,
IFormManager formManager)
Adds a FormManager to the application.
|
void |
registerStatusComponent(StatusComponent statusComponent)
Register a
StatusComponent to be managed by this application. |
void |
setMenu(JMenuBar menuBar)
Sets a menu bar to the application.
|
void |
setMenuListener(MenuListener menuListener)
Sets the application menu listener
|
void |
setReferencesLocator(EntityReferenceLocator locator)
Sets the EntityReferenceLocator for this application.
|
void |
setStatusBarText(String text)
Sets a text in the application bar.
|
void |
setToolBar(JToolBar toolBar)
Sets a tool bar to the application.
|
void |
setToolBarListener(ToolBarListener toolbarListener)
Sets a toolbarListener
|
void |
show()
Shows the application.
|
void |
showFormManagerContainer(String formManagerName)
Shows a form manager.
|
void |
unregisterStatusComponent(StatusComponent statusComponent)
Unregister a
StatusComponent from the list of the be application
managed components. |
getTextsToTranslate, setComponentLocale, setResourceBundlevoid setMenu(JMenuBar menuBar)
menuBar - the menu barApplicationMenuBarvoid setToolBar(JToolBar toolBar)
toolBar - the tool barApplicationToolBarEntityReferenceLocator getReferenceLocator()
void setReferencesLocator(EntityReferenceLocator locator)
locator - void showFormManagerContainer(String formManagerName)
formManagerName - the name of the FormManager to show.IFormManager getFormManager(String formManagerName)
formManagerName - the name of the FormManagervoid registerFormManager(String formManagerName, IFormManager formManager)
formManagerName - the FormManager classformManager - the name that will be use to register and reference the
FormManagervoid show()
Frame getFrame()
boolean login()
void exit()
@Deprecated void lock()
void endSession()
Locale getLocale()
ResourceBundle getResourceBundle()
JMenuBar getMenu()
MenuListener getMenuListener()
void setMenuListener(MenuListener menuListener)
menuListener - the application menu listenerJToolBar getToolBar()
ToolBarListener getToolBarListener()
void setToolBarListener(ToolBarListener toolbarListener)
toolbarListener - the new ToolBarListenerApplicationPreferences getPreferences()
void setStatusBarText(String text)
text - void registerStatusComponent(StatusComponent statusComponent)
StatusComponent to be managed by this application.statusComponent - the StatusComponentvoid unregisterStatusComponent(StatusComponent statusComponent)
StatusComponent from the list of the be application
managed components.statusComponent - the StatusComponentString getName()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.