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

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.Composite
              extended by gov.nasa.pds.registry.ui.client.Tab
                  extended by gov.nasa.pds.registry.ui.client.Products
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class Products
extends Tab

A tab to browse the registered products.

Author:
jagander, hyunlee

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.pds.registry.ui.client.Tab
Tab.Images, Tab.TabInfo
 
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
 
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
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
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Products()
           
 
Method Summary
static Products 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()
           
 void getProductDetail(int rowIndex)
           
 com.google.gwt.gen2.table.client.AbstractScrollTable getScrollTable()
           
 com.google.gwt.gen2.table.client.DefaultTableDefinition<ViewProduct> getTableDefinition()
           
 ProductTableModel getTableModel()
           
protected  List<ViewAssociation> getTempAssociations()
           
static Tab.TabInfo init()
           
 void initFilterOptions()
          Initialize the filter and search options for the table data.
protected  void initializeInputs()
           
 void initPaging()
          Initialize the paging widget.
protected  void initTable()
          Initialize scroll table and behaviors.
protected  void onModuleLoaded()
          Action to take once the module has loaded.
 void onShow()
          Called just after this tab is shown.
protected  void refreshTable()
           
protected  void reloadData()
           
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 gov.nasa.pds.registry.ui.client.Tab
onHide
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Products

public Products()
Method Detail

init

public static Tab.TabInfo init()

get

public static Products 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)

initFilterOptions

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


reloadData

protected void reloadData()

initializeInputs

protected void initializeInputs()

refreshTable

protected void refreshTable()

initTable

protected void initTable()
Initialize scroll table and behaviors.


getProductDetail

public void getProductDetail(int rowIndex)

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.


onShow

public void onShow()
Description copied from class: Tab
Called just after this tab is shown.

Overrides:
onShow in class Tab


Copyright © 2010–2014 Planetary Data System. All rights reserved.