public class TuttiUIContext extends org.jdesktop.beans.AbstractBean implements Closeable, UIMessageNotifier
| Modifier and Type | Field and Description |
|---|---|
protected TuttiConfig |
config
Application global configuration.
|
protected String |
cruiseId
Id of last selected cruise (can be null if none ever selected).
|
static Set<String> |
ID_TO_SAVE_PROPERTIES |
protected Set<UIMessageNotifier> |
messageNotifiers
Message notifiers.
|
protected String |
programId
Id of last selected program (can be null if none ever selected).
|
static String |
PROPERTY_CRUISE_CONTEXT_FILLED |
static String |
PROPERTY_CRUISE_ID |
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(TuttiConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageNotifier(UIMessageNotifier messageNotifier) |
void |
close() |
TuttiConfig |
getConfig() |
String |
getCruiseId() |
String |
getProgramId() |
String |
getProtocolId() |
RessourceClassLoader |
getResourceLoader() |
TuttiScreen |
getScreen() |
<S extends TuttiService> |
getService(Class<S> serviceType) |
org.nuiton.widget.SwingSession |
getSwingSession() |
String |
getValidationContext() |
boolean |
isCruiseContextFilled() |
boolean |
isProtocolFilled() |
static TuttiUIContext |
newContext(TuttiConfig config) |
void |
open() |
protected void |
saveContextToConfig() |
void |
setCruiseId(String cruiseId) |
void |
setProgramId(String programId) |
void |
setProtocolId(String protocolId) |
void |
setScreen(TuttiScreen screen) |
void |
setValidationContext(String validationContext) |
void |
showInformationMessage(String message) |
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_CRUISE_CONTEXT_FILLED
public static final String PROPERTY_PROTOCOL_FILLED
public static final String PROPERTY_VALIDATION_CONTEXT
protected final TuttiConfig config
protected final RessourceClassLoader resourceLoader
protected final TuttiServiceContext serviceContext
protected final org.nuiton.widget.SwingSession swingSession
protected String programId
protected String cruiseId
protected String protocolId
protected TuttiScreen screen
protected final Set<UIMessageNotifier> messageNotifiers
protected TuttiUIContext(TuttiConfig config)
public static TuttiUIContext newContext(TuttiConfig config)
public <S extends TuttiService> S getService(Class<S> serviceType)
public TuttiConfig getConfig()
public org.nuiton.widget.SwingSession getSwingSession()
public String getProgramId()
public String getCruiseId()
public String getProtocolId()
public boolean isCruiseContextFilled()
public boolean isProtocolFilled()
public TuttiScreen getScreen()
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 void open()
public void close()
close in interface Closeableclose in interface AutoCloseableprotected void saveContextToConfig()
public void addMessageNotifier(UIMessageNotifier messageNotifier)
public void showInformationMessage(String message)
showInformationMessage in interface UIMessageNotifierpublic RessourceClassLoader getResourceLoader()
Copyright © 2012-2013 Ifremer. All Rights Reserved.