public class Stub
extends com.google.gwt.user.client.ui.FlowPanel
implements com.google.gwt.user.client.ui.HasName
Stubs are used to 'stub out' what Metawidget would normally create - either to suppress widget creation entirely or to create child widgets with a different name. They differ from Facets in that Facets are simply 'decorations' (such as button bars) to be recognized and arranged at the discretion of the Layout.
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Constructor and Description |
---|
Stub() |
Stub(String name)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributes() |
String |
getName() |
void |
setAttribute(String name,
String value) |
void |
setName(String name) |
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Stub()
public Stub(String name)
Useful for creating stubs that will otherwise be empty, such as
metawidget.add( new Stub( "foo" ))
Copyright © 2015. All Rights Reserved.