gov.nasa.pds.registry.ui.client
Class Registry_ui

java.lang.Object
  extended by gov.nasa.pds.registry.ui.client.Registry_ui
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint

public class Registry_ui
extends Object
implements com.google.gwt.core.client.EntryPoint

Entry point for the registry front end application. Front end currently supplies browse, filter, and sort capabilities around registered products.

Author:
jagander

Field Summary
protected  com.google.gwt.gen2.table.event.client.RowSelectionHandler associationClickHander
           
protected  com.google.gwt.user.client.ui.Button associationCloseButton
           
protected  com.google.gwt.user.client.ui.DialogBox associationDetailsBox
           
protected  com.google.gwt.user.client.ui.HTML associationPlaceholder
           
protected  com.google.gwt.gen2.table.client.ScrollTable associationScrollTable
           
protected  com.google.gwt.user.client.ui.VerticalPanel associationVPanel
           
protected  com.google.gwt.user.client.ui.Button closeButton
          The close button used by the dialogBox to close the dialog.
protected  com.google.gwt.user.client.ui.VerticalPanel dialogVPanel
          A panel used for layout within the dialogBox
static int PAGE_SIZE
          Default number of records for each page
protected  com.google.gwt.gen2.table.client.PagingScrollTable<ViewProduct> pagingScrollTable
          The PagingScrollTable.
protected  com.google.gwt.user.client.ui.DialogBox productDetailsBox
          The dialog box that displays product details.
protected  com.google.gwt.user.client.ui.HTML recordCountContainer
           
protected  List<ViewAssociation> tempAssociations
           
 
Constructor Summary
Registry_ui()
           
 
Method Summary
static Registry_ui get()
           
 com.google.gwt.gen2.table.client.CachedTableModel<ViewProduct> getCachedTableModel()
           
 com.google.gwt.gen2.table.client.FixedWidthGrid getDataTable()
           
 com.google.gwt.gen2.table.client.FixedWidthFlexTable getFooterTable()
           
 com.google.gwt.gen2.table.client.FixedWidthFlexTable getHeaderTable()
           
protected  com.google.gwt.gen2.table.override.client.FlexTable getLayout()
           
static String getNice(String string, Boolean capitalize, Boolean replaceUnderscore)
          Get a display version of an underscore separated string.
 com.google.gwt.gen2.table.client.PagingScrollTable<ViewProduct> getPagingScrollTable()
           
 com.google.gwt.gen2.table.client.AbstractScrollTable getScrollTable()
           
 com.google.gwt.gen2.table.client.DefaultTableDefinition<ViewProduct> getTableDefinition()
           
 ProductTableModel getTableModel()
           
protected  List<ViewAssociation> getTempAssociations()
           
 void initFilterOptions()
          Initialize the filter and search options for the table data.
 void initPaging()
          Initialize the paging widget.
protected  void initTable()
          Initialize scroll table and behaviors.
 void onModuleLoad()
          This is the entry point method that assembles the view and kicks off the RPC.
protected  void onModuleLoaded()
          Action to take once the module has loaded.
protected  void setTempAssociations(List<ViewAssociation> tempAssociations)
           
static String toSeparatedString(List<?> list)
          Convert a list to a comma separated string.
static String toUpper(String string)
          Uppercase each word of a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGE_SIZE

public static final int PAGE_SIZE
Default number of records for each page

See Also:
Constant Field Values

productDetailsBox

protected final com.google.gwt.user.client.ui.DialogBox productDetailsBox
The dialog box that displays product details.


associationDetailsBox

protected final com.google.gwt.user.client.ui.DialogBox associationDetailsBox

associationClickHander

protected com.google.gwt.gen2.table.event.client.RowSelectionHandler associationClickHander

associationScrollTable

protected com.google.gwt.gen2.table.client.ScrollTable associationScrollTable

tempAssociations

protected List<ViewAssociation> tempAssociations

dialogVPanel

protected final com.google.gwt.user.client.ui.VerticalPanel dialogVPanel
A panel used for layout within the dialogBox


associationVPanel

protected final com.google.gwt.user.client.ui.VerticalPanel associationVPanel

associationPlaceholder

protected final com.google.gwt.user.client.ui.HTML associationPlaceholder

closeButton

protected com.google.gwt.user.client.ui.Button closeButton
The close button used by the dialogBox to close the dialog.


associationCloseButton

protected com.google.gwt.user.client.ui.Button associationCloseButton

recordCountContainer

protected com.google.gwt.user.client.ui.HTML recordCountContainer

pagingScrollTable

protected com.google.gwt.gen2.table.client.PagingScrollTable<ViewProduct> pagingScrollTable
The PagingScrollTable.

Constructor Detail

Registry_ui

public Registry_ui()
Method Detail

get

public static Registry_ui get()
Returns:
this instance

getDataTable

public com.google.gwt.gen2.table.client.FixedWidthGrid getDataTable()
Returns:
the data table. This is the underlying grid for displaying data, not just a data model.

getFooterTable

public com.google.gwt.gen2.table.client.FixedWidthFlexTable getFooterTable()
Returns:
the footer table. In this case, it is a repeat of the header row but is not sortable.

getHeaderTable

public com.google.gwt.gen2.table.client.FixedWidthFlexTable getHeaderTable()
Returns:
the header table. This is the header row of the data table. It is separate from the data table itself so that it does not scroll with the data. It also supports the table sorting.

getScrollTable

public com.google.gwt.gen2.table.client.AbstractScrollTable getScrollTable()
Returns:
the scroll table.

getCachedTableModel

public com.google.gwt.gen2.table.client.CachedTableModel<ViewProduct> getCachedTableModel()
Returns:
the cached table model

getPagingScrollTable

public com.google.gwt.gen2.table.client.PagingScrollTable<ViewProduct> getPagingScrollTable()
Returns:
the PagingScrollTable

getTableDefinition

public com.google.gwt.gen2.table.client.DefaultTableDefinition<ViewProduct> getTableDefinition()
Returns:
the table definition of columns

getTableModel

public ProductTableModel getTableModel()
Returns:
the table model

getLayout

protected com.google.gwt.gen2.table.override.client.FlexTable getLayout()

getTempAssociations

protected List<ViewAssociation> getTempAssociations()

setTempAssociations

protected void setTempAssociations(List<ViewAssociation> tempAssociations)

onModuleLoad

public void onModuleLoad()
This is the entry point method that assembles the view and kicks off the RPC.

Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint

initFilterOptions

public void initFilterOptions()
Initialize the filter and search options for the table data.


initTable

protected void initTable()
Initialize scroll table and behaviors.


initPaging

public void initPaging()
Initialize the paging widget.


onModuleLoaded

protected void onModuleLoaded()
Action to take once the module has loaded.


getNice

public static String getNice(String string,
                             Boolean capitalize,
                             Boolean replaceUnderscore)
Get a display version of an underscore separated string. This is useful for the slot display names. Note that this is copied from the pds-utils project, StrUtils. It was copied wholesale due to dependency issues in that class and the normal functioning of GWT client classes.


toUpper

public static String toUpper(String string)
Uppercase each word of a string. Note that this is copied from the pds-utils project, StrUtils. It was copied wholesale due to dependency issues in that class and the normal functioning of GWT client classes.


toSeparatedString

public static String toSeparatedString(List<?> list)
Convert a list to a comma separated string. Note that this is copied from the pds-utils project, StrUtils. It was copied wholesale due to dependency issues in that class and the normal functioning of GWT client classes.



Copyright © 2010-2011 Planetary Data System. All Rights Reserved.