JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

org.jpedal.examples.simpleviewer.utils
Class PropertiesFile

java.lang.Object
  extended by org.jpedal.examples.simpleviewer.utils.PropertiesFile

public class PropertiesFile
extends java.lang.Object

holds values stored in XML file on disk


Constructor Summary
PropertiesFile()
           
PropertiesFile(java.lang.String config)
           
 
Method Summary
 void addRecentDocument(java.lang.String file)
           
 void dispose()
           
 org.w3c.dom.NodeList getChildren(java.lang.String item)
           
 java.lang.String getConfigFile()
           
 java.lang.String getGUIValue(java.lang.String elementName)
           
 int getNoRecentDocumentsToDisplay()
           
 java.lang.String[] getRecentDocuments()
           
 java.lang.String getValue(java.lang.String elementName)
           
 boolean isReadOnly()
           
 void loadProperties()
           
 void loadProperties(java.io.InputStream is)
           
 void loadProperties(java.lang.String configFile)
           
 void removeRecentDocuments()
           
 void setConfigFile(java.lang.String configFile)
          Deprecated.  
 void setupProperties()
          Deprecated.  
 void setValue(java.lang.String elementName, java.lang.String newValue)
           
 void writeDoc()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesFile

public PropertiesFile()

PropertiesFile

public PropertiesFile(java.lang.String config)
Method Detail

isReadOnly

public boolean isReadOnly()

setupProperties

public void setupProperties()
Deprecated. 

Please use loadProperties()


loadProperties

public void loadProperties()

removeRecentDocuments

public void removeRecentDocuments()

getRecentDocuments

public java.lang.String[] getRecentDocuments()

addRecentDocument

public void addRecentDocument(java.lang.String file)

setValue

public void setValue(java.lang.String elementName,
                     java.lang.String newValue)

getGUIValue

public java.lang.String getGUIValue(java.lang.String elementName)

getChildren

public org.w3c.dom.NodeList getChildren(java.lang.String item)

getValue

public java.lang.String getValue(java.lang.String elementName)

writeDoc

public void writeDoc()
              throws java.lang.Exception
Throws:
java.lang.Exception

dispose

public void dispose()

getNoRecentDocumentsToDisplay

public int getNoRecentDocumentsToDisplay()

getConfigFile

public java.lang.String getConfigFile()

setConfigFile

public void setConfigFile(java.lang.String configFile)
Deprecated. 

Please use loadProperties(String configFile)

Parameters:
configFile -

loadProperties

public void loadProperties(java.io.InputStream is)

loadProperties

public void loadProperties(java.lang.String configFile)

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support