|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WidgetBuilder
A WidgetBuilder
references all the implementation classes of the widgets that
it can build.
These classes can be referenced at the initialization for defining defaults specific widgets and at runtime when the MAD configuration proposes custom implementations of the specific widgets.
All SpecificWidget
creation should be done by a WidgetBuilder
.
SpecificWidget
,
SpecificContextHolder
Method Summary | |
---|---|
void |
addSpecificWidget(java.lang.String id,
SpecificWidget specificWidget)
Add a SpecificWidget to this WidgetBuilder . |
java.lang.Object |
createWidget(SpecificContextHolder specificContextHolder,
Widget<?> madWidget)
Creates a new specific widget with the given MAD Widget . |
void |
removeAll()
Remove all registered SpecificWidget s. |
void |
removeCustomWidget(SpecificWidget customWidget)
Remove the specified SpecificWidget from this WidgetBuilder . |
Method Detail |
---|
java.lang.Object createWidget(SpecificContextHolder specificContextHolder, Widget<?> madWidget)
Widget
.
specificContextHolder
- madWidget
-
void addSpecificWidget(java.lang.String id, SpecificWidget specificWidget)
SpecificWidget
to this WidgetBuilder
.
id
- specificWidget
- void removeCustomWidget(SpecificWidget customWidget)
SpecificWidget
from this WidgetBuilder
.
customWidget
- void removeAll()
SpecificWidget
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |