com.vlsolutions.swing.toolbars

Class ToolBarIO

public class ToolBarIO extends Object

A utility class used to save and restore toolbars to/from an XML configuration.
Constructor Summary
ToolBarIO(ToolBarContainer container)
Constructs a new ToolBarIO utility based on the given container
Method Summary
ToolBarIOReadInforeadXML(InputStream in)
Reads an XML encoded stream as the toolbar configuration.
voidwriteXML(OutputStream stream)
Saves the current toolbar configuration into an XML stream.

Constructor Detail

ToolBarIO

public ToolBarIO(ToolBarContainer container)
Constructs a new ToolBarIO utility based on the given container

Method Detail

readXML

public ToolBarIOReadInfo readXML(InputStream in)
Reads an XML encoded stream as the toolbar configuration.

When the method returns, the container is totally reconfigured with possibly different toolbars at different positions.

Note : The VLToolBars of the stream must be registered with the registerToolBar method, prior readXML.

Also note that the container must already contain its ToolBarPanels before reading the configuration.

Dismisses all visible toolbars.

The stream is not closed at the end of the operation.

Returns: a descriptor of the reading operation(useful for example to know the registered toolbars, that weren't loaded (missing) from the input file).

See Also: writeXML registerToolBar

writeXML

public void writeXML(OutputStream stream)
Saves the current toolbar configuration into an XML stream.

The stream is not closed at the end of the operation.

See Also:

© Copyright 2004-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications