public class TuttiUIContext extends org.jdesktop.beans.AbstractBean implements Closeable, UIMessageNotifier, jaxx.runtime.swing.help.JAXXHelpUIHandler, org.nuiton.jaxx.application.listener.PropagatePropertyChangeListener.PropagatePropertyChange, org.nuiton.jaxx.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 org.nuiton.jaxx.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 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 TuttiServiceContext serviceContext
protected final jaxx.runtime.swing.session.SwingSession swingSession
protected final org.nuiton.jaxx.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 org.nuiton.jaxx.application.swing.util.ApplicationErrorHelper getErrorHelper()
getErrorHelper in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic String getI18nPrefix()
getI18nPrefix in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic String getDateFormat()
getDateFormat in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic boolean isActionInProgress(org.nuiton.jaxx.application.swing.action.ApplicationUIAction action)
isActionInProgress in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic void setActionInProgress(org.nuiton.jaxx.application.swing.action.ApplicationUIAction action,
boolean actionInProgress)
setActionInProgress in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic TuttiConfiguration getConfiguration()
getConfiguration in interface org.nuiton.jaxx.application.ApplicationContextpublic Component getBodyUI()
getBodyUI in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic Component getStatusUI()
getStatusUI in interface org.nuiton.jaxx.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 PupitriImportService getPupitriImportService()
public PupitriExportService getPupitriExportService()
public PsionImportService getTuttiPsionImportService()
public BigfinImportService getTuttiBigfinImportService()
public ReferentialTemporaryGearService getReferentialTemporaryGearService()
public ReferentialTemporaryPersonService getReferentialTemporaryPersonService()
public ReferentialTemporarySpeciesService getReferentialTemporarySpeciesService()
public ReferentialTemporaryVesselService getReferentialTemporaryVesselService()
public WeightComputingService getWeightComputingService()
public WeightCleaningService getWeightCleaningService()
public ValidateCruiseOperationsService getValidateCruiseOperationsService()
public ValidationService getValidationService()
public CatchesPdfExportService getGeneratePDFService()
public ToConfirmReportService getToConfirmReportService()
public GenericFormatExportService getGenericFormatExportService()
public GenericFormatImportService getGenericFormatImportService()
public CatchesSumatraExportService getCatchesSumatraExportService()
public MultiPostImportService getMultiPostImportService()
public MultiPostExportService getMultiPostExportService()
public FishingOperationImportService getFishingOperationImportService()
public ReportGenerationService getReportGenerationService()
public boolean useRealPersistenceService()
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 TuttiConfiguration getConfig()
protected void saveContextToConfig()
public MainUI getMainUI()
getMainUI in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic void setMainUI(MainUI mainUI)
public org.nuiton.jaxx.application.swing.action.ApplicationActionUI getActionUI()
getActionUI in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic org.nuiton.jaxx.application.swing.action.ApplicationActionUI getExistingActionUI()
getExistingActionUI in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic void setActionUI(org.nuiton.jaxx.application.swing.action.ApplicationActionUI actionUI)
public void addInSwingSession(Component c, boolean replace)
public void saveSwingSession()
public TuttiScreen getScreen()
public void setScreen(TuttiScreen screen)
public boolean isBusy()
isBusy in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic void setBusy(boolean busy)
setBusy in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic boolean isHideBody()
isHideBody in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic void setHideBody(boolean hideBody)
setHideBody in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic Color getColorBlockingLayer()
getColorBlockingLayer in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic TuttiActionFactory getActionFactory()
getActionFactory in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic org.nuiton.jaxx.application.swing.action.ApplicationActionEngine getActionEngine()
getActionEngine in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic void addMessageNotifier(UIMessageNotifier messageNotifier)
public void removeMessageNotifier(UIMessageNotifier messageNotifier)
public void showInformationMessage(String message)
showInformationMessage in interface UIMessageNotifierpublic 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 org.nuiton.jaxx.application.listener.PropagatePropertyChangeListener.PropagatePropertyChangepublic void setFallBackScreen()
public boolean checkUpdateApplicationReachable(boolean showErrorInPopup)
public boolean checkUpdateDataReachable(boolean showErrorInPopup)
public void closePersistenceService()
public void openPersistenceService()
public void deleteDbOnExit()
public Timer getTimer()
public Timer reloadTimer()
Copyright © 2012–2015 Ifremer. All rights reserved.