|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mayo.bsi.ngsportal.client.NGSPortal
public class NGSPortal
Entry point classes define onModuleLoad().
| Field Summary | |
|---|---|
static int |
kCancelFollowUp
Command to execute if caller clicks on the Cancel button |
static int |
kLogLevelDebug
Normal Debugging Log level |
static int |
kLogLevelLogAllMessages
Log level for the most detailed and normally never want to see it information |
static int |
kLogLevelLogDeepDebug
Debugging Log level when want to see almost all information |
static int |
kLogLevelLogInfo
Normal Log level |
static int |
kNoSaveFollowUp
Command to execute if caller clicks on the Don't Save button |
static int |
kNumFollowUps
Number of follow up commands to pass in |
static int |
kSaveFollowUp
Command to execute if caller clicks on the Save button |
static int |
kServerWaitTime
Amount of time, in milliseconds, to wait for the server before putting up a progress dialog |
| Constructor Summary | |
|---|---|
NGSPortal()
|
|
| Method Summary | |
|---|---|
void |
didLogin(ConnectionResponse result)
Handle the servlet's response to a login attempt |
void |
displayRun(RunData result,
String piName)
Load the given run into the RunEditPanel |
static void |
formfocus(String id)
Javascript to give an ID'd element in a form the focus |
static com.google.gwt.user.client.ui.Widget |
getBigSpacer()
Return a big spacer to divide up sections |
String |
getLanID()
|
NGSPortalServiceAsync |
getNgsPortalService()
Get the connection to the Servlet |
ProjectExplorerPage |
getProjectExplorerPage()
|
void |
getRun(String piName,
String runID)
Get a run from the server, that the user has access to, for the given PI, and populate the RunEditPanel with the information about that Run and PI |
void |
getSamples(String piName,
String runID,
String appType,
com.google.gwt.user.client.rpc.AsyncCallback<List<SampleInfo>> callback)
Get the samples from the server, that the user has access to, for the given run and PI |
static com.google.gwt.user.client.ui.Widget |
getSpacer()
Return a spacer to keep things from being too close |
String |
getUsersName()
|
boolean |
handleFileLocationListResults(String callback,
List<FileLocation> result)
Handle the results of a call to the server that returns a list of FileLocation |
boolean |
handleSampleInfoListResults(String callback,
List<SampleInfo> result)
Handle the results of a call to the server that returns a list of SampleInfo |
boolean |
handleStringListResults(String callback,
List<String> result)
Handle the results of a call to the server that returns a list of Strings |
static boolean |
isEmpty(String tested)
Utility routine for the common String test |
void |
LogData(String newText,
int level)
Routine to Log data, and display it for the users. |
void |
lostConnection()
Routine that handles regaining a connection to the servlet |
static String |
objectToString(Object theObject)
Utility routine to turn a potentially null Object into an empty string (if null) or else into the toString of the Object |
void |
onClick(com.smartgwt.client.widgets.events.ClickEvent event)
|
void |
onFailure(Throwable caught)
|
void |
onModuleLoad()
This is the entry point method. |
void |
onSuccess(ConnectionResponse response)
Called after the client has received encryption information from the server |
void |
setRun(String piName,
String runID,
RunData runData,
List<SampleInfo> samples,
int[] deletedIDs,
com.google.gwt.user.client.Command followUp)
Update all the metadata for a given run, owned by a given PI |
static void |
showAlert(String title,
String message,
com.google.gwt.user.client.Command followUp)
Show a Alert with a title and message, and possible a command to execute when the alert is dismissed |
void |
showAnalysisResults(List<AnalysisInfo> results)
Clear out the old analysis results and then display the new results from the server. |
static void |
showSaveAlert(String title,
String message,
com.google.gwt.user.client.Command[] followUps)
Show a Save Alert with a title, a message, and three different commands to execute depending upon how the user dismisses the alert |
static void |
showWarning(String title,
String message,
String[] actionButtonTexts,
com.google.gwt.user.client.Command[] actions)
Show a Alert with a title and message, and possible a set of commands to execute when the alert is dismissed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int kLogLevelLogInfo
public static final int kLogLevelDebug
public static final int kLogLevelLogDeepDebug
public static final int kLogLevelLogAllMessages
public static final int kServerWaitTime
public static final int kSaveFollowUp
public static final int kNoSaveFollowUp
public static final int kCancelFollowUp
public static final int kNumFollowUps
| Constructor Detail |
|---|
public NGSPortal()
| Method Detail |
|---|
public void onModuleLoad()
onModuleLoad in interface com.google.gwt.core.client.EntryPointpublic NGSPortalServiceAsync getNgsPortalService()
public void onClick(com.smartgwt.client.widgets.events.ClickEvent event)
onClick in interface com.smartgwt.client.widgets.events.ClickHandlerpublic void onFailure(Throwable caught)
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<ConnectionResponse>public void onSuccess(ConnectionResponse response)
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<ConnectionResponse>
public static final void showWarning(String title,
String message,
String[] actionButtonTexts,
com.google.gwt.user.client.Command[] actions)
title - Title of the dialog.message - Message of the dialog.actionButtonTexts - Text to be used for action buttons.actions - Actions that correspond to the action buttons.
public static final void showAlert(String title,
String message,
com.google.gwt.user.client.Command followUp)
title - title for the Alert boxmessage - Message for the userfollowUp - Command to execute after the user dismisses the alert, or null if no command
public static final void showSaveAlert(String title,
String message,
com.google.gwt.user.client.Command[] followUps)
title - title for the Alert boxmessage - Message for the userfollowUps - Array of Commands, one of which will be executed depending on how the user
dismisses the Alertpublic static final com.google.gwt.user.client.ui.Widget getSpacer()
public static final com.google.gwt.user.client.ui.Widget getBigSpacer()
public void LogData(String newText,
int level)
newText - Text to add to the Log TextFieldlevel - Log level. The lower the level, the more likely it is to get logged.public void showAnalysisResults(List<AnalysisInfo> results)
results - Results of the latest search
public boolean handleSampleInfoListResults(String callback,
List<SampleInfo> result)
callback - String detailing which function was calledresult - Results of the function call, a list of SampleInfo
public boolean handleStringListResults(String callback,
List<String> result)
callback - String detailing which function was calledresult - Results of the function call, a list of Strings
public boolean handleFileLocationListResults(String callback,
List<FileLocation> result)
callback - String detailing which function was calledresult - Results of the function call, a list of Strings
public void displayRun(RunData result,
String piName)
result - Run to loadpiName - Name of the PI, so the Panel can load the samples for the run
public void getRun(String piName,
String runID)
piName - Name of the PI of interestrunID - Name of the Run of interest
public void setRun(String piName,
String runID,
RunData runData,
List<SampleInfo> samples,
int[] deletedIDs,
com.google.gwt.user.client.Command followUp)
piName - The Last Name, First Name of the PI to look forrunID - The run ID we're interested inrunData - The updated run metadatasamples - A list of all the samples with changes, can be empty, can not be nulldeletedIDs - Array of the ids of Samples that were deleted, null if none were deletedfollowUp - Command to execute if the save is successful
public void getSamples(String piName,
String runID,
String appType,
com.google.gwt.user.client.rpc.AsyncCallback<List<SampleInfo>> callback)
piName - Name of the PI of interestrunID - Name of the Run of interestappType - If not empty or null, The type of application to returncallback - Callback to be called by the server with the resultpublic void lostConnection()
public void didLogin(ConnectionResponse result)
result - The Connection response returned by the server, null if locin failedpublic static final boolean isEmpty(String tested)
tested - String to test
public static final String objectToString(Object theObject)
theObject - Object to convert to a String
public ProjectExplorerPage getProjectExplorerPage()
public static void formfocus(String id)
id - ID of the elementpublic String getLanID()
public String getUsersName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||