public class GCubePanel
extends com.google.gwt.user.client.ui.VerticalPanel
implements com.google.gwt.user.client.ui.HasCaption
GCubePanel is the wrapper panel gCube Portlet that lays all of its widgets out in a single vertical column.com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledcom.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant, com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstantcom.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_HEIGHT
static header height
|
static String |
IMAGE_HELP
help image
|
static String |
IMAGE_TOOLTIP_EN
help tooltip
|
| Constructor and Description |
|---|
GCubePanel(String helpURL)
Header constructor with Caption disanabled
|
GCubePanel(String caption,
String helpURL)
Header constructor with Caption enables
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeaderWidget(com.google.gwt.user.client.ui.Widget toAdd)
Use it to add your custom widgets to the header, no css styles need to be defined for your widgets
|
void |
clear() |
void |
enableHeader(boolean enable)
Sets whether the gCube Header is visible.
|
String |
getCaption()
Gets this widget's caption.
|
void |
setCaption(String caption)
Sets this widget's caption.
|
add, getHorizontalAlignment, getVerticalAlignment, insert, insert, onEnsureDebugId, remove, setHorizontalAlignment, setVerticalAlignmentgetBody, getSpacing, getTable, setBorderWidth, setCellHeight, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setCellWidth, setSpacingadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String IMAGE_HELP
public static final String IMAGE_TOOLTIP_EN
public static final int HEADER_HEIGHT
public GCubePanel(String caption, String helpURL)
caption - the caption to show on the headerhelpURL - the URL of the User's Guide for this Portletpublic GCubePanel(String helpURL)
helpURL - the URL of the User's Guide for this Portletpublic void addHeaderWidget(com.google.gwt.user.client.ui.Widget toAdd)
toAdd - the widget you want to addpublic void enableHeader(boolean enable)
enable - true to show the header, false
to hide itpublic String getCaption()
getCaption in interface com.google.gwt.user.client.ui.HasCaptionpublic void setCaption(String caption)
setCaption in interface com.google.gwt.user.client.ui.HasCaptioncaption - the new caption.public void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.PanelCopyright © 2015. All Rights Reserved.