public interface WidgetFactory
VisualBuilderDelegate in the process of
creation of Swing-Elements. Implementations must provide proper UI-Elements
in accordance to the various types of Swing-Elements.| Modifier and Type | Method and Description |
|---|---|
Container |
create(String pType,
org.jdom2.Element pElement,
Container pParent)
Called be the
VisualBuilderDelegate in order to
create a specific Swing-Element |
void |
notifyWidgetComplete(String pType,
org.jdom2.Element pElement,
Container pCurrentWidget)
Called when the creation process of the widget is completed.
|
Container create(String pType, org.jdom2.Element pElement, Container pParent)
VisualBuilderDelegate in order to
create a specific Swing-ElementpType - the type of the Swing-Element that should be created. The name of
the Swing-class ist used as the type-argument. F.i., for the creation of
a JTable-Elememnt, the pType-argument would be "javax.swing.JTable"pElement - the XML-element in which the declaration of the Swing element is
included.pParent - the parent container to the element that should be created.void notifyWidgetComplete(String pType, org.jdom2.Element pElement, Container pCurrentWidget)
pType - the type of the Swing-Element that was created.pElement - the XML-element in which the declaration of the Swing element is
included.pCurrentWidget - the widget that was completed.Copyright © 2017 Jürgen Zeller (privat). All rights reserved.