public class WidgetLoader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.netbeans.api.visual.widget.Widget |
loadWidget(org.netbeans.api.visual.widget.Scene scene,
PositionableElement element,
java.lang.Class<?> targetType)
Load widget of the given PositionableElement and targetType.
|
public static org.netbeans.api.visual.widget.Widget loadWidget(org.netbeans.api.visual.widget.Scene scene, PositionableElement element, java.lang.Class<?> targetType) throws IllegalActionException, NameDuplicationException
scene
- The scene where the widget belongs.element
- The element for which widget is loaded.targetType
- The targetType used to finding appropriate widget mapped to it.
Usually targetType is the same as namedObject's type.NamedObjectWidgetInterface
.IllegalActionException
- if there is a problem loading a object widget or icon.NameDuplicationException
- if there is a problem loading an icon.