public class TuttiUIContext extends org.jdesktop.beans.AbstractBean implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected String |
campaignId
Id of last selected campaign (can be null if none ever selected).
|
protected TuttiConfig |
config
Application global configuration.
|
static String |
PROPERTY_CAMPAIGN_CONTEXT_FILLED |
static String |
PROPERTY_CAMPAIGN_ID |
static String |
PROPERTY_SCREEN |
static String |
PROPERTY_SURVEY_ID |
protected TuttiScreen |
screen
Current screen displayed in ui.
|
protected TuttiServiceContext |
serviceContext
Service context used by any service.
|
protected String |
surveyId
Id of last selected survey (can be null if none ever selected).
|
protected org.nuiton.widget.SwingSession |
swingSession
Swing session used to save ui states.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TuttiUIContext(TuttiConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getCampaignId() |
TuttiConfig |
getConfig() |
TuttiScreen |
getScreen() |
<S extends TuttiService> |
getService(Class<S> serviceType) |
String |
getSurveyId() |
org.nuiton.widget.SwingSession |
getSwingSession() |
boolean |
isCampaignContextFilled() |
static TuttiUIContext |
newContext(TuttiConfig config) |
void |
open() |
protected void |
saveContextToConfig() |
void |
setCampaignId(String campaignId) |
void |
setScreen(TuttiScreen screen) |
void |
setSurveyId(String surveyId) |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String PROPERTY_SURVEY_ID
public static final String PROPERTY_CAMPAIGN_ID
public static final String PROPERTY_SCREEN
public static final String PROPERTY_CAMPAIGN_CONTEXT_FILLED
protected final TuttiConfig config
protected final TuttiServiceContext serviceContext
protected final org.nuiton.widget.SwingSession swingSession
protected String surveyId
protected String campaignId
protected TuttiScreen screen
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 getSurveyId()
public String getCampaignId()
public boolean isCampaignContextFilled()
public TuttiScreen getScreen()
public void setSurveyId(String surveyId)
public void setCampaignId(String campaignId)
public void setScreen(TuttiScreen screen)
public void open()
public void close()
close in interface Closeableclose in interface AutoCloseableprotected void saveContextToConfig()
Copyright © 2012 Ifremer. All Rights Reserved.