public abstract class ViewImpl extends Object implements View
View that simply disregard every call to
setInSlot(Object, IsWidget), addToSlot(Object, IsWidget), and
removeFromSlot(Object, IsWidget).
Feel free not to inherit from this if you need another base class (such as
Composite), but you will have to define
the above methods.
* Important call initWidget(Widget) in your View's
constructor.| Constructor and Description |
|---|
ViewImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToSlot(Object slot,
IsWidget content)
Requests the view to add content within a specific slot.
|
Widget |
asWidget() |
protected void |
initWidget(Widget widget) |
void |
removeFromSlot(Object slot,
IsWidget content)
Requests the view to remove content from a specific slot.
|
void |
setInSlot(Object slot,
IsWidget content)
Requests the view to set content within a specific slot, clearing anything
that was already contained there.
|
public void addToSlot(Object slot, IsWidget content)
ViewView.removeFromSlot(Object, IsWidget).
If the view doesn't know about this slot, it can silently ignore the request.
Used by PresenterWidget.addToSlot(Object, PresenterWidget).public void removeFromSlot(Object slot, IsWidget content)
ViewView.addToSlot(Object, IsWidget).
If the view doesn't know about this slot, it can silently ignore the request.
Used by PresenterWidget.removeFromSlot(Object, PresenterWidget).removeFromSlot in interface Viewslot - An opaque object indicating the slot to remove from.content - The content to remove, a IsWidget.public void setInSlot(Object slot, IsWidget content)
Viewnull is passed, your
implementation should clear the slot.
Used by PresenterWidget.setInSlot(Object, PresenterWidget) and
PresenterWidget.clearSlot(Object).protected void initWidget(Widget widget)
Copyright © 2010–2014 Arcbees. All rights reserved.