public class DirectoryChoiceDialogSequence extends AlertDialogSequence<comingle.comms.message.Message>
Constructor and Description |
---|
DirectoryChoiceDialogSequence(android.app.Activity activity,
int adminPort,
java.lang.String defaultReqCode,
java.lang.String localDeviceId,
int row_res_id,
int name_res_id,
int loc_res_id,
int ip_addr_res_id)
Basic Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDirectoryChosenListener(DirectoryChosenListener<comingle.comms.message.Message> l)
Add the given directory chosen listener.
|
boolean |
directoryChosen()
Returns true if directory has been chosen
|
AlertDialogSequence<comingle.comms.message.Message> |
getDirectorySetupSequence()
Based on the chosen directory, return the corresponding directory setup sequence.
|
void |
removeDirectoryChosenListener(DirectoryChosenListener<comingle.comms.message.Message> l)
Remove the given directory chosen listener.
|
void |
run()
Run the directory choice dialog, invoke the directory chosen listeners, and finally run the corresponding
directory setup sequence of the chosen directory.
|
addDialog, addDialogs, addDialogs
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public DirectoryChoiceDialogSequence(android.app.Activity activity, int adminPort, java.lang.String defaultReqCode, java.lang.String localDeviceId, int row_res_id, int name_res_id, int loc_res_id, int ip_addr_res_id)
activity
- the activity that embeds the dialog boxes.adminPort
- the admin port number used by the constructed directory.defaultReqCode
- the default request code of the directory.localDeviceId
- the device ID of the application that runs this dialog sequence.row_res_id
- Resource ID of row view for each node entry.name_res_id
- Resource ID of name field for a node.loc_res_id
- Resource ID of location field for a node.ip_addr_res_id
- Resource ID of address field for a node.public boolean directoryChosen()
public AlertDialogSequence<comingle.comms.message.Message> getDirectorySetupSequence()
public void addDirectoryChosenListener(DirectoryChosenListener<comingle.comms.message.Message> l)
l
- the directory chosen listener.public void removeDirectoryChosenListener(DirectoryChosenListener<comingle.comms.message.Message> l)
l
- the directory chosen listener to remove.public void run()
run
in interface java.lang.Runnable
run
in class AlertDialogSequence<comingle.comms.message.Message>