public class TuttiUIContext extends org.jdesktop.beans.AbstractBean implements Closeable, UIMessageNotifier, jaxx.runtime.swing.help.JAXXHelpUIHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
busy
Busy state (
true when a blocking action is running). |
protected TuttiApplicationConfig |
config
Application global configuration.
|
protected String |
cruiseId
Id of last selected cruise (can be null if none ever selected).
|
protected TuttiDataContext |
dataContext
Shared data context.
|
protected TuttiErrorHelper |
errorHelper
Erro helper.
|
protected TuttiHelpBroker |
helpBroker
Tutti help broker.
|
protected boolean |
hideBody
Flag to hide (or not) the body of application.
|
protected Locale |
locale
Current locale used in application.
|
protected Set<UIMessageNotifier> |
messageNotifiers
Message notifiers.
|
protected String |
programId
Id of last selected program (can be null if none ever selected).
|
static Set<String> |
PROPERTIES_TO_SAVE |
static String |
PROPERTY_BUSY |
static String |
PROPERTY_CRUISE__FILLED |
static String |
PROPERTY_CRUISE_ID |
static String |
PROPERTY_DB_EXIST |
static String |
PROPERTY_DB_LOADED |
static String |
PROPERTY_HIDE_BODY |
static String |
PROPERTY_LOCALE |
static String |
PROPERTY_PROGRAM_FILLED |
static String |
PROPERTY_PROGRAM_ID |
static String |
PROPERTY_PROTOCOL_FILLED |
static String |
PROPERTY_PROTOCOL_ID |
static String |
PROPERTY_SCREEN |
static String |
PROPERTY_VALIDATION_CONTEXT |
protected String |
protocolId
Id of last selected protocol (can be null if none ever selected).
|
protected RessourceClassLoader |
resourceLoader
ClassLoader ressource.
|
protected TuttiScreen |
screen
Current screen displayed in ui.
|
protected TuttiServiceContext |
serviceContext
Service context used by any service.
|
protected org.nuiton.widget.SwingSession |
swingSession
Swing session used to save ui states.
|
static String |
VALIDATION_CONTEXT_EDIT |
static String |
VALIDATION_CONTEXT_VALIDATE |
| Modifier | Constructor and Description |
|---|---|
protected |
TuttiUIContext(TuttiApplicationConfig config) |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String VALIDATION_CONTEXT_EDIT
public static final String VALIDATION_CONTEXT_VALIDATE
public static final String PROPERTY_PROGRAM_ID
public static final String PROPERTY_CRUISE_ID
public static final String PROPERTY_PROTOCOL_ID
public static final String PROPERTY_SCREEN
public static final String PROPERTY_PROGRAM_FILLED
public static final String PROPERTY_CRUISE__FILLED
public static final String PROPERTY_PROTOCOL_FILLED
public static final String PROPERTY_VALIDATION_CONTEXT
public static final String PROPERTY_BUSY
public static final String PROPERTY_HIDE_BODY
public static final String PROPERTY_LOCALE
public static final String PROPERTY_DB_EXIST
public static final String PROPERTY_DB_LOADED
protected final TuttiApplicationConfig config
protected final RessourceClassLoader resourceLoader
protected final TuttiServiceContext serviceContext
protected final org.nuiton.widget.SwingSession swingSession
protected final TuttiErrorHelper errorHelper
protected String programId
protected String cruiseId
protected String protocolId
protected TuttiDataContext dataContext
protected TuttiHelpBroker helpBroker
protected TuttiScreen screen
protected Locale locale
protected boolean busy
true when a blocking action is running).protected boolean hideBody
protected final Set<UIMessageNotifier> messageNotifiers
protected TuttiUIContext(TuttiApplicationConfig config)
public static TuttiUIContext newContext(TuttiApplicationConfig config)
public static TuttiUIContext getApplicationContext()
public static TuttiErrorHelper getErrorHelper()
public PersistenceService getPersistenceService()
public DecoratorService getDecoratorService()
public TuttiReferentialSynchronizeService getTuttiReferentialSynchronizeService()
public TuttiProtocolImportExportService getTuttiProtocolImportExportService()
public TuttiPupitriImportExportService getTuttiPupitriImportExportService()
public TuttiReferentialImportExportService getTuttiReferentialImportExportService()
public boolean useRealPersistenceService()
public PersistenceService reloadPersistenceService()
public TuttiApplicationConfig getConfig()
public org.nuiton.widget.SwingSession getSwingSession()
public String getProgramId()
public String getCruiseId()
public String getProtocolId()
public boolean isCruiseFilled()
public boolean isProtocolFilled()
public boolean isProgramFilled()
public TuttiScreen getScreen()
public boolean isDbExist()
public void setDbExist(boolean dbExist)
public boolean isBusy()
public void setBusy(boolean busy)
public boolean isHideBody()
public void setHideBody(boolean hideBody)
public Locale getLocale()
public void setLocale(Locale locale)
public boolean isDbLoaded()
public void setDbLoaded(boolean dbLoaded)
public void setProgramId(String programId)
public void setCruiseId(String cruiseId)
public void setProtocolId(String protocolId)
public void setValidationContext(String validationContext)
public String getValidationContext()
public void setScreen(TuttiScreen screen)
public TuttiDataContext getDataContext()
public void init()
public void open()
public void close()
close in interface Closeableclose in interface AutoCloseableprotected void saveContextToConfig()
public void addMessageNotifier(UIMessageNotifier messageNotifier)
public void removeMessageNotifier(UIMessageNotifier messageNotifier)
public void showInformationMessage(String message)
showInformationMessage in interface UIMessageNotifierpublic RessourceClassLoader getResourceLoader()
public void setMainUI(MainUI mainUI)
public MainUI getMainUI()
public void setActionUI(TuttiActionUI actionUI)
public TuttiActionUI getActionUI()
public void clearDbContext()
public void checkDbContext()
public TuttiHelpBroker getHelpBroker()
public void setHelpBroker(TuttiHelpBroker helpBroker)
public void showHelp(jaxx.runtime.JAXXContext context,
jaxx.runtime.swing.help.JAXXHelpBroker broker,
String helpId)
showHelp in interface jaxx.runtime.swing.help.JAXXHelpUIHandlerpublic void reloadDecoratorService()
Copyright © 2012-2013 Ifremer. All Rights Reserved.