public class TuttiUIContext extends org.jdesktop.beans.AbstractBean implements Closeable, UIMessageNotifier, jaxx.runtime.swing.help.JAXXHelpUIHandler, PropagatePropertyChangeListener.PropagatePropertyChange
| 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 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.
|
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 RessourceClassLoader |
resourceLoader
ClassLoader ressource.
|
protected TuttiScreen |
screen
Current screen displayed in ui.
|
protected TuttiServiceContext |
serviceContext
Service context used by any service.
|
protected jaxx.runtime.swing.session.SwingSession |
swingSession
Swing session used to save ui states.
|
| 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 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 jaxx.runtime.swing.session.SwingSession swingSession
protected final TuttiErrorHelper errorHelper
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 void init()
public void open()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic PersistenceService getPersistenceService()
public DecoratorService getDecoratorService()
public TuttiReferentialSynchronizeService getTuttiReferentialSynchronizeService()
public ProtocolImportExportService getTuttiProtocolImportExportService()
public PupitriImportExportService getTuttiPupitriImportExportService()
public ReferentialImportExportService getTuttiReferentialImportExportService()
public WeightComputingService getWeightComputingService()
public WeightCleaningService getWeightCleaningService()
public ValidateCruiseOperationsService getValidateCruiseOperationsService()
public ValidationService getValidationService()
public ExportCatchesReportService getGeneratePDFService()
public TuttiExportService getTuttiExportService()
public CatchesSumatraExportService getCatchesSumatraExportService()
public MultiPostImportService getMultiPostImportService()
public MultiPostExportService getMultiPostExportService()
public ReportService getReportService()
public boolean useRealPersistenceService()
public PersistenceService reloadPersistenceService()
public void reloadDecoratorService()
public TuttiDataContext getDataContext()
public boolean isCruiseFilled()
public String getProgramId()
public boolean isProtocolFilled()
public String getProtocolId()
public String getCruiseId()
public boolean isProgramFilled()
public void setProgramId(String programId)
public void setCruiseId(String cruiseId)
public void setProtocolId(String protocolId)
public void clearDbContext()
public void checkDbContext()
public boolean isDbExist()
public void setDbExist(boolean dbExist)
public boolean isDbLoaded()
public void setDbLoaded(boolean dbLoaded)
public TuttiApplicationConfig getConfig()
protected void saveContextToConfig()
public MainUI getMainUI()
public void setMainUI(MainUI mainUI)
public TuttiActionUI getActionUI()
public void setActionUI(TuttiActionUI actionUI)
public jaxx.runtime.swing.session.SwingSession getSwingSession()
public TuttiScreen getScreen()
public void setScreen(TuttiScreen screen)
public boolean isBusy()
public void setBusy(boolean busy)
public boolean isHideBody()
public void setHideBody(boolean hideBody)
public void addMessageNotifier(UIMessageNotifier messageNotifier)
public void removeMessageNotifier(UIMessageNotifier messageNotifier)
public void showInformationMessage(String message)
showInformationMessage in interface UIMessageNotifierpublic RessourceClassLoader getResourceLoader()
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 Locale getLocale()
public void setLocale(Locale locale)
public void setValidationContext(String validationContext)
public String getValidationContext()
public void firePropertyChanged(String propertyName, Object oldValue, Object newValue)
firePropertyChanged in interface PropagatePropertyChangeListener.PropagatePropertyChangepublic void setFallBackScreen()
public boolean checkUpdateApplicationReachable()
public boolean checkUpdateDataReachable()
Copyright © 2012–2013 Ifremer. All rights reserved.