|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.pane.OutlookTabbedPanePersistenceUtils
public class OutlookTabbedPanePersistenceUtils
A helper class that can support persist AggregateTablePane's layout to/from xml file.
Constructor Summary | |
---|---|
OutlookTabbedPanePersistenceUtils()
|
Method Summary | |
---|---|
static String |
getVersion(Document document)
Gets the version of the layout file. |
static String |
getVersion(InputStream in)
Gets the version of the layout file. |
static String |
getVersion(String fileName)
Gets the version of the layout file. |
static void |
load(OutlookTabbedPane pane,
Document document)
Loads the layout from xml document. |
static void |
load(OutlookTabbedPane pane,
Document document,
PersistenceUtilsCallback.Load callback)
Loads the layout from xml document. |
static void |
load(OutlookTabbedPane pane,
InputStream in)
Loads the OutlookTabbedPane's layout from an input stream. |
static void |
load(OutlookTabbedPane pane,
InputStream in,
PersistenceUtilsCallback.Load callback)
Loads the layout from input stream. |
static void |
load(OutlookTabbedPane pane,
String fileName)
Loads the layout from xml file. |
static void |
load(OutlookTabbedPane pane,
String fileName,
PersistenceUtilsCallback.Load callback)
Loads the layout from xml file. |
static Document |
save(OutlookTabbedPane pane)
Saves the OutlookTabbedPane's layout to an XML Document |
static void |
save(OutlookTabbedPane pane,
OutputStream out)
Saves the OutlookTabbedPane's layout to an output stream. |
static void |
save(OutlookTabbedPane pane,
OutputStream out,
PersistenceUtilsCallback.Save callback)
Saves the OutlookTabbedPane's layout to an output stream. |
static void |
save(OutlookTabbedPane pane,
OutputStream out,
PersistenceUtilsCallback.Save callback,
String encoding)
Saves the OutlookTabbedPane's layout to an output stream. |
static Document |
save(OutlookTabbedPane pane,
PersistenceUtilsCallback.Save callback)
Saves the OutlookTabbedPane's layout to an XML Document |
static void |
save(OutlookTabbedPane pane,
String fileName)
Saves the OutlookTabbedPane's layout to a file. |
static void |
save(OutlookTabbedPane pane,
String fileName,
PersistenceUtilsCallback.Save callback)
Saves the OutlookTabbedPane's layout to a file. |
static void |
save(OutlookTabbedPane pane,
String fileName,
PersistenceUtilsCallback.Save callback,
String encoding)
Saves the OutlookTabbedPane's layout to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutlookTabbedPanePersistenceUtils()
Method Detail |
---|
public static void save(OutlookTabbedPane pane, String fileName) throws ParserConfigurationException, IOException
pane
- the OutlookTabbedPanefileName
- the file name
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static void save(OutlookTabbedPane pane, OutputStream out) throws ParserConfigurationException, IOException
pane
- the OutlookTabbedPaneout
- the output stream
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static Document save(OutlookTabbedPane pane) throws ParserConfigurationException
pane
- the OutlookTabbedPane
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configurationpublic static void save(OutlookTabbedPane pane, String fileName, PersistenceUtilsCallback.Save callback) throws ParserConfigurationException, IOException
pane
- the OutlookTabbedPanefileName
- the file namecallback
- The callback which will be called when saving each element to the XML document.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static void save(OutlookTabbedPane pane, String fileName, PersistenceUtilsCallback.Save callback, String encoding) throws ParserConfigurationException, IOException
pane
- the OutlookTabbedPanefileName
- the file namecallback
- the callback which will be called when saving each element to the XML documentencoding
- the encoding choice. It would be UTF-8 in default if you call the method without this parameter.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static void save(OutlookTabbedPane pane, OutputStream out, PersistenceUtilsCallback.Save callback) throws ParserConfigurationException, IOException
pane
- the OutlookTabbedPaneout
- the output streamcallback
- The callback which will be called when saving each element to the XML document.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static void save(OutlookTabbedPane pane, OutputStream out, PersistenceUtilsCallback.Save callback, String encoding) throws ParserConfigurationException, IOException
pane
- the OutlookTabbedPaneout
- the output streamcallback
- The callback which will be called when saving each element to the XML document.encoding
- the encoding choice. It would be UTF-8 in default if you call the method without this parameter.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static Document save(OutlookTabbedPane pane, PersistenceUtilsCallback.Save callback) throws ParserConfigurationException
pane
- the OutlookTabbedPanecallback
- The callback which will be called when saving each element to the XML document.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configurationpublic static void load(OutlookTabbedPane pane, InputStream in) throws ParserConfigurationException, SAXException, IOException
pane
- the OutlookTabbedPanein
- the input stream
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
SAXException
- if either the XML parser or the application has errors
IOException
- if the pathname argument is null or any IO errors happenpublic static void load(OutlookTabbedPane pane, String fileName) throws ParserConfigurationException, SAXException, IOException
pane
- the OutlookTabbedPanefileName
- the layout file name.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
requested.
SAXException
- If any parse errors occur.
IOException
- If the pathname argument is null or any IO errors happenpublic static void load(OutlookTabbedPane pane, Document document)
pane
- the OutlookTabbedPanedocument
- the XML documentpublic static void load(OutlookTabbedPane pane, InputStream in, PersistenceUtilsCallback.Load callback) throws ParserConfigurationException, SAXException, IOException
pane
- the OutlookTabbedPanein
- the input streamcallback
- The callback which will be called when loading each element in the XML document.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
requested.
SAXException
- If any parse errors occur.
IOException
- If the pathname argument is null or any IO errors happenpublic static void load(OutlookTabbedPane pane, String fileName, PersistenceUtilsCallback.Load callback) throws ParserConfigurationException, SAXException, IOException
pane
- the OutlookTabbedPanefileName
- the layout file name.callback
- The callback which will be called when loading each element in the XML document.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
requested.
SAXException
- If any parse errors occur.
IOException
- If the pathname argument is null or any IO errors happenpublic static void load(OutlookTabbedPane pane, Document document, PersistenceUtilsCallback.Load callback)
pane
- the OutlookTabbedPanedocument
- the XML documentcallback
- The callback which will be called when loading each element in the XML document.public static String getVersion(InputStream in) throws ParserConfigurationException, SAXException, IOException
in
- the InputStream
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
requested.
SAXException
- If any parse errors occur.
IOException
- If the pathname argument is null or any IO errors happenpublic static String getVersion(String fileName) throws ParserConfigurationException, SAXException, IOException
fileName
- the Document for the layout
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
requested.
SAXException
- If any parse errors occur.
IOException
- If the pathname argument is null or any IO errors happenpublic static String getVersion(Document document)
document
- the Document for the layout
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |