public class TuttiUIContext extends org.jdesktop.beans.AbstractBean implements Closeable
| 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).
|
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_SCREEN |
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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TuttiUIContext(TuttiConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TuttiConfig |
getConfig() |
String |
getCruiseId() |
String |
getProgramId() |
TuttiScreen |
getScreen() |
<S extends TuttiService> |
getService(Class<S> serviceType) |
org.nuiton.widget.SwingSession |
getSwingSession() |
boolean |
isCruiseContextFilled() |
static TuttiUIContext |
newContext(TuttiConfig config) |
void |
open() |
protected void |
saveContextToConfig() |
void |
setCruiseId(String cruiseId) |
void |
setProgramId(String programId) |
void |
setScreen(TuttiScreen screen) |
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_SCREEN
public static final String PROPERTY_CRUISE_CONTEXT_FILLED
protected final TuttiConfig config
protected final TuttiServiceContext serviceContext
protected final org.nuiton.widget.SwingSession swingSession
protected String programId
protected String cruiseId
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 getProgramId()
public String getCruiseId()
public boolean isCruiseContextFilled()
public TuttiScreen getScreen()
public void setProgramId(String programId)
public void setCruiseId(String cruiseId)
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.