public interface View extends IsWidget
Presenter
.Modifier and Type | Method and Description |
---|---|
void |
addToSlot(Object slot,
IsWidget content)
Requests the view to add content within a specific slot.
|
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.
|
void addToSlot(Object slot, IsWidget content)
removeFromSlot(Object, IsWidget)
.
If the view doesn't know about this slot, it can silently ignore the request.
Used by PresenterWidget.addToSlot(Object, PresenterWidget)
.slot
- An opaque object indicating the slot to add into.content
- The content to add, a IsWidget
.void removeFromSlot(Object slot, IsWidget content)
addToSlot(Object, IsWidget)
.
If the view doesn't know about this slot, it can silently ignore the request.
Used by PresenterWidget.removeFromSlot(Object, PresenterWidget)
.slot
- An opaque object indicating the slot to remove from.content
- The content to remove, a IsWidget
.void setInSlot(Object slot, IsWidget content)
null
is passed, your
implementation should clear the slot.
Used by PresenterWidget.setInSlot(Object, PresenterWidget)
and
PresenterWidget.clearSlot(Object)
.slot
- An opaque object indicating the slot to add into.content
- The content to add, a IsWidget
. Pass null
to
clear the slot entirely.Copyright © 2010-2014 ArcBees. All Rights Reserved.