org.gcube.portlets.user.results.client.panels
Class HeaderBar

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 org.gcube.portlets.user.results.client.panels.HeaderBar
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 HeaderBar
extends com.google.gwt.user.client.ui.Composite

HeaderBar class is the top bar component of the UI

Version:
April 2011 (1.0)
Author:
Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it

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
 
Field Summary
static String IMAGE_HELP
          help image
static String IMAGE_TOOLTIP_EN
          help tooltip
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
HeaderBar(Controller control)
          Constructor
 
Method Summary
 com.google.gwt.user.client.ui.HorizontalPanel cloneSwitchPagePanel()
          clone the page switchpanel to place it also at the bottom of the page
 void enableMovePageresults(boolean enable)
           
 void enableSaveButton(boolean enabled)
           
 void enableSaveQuery(Controller control, boolean enable)
           
 String getCurrentBasket()
           
 com.google.gwt.user.client.Command getNullCommand()
          temporary command
 void hideFirstPageButton()
          Hide the next botton in the UI
 void hideNextButton()
          Hide the next botton in the UI
 void hidePrevButton()
          Hide the previous botton in the UI
 void setCurrentBasket(String html)
           
 void setPageDisplayer(String html)
          changes the pages label in the UI : e.g.
 void showFirstPageButton()
          Shows the previous botton in the UI
 void showNextButton()
          Shows the next botton in the UI
 void showPrevButton()
          Shows the previous botton in the UI
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
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

IMAGE_HELP

public static final String IMAGE_HELP
help image


IMAGE_TOOLTIP_EN

public static final String IMAGE_TOOLTIP_EN
help tooltip

See Also:
Constant Field Values
Constructor Detail

HeaderBar

public HeaderBar(Controller control)
Constructor

Parameters:
c - the controller instance for this UI component
Method Detail

setPageDisplayer

public void setPageDisplayer(String html)
changes the pages label in the UI : e.g. Page x of y

Parameters:
currentPage - .
totalPages - .

showPrevButton

public void showPrevButton()
Shows the previous botton in the UI


showFirstPageButton

public void showFirstPageButton()
Shows the previous botton in the UI


showNextButton

public void showNextButton()
Shows the next botton in the UI


hidePrevButton

public void hidePrevButton()
Hide the previous botton in the UI


hideNextButton

public void hideNextButton()
Hide the next botton in the UI


hideFirstPageButton

public void hideFirstPageButton()
Hide the next botton in the UI


getNullCommand

public com.google.gwt.user.client.Command getNullCommand()
temporary command

Returns:
the command instance

enableSaveButton

public void enableSaveButton(boolean enabled)

getCurrentBasket

public String getCurrentBasket()

setCurrentBasket

public void setCurrentBasket(String html)

cloneSwitchPagePanel

public com.google.gwt.user.client.ui.HorizontalPanel cloneSwitchPagePanel()
clone the page switchpanel to place it also at the bottom of the page

Returns:
a new switchpanel to be inserted in the flex table

enableMovePageresults

public void enableMovePageresults(boolean enable)

enableSaveQuery

public void enableSaveQuery(Controller control,
                            boolean enable)
Parameters:
control - the controller instance


Copyright © 2013. All Rights Reserved.