SwingXMLBuilder
and its
various helper classes.See: Description
Interface | Description |
---|---|
SwingXMLBuilder.Backlink |
Helper interface that classes can implement to signal that the
SwingXMLBuilder that created objects of that class will set a back link.
|
SwingXMLBuilder.BuilderDelegate |
Helper interface that delegate builder classes must implement.
|
WidgetFactory |
Interface is used by the
VisualBuilderDelegate in the process of
creation of Swing-Elements. |
Class | Description |
---|---|
DefaultWidgetFactory |
This Default-Implementation of a widget factory creates
standard swing elements for each widget type.
|
ExternalUpdateAdapter |
Small adapter that maps a change event to calling external update on a value model.
|
IconCache |
The icon cache is a class that loads icons and stores them in a Map.
|
PopupManager |
A PopupManager object is a MouseAdapter that manages a popup for
different components.
|
SwingXMLBuilder |
SwingXMLBuilder generates a visual representation from a simple XML
description.
It also can create non-visble components, and connect the actions of the visuable components to any methods of the non-visual objects. Besides generating arbitrary objects (as long as the class has a public default constructor), also state handling and data binding objects can generated. It is somehow like the legendary "NIB-Files" from the NeXT/Apple InterfaceBuilder.app, unfortunately without the interactive UI Builder :-( The state handling stuff centers around the State
and StateAdapter interfaces, and can be used
to describe logical states and bind them to the widgets.The data binding stuff centers around the ValueModel
interface, and can be used to bind the content of POJO's to widgets,
even if the POJO's contain complex lists or a type conversion is required.Both visual widgets as well as non-visual objects can be referred by name, see SwingMapping for a detailed description of how this works. The "id" Attribute of the various elements are mapped to the name of a widget, see JComponent.setName() for further information. This class is somehow an alternative to SwingMapping+SwingDecorator, because the XML description contains all the information a SwingDecorator would normally decorate, and a SwingXMLBuilder has the same key/value methods like SwingMapping. The non-visual objects only have a flat (non-hierarchical) namespace. |
WidgetFactoryRegistry |
Registry is to be used for the registration of Widget Factories with the
SwingXMLBuilder , also a WidgetFactory. |
This package contains the non-graphical interface builder
and its
various helper classes.
SwingXMLBuilder
The SwingXMLBuilder also provides an integration of other CUF
libraries (State/StateAdapter, ValueModel, ...) and the smart
callback handling of the
.
SwingConnectionManager
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.