public class FaxToMailUIContext extends org.jdesktop.beans.AbstractBean implements Closeable, UIMessageNotifier, org.nuiton.jaxx.application.swing.ApplicationUIContext
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
actionInProgress
Flag to know if an action is already in progress.
|
protected boolean |
busy
Busy state (
true when a blocking action is running). |
protected FaxToMailConfiguration |
config
Application global configuration.
|
protected DemandeUIModel |
currentEmail
L'email courant (pour quoi faire ?).
|
protected MailFolder |
currentMailFolder
Le dossier courant (pour ???).
|
protected org.nuiton.util.pagination.PaginationParameter |
currentPaginationParameter |
protected FaxToMailUser |
currentUser
L'utilisateur actuellement connecté.
|
protected List<DemandType> |
demandTypeCache
Demand type cache.
|
protected org.nuiton.jaxx.application.swing.util.ApplicationErrorHelper |
errorHelper
Error helper.
|
protected List<MailFolder> |
expandedFolders
Les dossiers étendus (pour pouvoir les étendres encore au rechargement de l'UI).
|
protected List<FaxToMailUser> |
faxtomailUserCache
Active user cache.
|
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.
|
protected List<Priority> |
priorityCache
Priority cache.
|
static Set<String> |
PROPERTIES_TO_SAVE |
static String |
PROPERTY_ACTION_IN_PROGRESS |
static String |
PROPERTY_BUSY |
static String |
PROPERTY_HIDE_BODY |
static String |
PROPERTY_LOCALE |
static String |
PROPERTY_SCREEN |
protected List<Range> |
rangeCache
Range cache.
|
protected RessourceClassLoader |
resourceLoader
ClassLoader ressource.
|
protected FaxToMailScreen |
screen
Current screen displayed in ui.
|
protected SearchUIModel |
search |
protected jaxx.runtime.swing.session.SwingSession |
swingSession
Swing session used to save ui states.
|
protected FaxToMailTopiaApplicationContext |
topiaApplicationContext
Topia application context.
|
protected List<WaitingState> |
waitingStateCache
Waiting state cache.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FaxToMailUIContext(FaxToMailConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageNotifier(UIMessageNotifier messageNotifier) |
protected void |
autologinUser()
Recupere l'utilisateur connecté ou demande les identifiants à l'utilisateur.
|
void |
close() |
org.nuiton.jaxx.application.swing.action.ApplicationActionEngine |
getActionEngine() |
org.nuiton.jaxx.application.swing.action.ApplicationActionFactory |
getActionFactory() |
org.nuiton.jaxx.application.swing.action.ApplicationActionUI |
getActionUI() |
static FaxToMailUIContext |
getApplicationContext() |
Component |
getBodyUI() |
Color |
getColorBlockingLayer() |
FaxToMailConfiguration |
getConfig() |
org.nuiton.jaxx.application.ApplicationConfiguration |
getConfiguration() |
DemandeUIModel |
getCurrentEmail() |
MailFolder |
getCurrentMailFolder() |
org.nuiton.util.pagination.PaginationParameter |
getCurrentPaginationParameter() |
FaxToMailUser |
getCurrentUser() |
String |
getDateFormat() |
List<DemandType> |
getDemandTypeCache() |
org.nuiton.jaxx.application.swing.util.ApplicationErrorHelper |
getErrorHelper() |
org.nuiton.jaxx.application.swing.action.ApplicationActionUI |
getExistingActionUI() |
List<MailFolder> |
getExpandedFolders() |
List<FaxToMailUser> |
getFaxtomailUserCache() |
String |
getI18nPrefix() |
Locale |
getLocale() |
protected String |
getLoggedInUsername()
Retourne l'utilsateur connecté sur la session utilisateur (ou a defaut un utilisateur de test).
|
MainUI |
getMainUI() |
List<Priority> |
getPriorityCache() |
List<Range> |
getRangeCache() |
RessourceClassLoader |
getResourceLoader() |
FaxToMailScreen |
getScreen() |
SearchUIModel |
getSearch() |
JFrame |
getSecondaryFrame() |
Component |
getStatusUI() |
jaxx.runtime.swing.session.SwingSession |
getSwingSession() |
List<WaitingState> |
getWaitingStateCache() |
void |
init() |
protected void |
initContextCache()
Init list used in application wide scope and put it in cache.
|
boolean |
isActionInProgress(org.nuiton.jaxx.application.swing.action.ApplicationUIAction action) |
boolean |
isBusy() |
boolean |
isHideBody() |
static FaxToMailUIContext |
newContext(FaxToMailConfiguration config) |
FaxToMailServiceContext |
newServiceContext() |
void |
open() |
void |
removeMessageNotifier(UIMessageNotifier messageNotifier) |
protected void |
saveContextToConfig() |
void |
setActionInProgress(org.nuiton.jaxx.application.swing.action.ApplicationUIAction action,
boolean actionInProgress) |
void |
setActionUI(org.nuiton.jaxx.application.swing.action.ApplicationActionUI actionUI) |
void |
setBusy(boolean busy) |
void |
setCurrentEmail(DemandeUIModel currentEmail) |
void |
setCurrentMailFolder(MailFolder currentMailFolder) |
void |
setCurrentPaginationParameter(org.nuiton.util.pagination.PaginationParameter currentPaginationParameter) |
void |
setCurrentUser(FaxToMailUser currentUser) |
void |
setDemandTypeCache(List<DemandType> demandTypeCache) |
void |
setExpandedFolders(List<MailFolder> expandedFolders) |
void |
setFaxtomailUserCache(List<FaxToMailUser> faxtomailUserCache) |
void |
setHideBody(boolean hideBody) |
void |
setLocale(Locale locale) |
void |
setMainUI(MainUI mainUI) |
void |
setPriorityCache(List<Priority> priorityCache) |
void |
setRangeCache(List<Range> rangeCache) |
void |
setScreen(FaxToMailScreen screen) |
void |
setSearch(SearchUIModel search) |
void |
setSecondaryFrame(JFrame secondaryFrame) |
void |
setWaitingStateCache(List<WaitingState> waitingStateCache) |
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 PROPERTY_SCREEN
public static final String PROPERTY_LOCALE
public static final String PROPERTY_BUSY
public static final String PROPERTY_HIDE_BODY
public static final String PROPERTY_ACTION_IN_PROGRESS
protected final FaxToMailConfiguration config
protected final RessourceClassLoader resourceLoader
protected FaxToMailTopiaApplicationContext topiaApplicationContext
protected final jaxx.runtime.swing.session.SwingSession swingSession
protected final org.nuiton.jaxx.application.swing.util.ApplicationErrorHelper errorHelper
protected FaxToMailScreen screen
protected Locale locale
protected boolean busy
true when a blocking action is running).protected boolean hideBody
protected boolean actionInProgress
protected final Set<UIMessageNotifier> messageNotifiers
protected FaxToMailUser currentUser
protected MailFolder currentMailFolder
protected org.nuiton.util.pagination.PaginationParameter currentPaginationParameter
protected DemandeUIModel currentEmail
protected List<MailFolder> expandedFolders
protected SearchUIModel search
protected List<FaxToMailUser> faxtomailUserCache
protected List<WaitingState> waitingStateCache
protected List<DemandType> demandTypeCache
protected FaxToMailUIContext(FaxToMailConfiguration config)
public static FaxToMailUIContext newContext(FaxToMailConfiguration config)
public static FaxToMailUIContext 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 org.nuiton.jaxx.application.ApplicationConfiguration 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()
protected void initContextCache()
protected void autologinUser()
protected String getLoggedInUsername()
public void open()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic FaxToMailServiceContext newServiceContext()
public FaxToMailConfiguration getConfig()
protected void saveContextToConfig()
public MainUI getMainUI()
getMainUI in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic void setMainUI(MainUI mainUI)
public JFrame getSecondaryFrame()
public void setSecondaryFrame(JFrame secondaryFrame)
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 jaxx.runtime.swing.session.SwingSession getSwingSession()
public FaxToMailScreen getScreen()
public void setScreen(FaxToMailScreen 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 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 Color getColorBlockingLayer()
getColorBlockingLayer in interface org.nuiton.jaxx.application.swing.ApplicationUIContextpublic org.nuiton.jaxx.application.swing.action.ApplicationActionFactory 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 RessourceClassLoader getResourceLoader()
public Locale getLocale()
public void setLocale(Locale locale)
public FaxToMailUser getCurrentUser()
public void setCurrentUser(FaxToMailUser currentUser)
public MailFolder getCurrentMailFolder()
public void setCurrentMailFolder(MailFolder currentMailFolder)
public org.nuiton.util.pagination.PaginationParameter getCurrentPaginationParameter()
public void setCurrentPaginationParameter(org.nuiton.util.pagination.PaginationParameter currentPaginationParameter)
public DemandeUIModel getCurrentEmail()
public void setCurrentEmail(DemandeUIModel currentEmail)
public List<MailFolder> getExpandedFolders()
public void setExpandedFolders(List<MailFolder> expandedFolders)
public SearchUIModel getSearch()
public void setSearch(SearchUIModel search)
public List<FaxToMailUser> getFaxtomailUserCache()
public void setFaxtomailUserCache(List<FaxToMailUser> faxtomailUserCache)
public List<WaitingState> getWaitingStateCache()
public void setWaitingStateCache(List<WaitingState> waitingStateCache)
public List<DemandType> getDemandTypeCache()
public void setDemandTypeCache(List<DemandType> demandTypeCache)
Copyright © 2014 CodeLutin. All rights reserved.