org.gcube.portlets.user.reportgenerator.client
Class TitleBar

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.reportgenerator.client.TitleBar
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 TitleBar
extends com.google.gwt.user.client.ui.Composite

TitleBar class is the top top bar component of the UI

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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
TitleBar(Presenter c)
          Constructor
 
Method Summary
 void addWorkflowButtons(boolean isEdit)
          add the buttons well visible on the top
 com.google.gwt.user.client.Command getNullCommand()
          temporary command
 SectionSwitchPanel getSectionSwitchPanel()
           
 void setEditedOnBy(Date date, String username)
          changes the template name label in the UI
 void setTemplateName(String name)
          changes the template name label in the UI
 
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
 

Constructor Detail

TitleBar

public TitleBar(Presenter c)
Constructor

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

addWorkflowButtons

public void addWorkflowButtons(boolean isEdit)
add the buttons well visible on the top

Parameters:
isEdit -

setTemplateName

public void setTemplateName(String name)
changes the template name label in the UI

Parameters:
name - .

setEditedOnBy

public void setEditedOnBy(Date date,
                          String username)
changes the template name label in the UI

Parameters:
username - .
date - .

getNullCommand

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

Returns:
the command instance

getSectionSwitchPanel

public SectionSwitchPanel getSectionSwitchPanel()
Returns:
SectionSwitchPanel


Copyright © 2014. All Rights Reserved.