public class ToolBarIO extends Object
| Constructor and Description |
|---|
ToolBarIO(ToolBarContainer container)
Constructs a new ToolBarIO utility based on the given container
|
| Modifier and Type | Method and Description |
|---|---|
ToolBarIOReadInfo |
readXML(InputStream in)
Reads an XML encoded stream as the toolbar configuration.
|
void |
writeXML(OutputStream stream)
Saves the current toolbar configuration into an XML stream.
|
public ToolBarIO(ToolBarContainer container)
public void writeXML(OutputStream stream) throws IOException
The stream is not closed at the end of the operation.
IOExceptionreadXML(InputStream)public ToolBarIOReadInfo readXML(InputStream in) throws ParserConfigurationException, IOException, SAXException
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.
ParserConfigurationExceptionIOExceptionSAXExceptionwriteXML(OutputStream),
ToolBarContainer.registerToolBar(VLToolBar)© Copyright 2004-2013 Lilian Chamontin. All Rights Reserved.