|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.widgetideas.client.LazyPanel<T>
T
- widget typepublic abstract class LazyPanel<T extends com.google.gwt.user.client.ui.Widget>
Convenience class to help lazy loading. A LazyPanel is only actually rendered when setVisible(true) or ensureWidget is called.
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 | |
---|---|
LazyPanel()
|
Method Summary | |
---|---|
static void |
addTabListener(com.google.gwt.user.client.ui.TabPanel panel)
Adds a tab listener to ensure that any LazyPanel instances are
loaded when a tab panel selects the lazy panel's tab. |
abstract T |
createWidget()
Create the widget contained within the LazyPanel . |
T |
ensureWidget()
Ensures the existence of the LazyPanel widget. |
T |
getWidget()
Gets the panel's child widget. |
void |
setVisible(boolean visible)
|
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
---|
add, getContainerElement, iterator, remove, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
getParent, isAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyPanel()
Method Detail |
---|
public static void addTabListener(com.google.gwt.user.client.ui.TabPanel panel)
LazyPanel
instances are
loaded when a tab panel selects the lazy panel's tab.
panel
- to add listener topublic abstract T createWidget()
LazyPanel
.
public T ensureWidget()
LazyPanel
widget.
public T getWidget()
ensureWidget
to ensure that the widget exists.
getWidget
in class com.google.gwt.user.client.ui.SimplePanel
null
if none is presentpublic void setVisible(boolean visible)
setVisible
in class com.google.gwt.user.client.ui.UIObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |