DXF Applet GUI Description File Format

This is a description of the file format used for describing the applet GUI in the DXF applet. Please note that there are some example files which may be easier to understand or at least adopt to your needs than this reference:

The file format is XML based. The root tag is dxfapplet.

I18n support

Some attributes may be internationalized. This is indicated by an i18n tag wrapped in ${ and }, i. e. ${tag}. If no predefined tag from the embedded applet's resources is used a resource has to be provided via a resource bundle class or property files which can be loaded by the applet from jars or from the codebase. Use the resourcebase applet tag for this resource to make the resource known to the applet.

See Internationalization Support for more info.

Attributes common to components

The are various tags defining the components of the GUI. They have each special attributes, but they also have attributes which are common and may be used on each of the components. They are described here:

Common Attributes

Components and other tags

The rest of this page is a description of the possible XML-Tags, which mostly define components to insert into the GUI. The root tag is dxfapplet. Here is a short overview:

action Definition of actions to be used as menu entries.
dxfapplet The root tag.
label Inserts a javax.swing.JLabel component.
layerpanel Adds a panel for layer visibility manipulation.
menu Definition of a menu.
menubar Definition of the menu bar.
modelmap Inserts a model map showing the current viewport (only 2D).
modelview Adds a DXF model view component.
panel Inserts a javax.swing.JPanel component.
projectionpanel Inserts a panel for projection manipulation.
res Overwritten Swing UI resource.
separator Separator in menus.
splitpane Inserts a javax.swing.JSplitPane component.
statusbar Adds a status bar.
tabbedpane Inserts a javax.swing.JTabbedPane component.
ui Overwrite Swing UI resources.
viewselect Insert a view selection panel.

dxfapplet

The root of the XML tree.

Attributes

Contained Tags

Surrounding Tags

This is the root, it is therefore not contained in any tags.

ui

Contains UI resource setting for Swing.

Attributes

No attributes defined.

Contained Tags

Surrounding Tags

res

UI resource setting for Swing.

Attributes

Contained Tags

No contained tags defined.

Surrounding Tags

menubar

Defines the menubar when running in frame mode. In inpage mode this is not used. May appear only once.

Attributes

No attributes defined.

Contained Tags

Surrounding Tags

menu

Defines a menu or a sub menu.

Attributes

Contained Tags

Surrounding Tags

action

Inserts one or more actions into a menu.

Attributes

Contained Tags

No contained tags defined.

Surrounding Tags

separator

Inserts a separator into a menu.

Attributes

No attributes defined.

Contained Tags

No contained tags defined.

Surrounding Tags

splitpane

Inserts a JSplitPane into the surrounding container.

Attributes

All common component attributes are allowed.

Contained Tags

Surrounding Tags

statusbar

Inserts a status bar into the surrounding container. May only appear once.

Attributes

All common component attributes are allowed.

Contained Tags

No contained tags defined.

Surrounding Tags

layerpanel

Inserts a panel for setting the layers of the model visible or invisible into the surrounding container.

Attributes

All common component attributes are allowed.

Contained Tags

No contained tags defined.

Surrounding Tags

panel

Inserts a panel with BorderLayout into the surrounding container.

Attributes

No attributes defined.

Contained Tags

Surrounding Tags

label

Inserts a label into the surrounding container.

Attributes

All common component attributes are allowed.

Contained Tags

No contained tags defined.

Surrounding Tags

viewselect

Inserts a panel allowing to select various views. It is only defined for 3D views, i.e. the value of the attribute type of the modelview tag has to be 3D+.

Attributes

All common component attributes are allowed.

Contained Tags

No contained tags defined.

Surrounding Tags

projectionpanel

Inserts a panel allowing to manipulate the projection. It is only defined for 3D views, i.e. the value of the attribute type of the modelview tag has to be 3D+.

Attributes

All common component attributes are allowed.

Contained Tags

No contained tags defined.

Surrounding Tags

modelmap

Inserts a component showing the complete model and the current viewport as it is displayed in the modelview. It is only defined for 2D views, i.e. the value of the attribute type of the modelview tag has to be 2D, 2D+, 2D3D, or 2D3D+.

Attributes

All common component attributes are allowed.

Contained Tags

No contained tags defined.

Surrounding Tags

tabbedpane

Inserts a javax.swing.JTabbedPane component.

Attributes

All common component attributes are allowed.

The following attributes are only valid if a text search action is included in the view

Contained Tags

No contained tags defined.

Surrounding Tags

modelview

Inserts the view for the model into the surrounding container. It has to appear once.

Attributes

All common component attributes are allowed.

Contained Tags

No contained tags defined.

Surrounding Tags