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.DebugIdImplEnabled
com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant, com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
com.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, setVerticalAlignment
getBody, getSpacing, getTable, setBorderWidth, setCellHeight, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setCellWidth, setSpacing
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, 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, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.HasCaption
public void setCaption(String caption)
setCaption
in interface com.google.gwt.user.client.ui.HasCaption
caption
- the new caption.public void clear()
clear
in interface com.google.gwt.user.client.ui.HasWidgets
clear
in class com.google.gwt.user.client.ui.Panel
Copyright © 2014. All Rights Reserved.