|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vlsolutions.swing.toolbars.ToolBarIO
public class ToolBarIO
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 | |
---|---|
ToolBarIOReadInfo |
readXML(java.io.InputStream in)
Reads an XML encoded stream as the toolbar configuration. |
void |
writeXML(java.io.OutputStream stream)
Saves the current toolbar configuration into an XML stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToolBarIO(ToolBarContainer container)
Method Detail |
---|
public void writeXML(java.io.OutputStream stream) throws java.io.IOException
The stream is not closed at the end of the operation.
java.io.IOException
readXML(InputStream)
public ToolBarIOReadInfo readXML(java.io.InputStream in) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
When the method returns, the container is totally reconfigured with possibly different toolbars at different positions.
Note : The VLToolBar
s 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.
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
writeXML(OutputStream)
,
ToolBarContainer.registerToolBar(VLToolBar)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |