|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.client.controller.DialogController
public class DialogController
Control dialog alert flow on the client using the client's controller and DisplayManager. This class is just a controller. Refer to DisplayManager implementation in order to manage the alert diplaying logic.
Nested Class Summary | |
---|---|
protected class |
DialogController.FirstSyncDialogOption
Container for the first sync dialog options |
protected class |
DialogController.ResetDirectionDialogOption
Dialog option related to the refresh direction to be used. |
protected class |
DialogController.ResetTypeDialogOption
Container for the reset type dialog option |
Field Summary | |
---|---|
static java.lang.String |
TAG_LOG
TAG to be displayed into log messages |
Constructor Summary | |
---|---|
DialogController(DisplayManager displayManager,
Controller controller)
Public constructor |
Method Summary | |
---|---|
boolean |
askAcceptDenyQuestion(java.lang.String message,
boolean defaultyes)
Prompt an alert with 2 choices on the screen |
boolean |
askYesNoQuestion(java.lang.String message,
boolean defaultyes)
Not implemented. |
boolean |
askYesNoQuestion(java.lang.String message,
boolean defaultyes,
int timeToWait)
Not implemented. |
boolean |
promptNext(java.lang.String message)
Prompt a message alert on the screen |
void |
resumeLastFirstSyncDialog(Screen screen)
Resumes the last fisrt sync alert dialog if it was paused before the user answered. |
void |
resumeLastRefreshTypeDialog(Screen screen)
Resumes the last refresh type alert dialog if it was paused before the user answered. |
void |
showFirstSyncDialog(Screen screen,
AppSyncSource[] appSourceList,
java.lang.String syncType,
java.util.Vector filteredSources,
boolean refresh,
int direction,
int delay,
boolean fromOutside,
int questionCounter,
int sourceIndex)
Show the first sync alert dialogs for all the sources that are listed into the given appSourceList array. |
void |
showMessage(Screen screen,
java.lang.String language)
Show an alert message on the screen |
void |
showMessage(Screen screen,
java.lang.String language,
int delay)
Show an alert message on the screen for a given amount of time |
void |
showRefreshDirectionDialog(Screen screen)
Use the localization field to build the reset direction alert dialog. |
void |
showRefreshTypeDialog(Screen screen,
int direction)
Use the localization field to build the reset type alert dialog that use the DisplayManager client implementation to ask the user whose sources must be refreshed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_LOG
Constructor Detail |
---|
public DialogController(DisplayManager displayManager, Controller controller)
displayManager
- the DisplayManager object to be used.controller
- Method Detail |
---|
public boolean promptNext(java.lang.String message)
message
- is the String to be displayed on the screen
public boolean askYesNoQuestion(java.lang.String message, boolean defaultyes)
message
- the message to be displayeddefaultyes
- the default parameter in the selection
public boolean askAcceptDenyQuestion(java.lang.String message, boolean defaultyes)
message
- the message to be displayeddefaultyes
- the default parameter in the selection
public boolean askYesNoQuestion(java.lang.String message, boolean defaultyes, int timeToWait)
message
- the message to be displayeddefaultyes
- the default parameter in the selectiontimeToWait
- the time to wait before dismiss the alert
public void showMessage(Screen screen, java.lang.String language)
screen
- the dialog alert owner Screenlanguage
- the message to be dispalyedpublic void showMessage(Screen screen, java.lang.String language, int delay)
screen
- the dialog alert owner Screenlanguage
- the message to be dispalyeddelay
- the duration of the message in millisecondspublic void showRefreshDirectionDialog(Screen screen)
screen
- the dialog alert owner Screenpublic void showRefreshTypeDialog(Screen screen, int direction)
screen
- the dialog alert owner Screenint
- the refresh direction for the selected sources.public void resumeLastRefreshTypeDialog(Screen screen)
screen
- the dialog alert owner Screenpublic void resumeLastFirstSyncDialog(Screen screen)
screen
- the dialog alert owner Screenpublic void showFirstSyncDialog(Screen screen, AppSyncSource[] appSourceList, java.lang.String syncType, java.util.Vector filteredSources, boolean refresh, int direction, int delay, boolean fromOutside, int questionCounter, int sourceIndex)
appSourceList
- the list of appSyncSourcessyncType
- the String representation for the sync type
(manual...)filteredSources
- the sources Vector to be updated in case the
user select to sync nowrefresh
- specifies if this sync is a refreshdirection
- in case of refresh, this is the direction (client to
server or server to client)delay
- request the sync scheduler to be initiate the sync after
the given amount of millisecondsfromOutside
- used by the sync scheduler to manage the incoming
sync request from outside if truequestionCounter
- the number of question to be displayed to the
user. This number depends by the number of sources that have a
warning messgae to be displayed at the first syncsourceIndex
- the sync source index source which this dialog
alert is related.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |