public class TuttiUIContext extends org.jdesktop.beans.AbstractBean implements Closeable, UIMessageNotifier, jaxx.runtime.swing.help.JAXXHelpUIHandler, fr.ifremer.shared.application.listener.PropagatePropertyChangeListener.PropagatePropertyChange, fr.ifremer.shared.application.swing.ApplicationUIContext
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
busy
Busy state (
true when a blocking action is running). |
protected TuttiConfiguration |
config
Application global configuration.
|
protected TuttiDataContext |
dataContext
Shared data context.
|
protected fr.ifremer.shared.application.swing.util.ApplicationErrorHelper |
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_ICHTYOMETER_CONNECTED |
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(TuttiConfiguration 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_ICHTYOMETER_CONNECTED
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 TuttiConfiguration config
protected final RessourceClassLoader resourceLoader
protected final TuttiServiceContext serviceContext
protected final jaxx.runtime.swing.session.SwingSession swingSession
protected final fr.ifremer.shared.application.swing.util.ApplicationErrorHelper 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(TuttiConfiguration config)
public static TuttiUIContext newContext(TuttiConfiguration config)
public static TuttiUIContext getApplicationContext()
public fr.ifremer.shared.application.swing.util.ApplicationErrorHelper getErrorHelper()
getErrorHelper in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic String getI18nPrefix()
getI18nPrefix in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic String getDateFormat()
getDateFormat in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic fr.ifremer.shared.application.ApplicationConfiguration getConfiguration()
getConfiguration in interface fr.ifremer.shared.application.ApplicationContextpublic Component getBodyUI()
getBodyUI in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic Component getStatusUI()
getStatusUI in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic 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 PsionImportService getTuttiPsionImportExportService()
public ReferentialImportExportService getTuttiReferentialImportExportService()
public WeightComputingService getWeightComputingService()
public WeightCleaningService getWeightCleaningService()
public ValidateCruiseOperationsService getValidateCruiseOperationsService()
public ValidationService getValidationService()
public CatchesPdfExportService 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 TuttiConfiguration getConfig()
protected void saveContextToConfig()
public MainUI getMainUI()
getMainUI in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic void setMainUI(MainUI mainUI)
public fr.ifremer.shared.application.swing.action.ApplicationActionUI getActionUI()
getActionUI in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic fr.ifremer.shared.application.swing.action.ApplicationActionUI getExistingActionUI()
public void setActionUI(fr.ifremer.shared.application.swing.action.ApplicationActionUI actionUI)
public jaxx.runtime.swing.session.SwingSession getSwingSession()
public TuttiScreen getScreen()
public void setScreen(TuttiScreen screen)
public boolean isBusy()
isBusy in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic void setBusy(boolean busy)
setBusy in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic boolean isHideBody()
isHideBody in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic void setHideBody(boolean hideBody)
setHideBody in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic Color getColorBlockingLayer()
getColorBlockingLayer in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic fr.ifremer.shared.application.swing.action.ApplicationActionFactory getActionFactory()
getActionFactory in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic fr.ifremer.shared.application.swing.action.ApplicationActionEngine getActionEngine()
getActionEngine in interface fr.ifremer.shared.application.swing.ApplicationUIContextpublic 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 AuthenticationInfo getAuthenticationInfo(String url)
public FeedReader getIchtyometerReader()
public void setIchtyometerReader(FeedReader ichtyometerReader)
public boolean isIchtyometerConnected()
public 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 fr.ifremer.shared.application.listener.PropagatePropertyChangeListener.PropagatePropertyChangepublic void setFallBackScreen()
public boolean checkUpdateApplicationReachable(boolean showErrorInPopup)
public boolean checkUpdateDataReachable(boolean showErrorInPopup)
Copyright © 2012–2014 Ifremer. All rights reserved.