org.media.hyperpad.conf
Class ConfigHandler

java.lang.Object
  |
  +--org.media.hyperpad.conf.ConfigHandler

public class ConfigHandler
extends Object

Class meant to handle the configuration XML for HyperPad.

Version:
$Revision: 1.1 $ $Date: 2002/09/13 18:47:56 $
Author:
Borsos Szabolcs
See Also:
String

Constructor Summary
ConfigHandler(String path)
           
 
Method Summary
 boolean getAntiAliasingStatus()
           
 String getBrowser()
           
 String getButtonDisplay()
           
 Color getCharacterColor()
           
 Font getCharacterFont()
           
 Color getCommentColor()
           
 Font getCommentFont()
           
 String getFtpProxyHost()
           
 String getFtpProxyPort()
           
 Color getGeneralBgColor()
           
 Color getGeneralColor()
           
 Font getGeneralFont()
           
 boolean getHighlight()
           
 String getHistoryLength()
           
 boolean getHTMLMode()
           
 String getHttpProxyHost()
           
 String getHttpProxyPort()
           
 Color getKeywordColor()
           
 Font getKeywordFont()
           
 boolean getLineWrapStatus()
           
 String getLookAndFeel()
           
 Font getMenuFont()
           
 boolean getNavigationBarStatus()
           
 Color getNumericColor()
           
 Font getNumericFont()
           
 boolean getProxyStatus()
           
 String getRecentListLength()
           
 boolean getReplaceMode()
           
 String getShortcut(String key)
           
 String getSpaceNumber()
           
 Color getStringColor()
           
 Font getStringFont()
           
 void save(String xmlpath)
           
protected static void saveXML(String path, Document doc, Element root)
           
 void setAntiAliasingStatus(boolean new_status)
           
 void setBrowser(String new_path)
           
 void setButtonDisplay(String new_display)
           
 void setCharacterColor(int new_r, int new_g, int new_b)
           
 void setCharacterFont(String new_name, int new_style, int new_size)
           
 void setCommentColor(int new_r, int new_g, int new_b)
           
 void setCommentFont(String new_name, int new_style, int new_size)
           
 void setFtpProxyHost(String new_value)
           
 void setFtpProxyPort(String new_value)
           
 void setGeneralBgColor(int new_r, int new_g, int new_b)
           
 void setGeneralColor(int new_r, int new_g, int new_b)
           
 void setGeneralFont(String new_name, int new_style, int new_size)
           
 void setHighlight(boolean new_mode)
           
 void setHistoryLength(String length)
           
 void setHTMLMode(boolean new_mode)
           
 void setHttpProxyHost(String new_value)
           
 void setHttpProxyPort(String new_value)
           
 void setKeywordColor(int new_r, int new_g, int new_b)
           
 void setKeywordFont(String new_name, int new_style, int new_size)
           
 void setLineWrapStatus(boolean new_status)
           
 void setLookAndFeel(String new_LF)
           
 void setNavigationBarStatus(boolean new_status)
           
 void setNumericColor(int new_r, int new_g, int new_b)
           
 void setNumericFont(String new_name, int new_style, int new_size)
           
 void setProxyStatus(boolean new_status)
           
 void setRecentListLength(String length)
           
 void setReplaceMode(boolean new_mode)
           
 void setShortcut(String key, String new_SCkey, String new_modifiers)
           
 void setSpaceNumber(String number)
           
 void setStringColor(int new_r, int new_g, int new_b)
           
 void setStringFont(String new_name, int new_style, int new_size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigHandler

public ConfigHandler(String path)
Method Detail

getNavigationBarStatus

public boolean getNavigationBarStatus()

setNavigationBarStatus

public void setNavigationBarStatus(boolean new_status)

getButtonDisplay

public String getButtonDisplay()

setButtonDisplay

public void setButtonDisplay(String new_display)

getReplaceMode

public boolean getReplaceMode()

setReplaceMode

public void setReplaceMode(boolean new_mode)

getSpaceNumber

public String getSpaceNumber()

setSpaceNumber

public void setSpaceNumber(String number)

getHistoryLength

public String getHistoryLength()

setHistoryLength

public void setHistoryLength(String length)

getRecentListLength

public String getRecentListLength()

setRecentListLength

public void setRecentListLength(String length)

getHTMLMode

public boolean getHTMLMode()

setHTMLMode

public void setHTMLMode(boolean new_mode)

getHighlight

public boolean getHighlight()

setHighlight

public void setHighlight(boolean new_mode)

getLookAndFeel

public String getLookAndFeel()

setLookAndFeel

public void setLookAndFeel(String new_LF)

getAntiAliasingStatus

public boolean getAntiAliasingStatus()

setAntiAliasingStatus

public void setAntiAliasingStatus(boolean new_status)

getLineWrapStatus

public boolean getLineWrapStatus()

setLineWrapStatus

public void setLineWrapStatus(boolean new_status)

getBrowser

public String getBrowser()

setBrowser

public void setBrowser(String new_path)

getProxyStatus

public boolean getProxyStatus()

setProxyStatus

public void setProxyStatus(boolean new_status)

getHttpProxyHost

public String getHttpProxyHost()

setHttpProxyHost

public void setHttpProxyHost(String new_value)

getHttpProxyPort

public String getHttpProxyPort()

setHttpProxyPort

public void setHttpProxyPort(String new_value)

getFtpProxyHost

public String getFtpProxyHost()

setFtpProxyHost

public void setFtpProxyHost(String new_value)

getFtpProxyPort

public String getFtpProxyPort()

setFtpProxyPort

public void setFtpProxyPort(String new_value)

getMenuFont

public Font getMenuFont()

getGeneralFont

public Font getGeneralFont()

setGeneralFont

public void setGeneralFont(String new_name,
                           int new_style,
                           int new_size)

getGeneralColor

public Color getGeneralColor()

setGeneralColor

public void setGeneralColor(int new_r,
                            int new_g,
                            int new_b)

getGeneralBgColor

public Color getGeneralBgColor()

setGeneralBgColor

public void setGeneralBgColor(int new_r,
                              int new_g,
                              int new_b)

getCommentFont

public Font getCommentFont()

setCommentFont

public void setCommentFont(String new_name,
                           int new_style,
                           int new_size)

getCommentColor

public Color getCommentColor()

setCommentColor

public void setCommentColor(int new_r,
                            int new_g,
                            int new_b)

getKeywordFont

public Font getKeywordFont()

setKeywordFont

public void setKeywordFont(String new_name,
                           int new_style,
                           int new_size)

getKeywordColor

public Color getKeywordColor()

setKeywordColor

public void setKeywordColor(int new_r,
                            int new_g,
                            int new_b)

getStringFont

public Font getStringFont()

setStringFont

public void setStringFont(String new_name,
                          int new_style,
                          int new_size)

getStringColor

public Color getStringColor()

setStringColor

public void setStringColor(int new_r,
                           int new_g,
                           int new_b)

getNumericFont

public Font getNumericFont()

setNumericFont

public void setNumericFont(String new_name,
                           int new_style,
                           int new_size)

getNumericColor

public Color getNumericColor()

setNumericColor

public void setNumericColor(int new_r,
                            int new_g,
                            int new_b)

getCharacterFont

public Font getCharacterFont()

setCharacterFont

public void setCharacterFont(String new_name,
                             int new_style,
                             int new_size)

getCharacterColor

public Color getCharacterColor()

setCharacterColor

public void setCharacterColor(int new_r,
                              int new_g,
                              int new_b)

getShortcut

public String getShortcut(String key)

setShortcut

public void setShortcut(String key,
                        String new_SCkey,
                        String new_modifiers)

save

public void save(String xmlpath)

saveXML

protected static void saveXML(String path,
                              Document doc,
                              Element root)


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."