org.eaglei.datatools.client.ui
Class MainPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.CellPanel
                      extended by com.google.gwt.user.client.ui.HorizontalPanel
                          extended by org.eaglei.datatools.client.ui.MainPanel
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasAlignment, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasVerticalAlignment, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.InsertPanel, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>, ClientRepositoryToolsManager.SessionListener

public class MainPanel
extends com.google.gwt.user.client.ui.HorizontalPanel
implements ClientRepositoryToolsManager.SessionListener


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant
 
Field Summary
static com.google.gwt.user.client.ui.VerticalPanel dataPanel
           
static java.lang.String DATATOOLS_CONTROLS
           
static java.lang.String DATATOOLS_FILTER
           
static org.eaglei.model.EIClass eClass
           
static FilterPanel filterPanel
           
static EagleiGlassPane glasspane
           
static java.lang.String instanceUri
           
static org.eaglei.model.EIURI labUri
           
static LeftListPanel listPanel
           
static java.lang.String userUri
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT
 
Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP
 
Constructor Summary
MainPanel()
           
 
Method Summary
static void bulkOperation(WorkFlowAction action)
          all the bulk workflow operation happens here
static void copyResource()
          This is called in response to the 'Copy Resource' option selected from the Filter/Control Panel
 void doClaimGrid(int row)
           
 void doDeleteGrid(int row)
           
 void doEditGrid(int row)
           
 void doFilterPanelGoButton(java.lang.String resourceFilterStr, java.lang.String labFilterStr, java.lang.String statusFilterStr)
           
 void doFilterPanelGoButtonWhenRefresh(java.lang.String resourceFilterStr, java.lang.String labFilterStr, java.lang.String statusFilterStr)
           
 void doLabTable(int row, int column, java.lang.String labUriStr)
          This method is called in response to the clicks on the Laboratory Panel
 void doSubLinksOfResource(int row, int column)
           
 void doViewGrid(int row, java.lang.String instancetype)
           
 void doWithdrawGrid(int row)
           
static void editResource()
          This is called in response to the 'Edit' option selected from the Filter/Control Panel
 void filterGrid(java.util.List<org.eaglei.model.EIInstance> instances, FilterPanel filterPanel, java.lang.String label)
          This method is called in response to the filter options selected by the user on the FilterPanel
 java.lang.String getTokenBeforeEdit()
           
 void handleLabs()
          This is called when the My Laboratories link is clicked
static void handleLoginRequired()
           
static void handleResources()
          This is called when the My Resources link is clicked
 void onLogIn(java.lang.String username, java.lang.String userUri)
           
 void onLogOut()
           
static void publish()
          Publish the resource
static void returnToDraft()
          Return the resource to draft
static void saveForm()
           
static void sendToCuration()
          Send the resource to Curation
 void setTokenBeforeEdit(java.lang.String tokenBeforeEdit)
           
static void withdraw()
          Withdraw the resource
 
Methods inherited from class com.google.gwt.user.client.ui.HorizontalPanel
add, getHorizontalAlignment, getVerticalAlignment, insert, onEnsureDebugId, remove, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from class com.google.gwt.user.client.ui.CellPanel
getBody, getSpacing, getTable, setBorderWidth, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setSpacing
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Field Detail

listPanel

public static LeftListPanel listPanel

dataPanel

public static com.google.gwt.user.client.ui.VerticalPanel dataPanel

filterPanel

public static FilterPanel filterPanel

userUri

public static java.lang.String userUri

instanceUri

public static java.lang.String instanceUri

DATATOOLS_FILTER

public static java.lang.String DATATOOLS_FILTER

DATATOOLS_CONTROLS

public static java.lang.String DATATOOLS_CONTROLS

eClass

public static org.eaglei.model.EIClass eClass

glasspane

public static EagleiGlassPane glasspane

labUri

public static org.eaglei.model.EIURI labUri
Constructor Detail

MainPanel

public MainPanel()
Method Detail

handleLabs

public void handleLabs()
This is called when the My Laboratories link is clicked


handleResources

public static void handleResources()
This is called when the My Resources link is clicked


filterGrid

public void filterGrid(java.util.List<org.eaglei.model.EIInstance> instances,
                       FilterPanel filterPanel,
                       java.lang.String label)
This method is called in response to the filter options selected by the user on the FilterPanel

Parameters:
instances -
filterPanel -
label - - Text of the resource clicked

sendToCuration

public static void sendToCuration()
Send the resource to Curation


returnToDraft

public static void returnToDraft()
Return the resource to draft


withdraw

public static void withdraw()
Withdraw the resource


publish

public static void publish()
Publish the resource


bulkOperation

public static void bulkOperation(WorkFlowAction action)
all the bulk workflow operation happens here

Parameters:
state -
action -

editResource

public static void editResource()
This is called in response to the 'Edit' option selected from the Filter/Control Panel


saveForm

public static void saveForm()

copyResource

public static void copyResource()
This is called in response to the 'Copy Resource' option selected from the Filter/Control Panel


onLogOut

public void onLogOut()
Specified by:
onLogOut in interface ClientRepositoryToolsManager.SessionListener

handleLoginRequired

public static void handleLoginRequired()

onLogIn

public void onLogIn(java.lang.String username,
                    java.lang.String userUri)
Specified by:
onLogIn in interface ClientRepositoryToolsManager.SessionListener

doSubLinksOfResource

public void doSubLinksOfResource(int row,
                                 int column)

doLabTable

public void doLabTable(int row,
                       int column,
                       java.lang.String labUriStr)
This method is called in response to the clicks on the Laboratory Panel

Parameters:
row -
column -

doFilterPanelGoButton

public void doFilterPanelGoButton(java.lang.String resourceFilterStr,
                                  java.lang.String labFilterStr,
                                  java.lang.String statusFilterStr)

doFilterPanelGoButtonWhenRefresh

public void doFilterPanelGoButtonWhenRefresh(java.lang.String resourceFilterStr,
                                             java.lang.String labFilterStr,
                                             java.lang.String statusFilterStr)

doViewGrid

public void doViewGrid(int row,
                       java.lang.String instancetype)

doClaimGrid

public void doClaimGrid(int row)

doDeleteGrid

public void doDeleteGrid(int row)

doWithdrawGrid

public void doWithdrawGrid(int row)

doEditGrid

public void doEditGrid(int row)

getTokenBeforeEdit

public java.lang.String getTokenBeforeEdit()

setTokenBeforeEdit

public void setTokenBeforeEdit(java.lang.String tokenBeforeEdit)


Copyright © 2009-2010 Eagle-I. All Rights Reserved.