com.infoengine.modeler
Class ModelerPreferences

java.lang.Object
  extended bycom.infoengine.modeler.ModelerPreferences

public class ModelerPreferences
extends Object


Field Summary
private static Color bgColor
           
private static Color buttonBgColor
           
private static Border buttonBorder
           
private static String[] DEF_CORE_TAGS
           
private static String[] DEF_DIR_TAGS
           
private static String[] DEF_JSP_TAGS
           
private static String defaultTaskProcessor
           
private static Font font
           
private static JFrame frame
           
private static String ieServerName
           
private static String namingServiceName
           
private static String P_AUTOINDENT
           
private static String P_FONT
           
private static String P_FONTSIZE
           
private static String P_PRINCIPAL
           
private static String P_PROVIDER
           
private static String P_SERVICESEARCHBASE
           
private static String P_SMARTHOME
           
private static String P_SMARTTAB
           
private static String P_TABSIZE
           
private static String P_TAGINSIGHT
           
private static String P_TEXTBACKGROUND
           
private static String P_TEXTFOREGROUND
           
private static String P_TEXTSELECTED
           
private static String P_TEXTSELECTION
           
private static String password
           
private static Properties prefs
           
private static String PREFS
           
private static String principal
           
private static String provider
           
private static String searchBase
           
static String STYLE_COMMENT
           
static String STYLE_REGULAR
           
static String STYLE_SCRIPTLET
           
static String STYLE_XMLATTR
           
static String STYLE_XMLATTRVAL
           
static String STYLE_XMLELEMENTNAME
           
static String STYLE_XMLEQUALS
           
private static int TAB_SIZE
           
private static Hashtable tagInsightTemplates
           
private static Color textBackground
           
private static Color textForeground
           
private static Color textSelected
           
private static Color textSelection
           
static String VERSION
           
private static String WEB_INF
           
 
Constructor Summary
ModelerPreferences()
           
 
Method Summary
static void clearTagInsightTemplates()
           
static Color getAttributeColor()
           
static Color getAttributeValueColor()
           
static Color getBgColor()
           
static boolean getBooleanPreference(String prefName, boolean dflt)
           
static Color getButtonBgColor()
           
static Border getButtonBorder()
           
static Color getColorPreference(String prefName, Color dflt)
           
static Color getCommentColor()
           
static String getDefaultTaskProcessor()
           
static Color getEqualsColor()
           
static Font getFont()
           
static JFrame getFrame()
           
static String getIeServerName()
           
static int getIntPreference(String prefName, int dflt)
           
static String getNamingServiceName()
           
static String getPassword()
           
static String getPreference(String prefName)
           
static String getPreference(String prefName, String dflt)
           
static String getPrincipal()
           
static String getProvider()
           
static Color getScriptletColor()
           
static String getSearchBase()
           
static String getTab()
           
static int getTabSize()
           
static String[] getTagInsightTemplates(String uri)
           
static Enumeration getTagInsightURIs()
           
static Color getTextBackgroundColor()
           
static Color getTextForegroundColor()
           
static Color getTextSelectedColor()
           
static Color getTextSelectionColor()
           
static String getWebInf()
           
static Color getXmlTagColor()
           
private static void loadPrefs()
           
private static void loadTagInsightTemplates(Properties props)
           
static void savePrefs()
           
static void setAttributeColor(Color c)
           
static void setAttributeValueColor(Color c)
           
static void setBooleanPreference(String prefName, boolean prefVal)
           
static void setColorPreference(String prefName, Color c)
           
static void setCommentColor(Color c)
           
static void setDefaultTaskProcessor(String processor)
           
static void setEqualsColor(Color c)
           
static void setFont(Font f)
           
static void setFrame(JFrame nframe)
           
static void setIeServerName(String server)
           
static void setNamingServiceName(String service)
           
static void setPassword(String npassword)
           
static Object setPreference(String prefName, String prefValue)
           
static void setPrincipal(String nprincipal)
           
static void setProvider(String nprovider)
           
static void setScriptletColor(Color c)
           
static void setSearchBase(String nsearchBase)
           
static void setTabSize(int tabSize)
           
private static void setTagInsightTemplates(Properties props)
           
static void setTagInsightTemplates(String uri, String[] templates)
           
static void setTextBackgroundColor(Color c)
           
static void setTextForegroundColor(Color c)
           
static void setTextSelectedColor(Color c)
           
static void setTextSelectionColor(Color c)
           
static void setUseAutoIndent(boolean use)
           
static void setUseSmartHome(boolean use)
           
static void setUseSmartTab(boolean use)
           
static void setUseTagInsight(boolean use)
           
static void setWebInf(String webInf)
           
static void setXmlTagColor(Color c)
           
static boolean useAutoIndent()
           
static boolean useSmartHome()
           
static boolean useSmartTab()
           
static boolean useTagInsight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static String VERSION

PREFS

private static String PREFS

prefs

private static Properties prefs

TAB_SIZE

private static int TAB_SIZE

WEB_INF

private static String WEB_INF

provider

private static String provider

principal

private static String principal

password

private static String password

searchBase

private static String searchBase

frame

private static JFrame frame

bgColor

private static Color bgColor

buttonBgColor

private static Color buttonBgColor

buttonBorder

private static Border buttonBorder

textBackground

private static Color textBackground

textForeground

private static Color textForeground

textSelection

private static Color textSelection

textSelected

private static Color textSelected

font

private static Font font

P_FONTSIZE

private static final String P_FONTSIZE
See Also:
Constant Field Values

P_FONT

private static final String P_FONT
See Also:
Constant Field Values

P_TABSIZE

private static final String P_TABSIZE
See Also:
Constant Field Values

P_PROVIDER

private static final String P_PROVIDER
See Also:
Constant Field Values

P_PRINCIPAL

private static final String P_PRINCIPAL
See Also:
Constant Field Values

P_SERVICESEARCHBASE

private static final String P_SERVICESEARCHBASE
See Also:
Constant Field Values

P_TAGINSIGHT

private static final String P_TAGINSIGHT
See Also:
Constant Field Values

P_SMARTHOME

private static final String P_SMARTHOME
See Also:
Constant Field Values

P_SMARTTAB

private static final String P_SMARTTAB
See Also:
Constant Field Values

P_AUTOINDENT

private static final String P_AUTOINDENT
See Also:
Constant Field Values

P_TEXTBACKGROUND

private static final String P_TEXTBACKGROUND
See Also:
Constant Field Values

P_TEXTFOREGROUND

private static final String P_TEXTFOREGROUND
See Also:
Constant Field Values

P_TEXTSELECTION

private static final String P_TEXTSELECTION
See Also:
Constant Field Values

P_TEXTSELECTED

private static final String P_TEXTSELECTED
See Also:
Constant Field Values

tagInsightTemplates

private static Hashtable tagInsightTemplates

DEF_JSP_TAGS

private static final String[] DEF_JSP_TAGS

DEF_CORE_TAGS

private static final String[] DEF_CORE_TAGS

DEF_DIR_TAGS

private static final String[] DEF_DIR_TAGS

STYLE_REGULAR

public static final String STYLE_REGULAR
See Also:
Constant Field Values

STYLE_COMMENT

public static final String STYLE_COMMENT
See Also:
Constant Field Values

STYLE_XMLATTR

public static final String STYLE_XMLATTR
See Also:
Constant Field Values

STYLE_XMLATTRVAL

public static final String STYLE_XMLATTRVAL
See Also:
Constant Field Values

STYLE_XMLELEMENTNAME

public static final String STYLE_XMLELEMENTNAME
See Also:
Constant Field Values

STYLE_XMLEQUALS

public static final String STYLE_XMLEQUALS
See Also:
Constant Field Values

STYLE_SCRIPTLET

public static final String STYLE_SCRIPTLET
See Also:
Constant Field Values

ieServerName

private static String ieServerName

namingServiceName

private static String namingServiceName

defaultTaskProcessor

private static String defaultTaskProcessor
Constructor Detail

ModelerPreferences

public ModelerPreferences()
Method Detail

getPreference

public static String getPreference(String prefName,
                                   String dflt)

getPreference

public static String getPreference(String prefName)

setPreference

public static Object setPreference(String prefName,
                                   String prefValue)

getIntPreference

public static int getIntPreference(String prefName,
                                   int dflt)

setColorPreference

public static void setColorPreference(String prefName,
                                      Color c)

getColorPreference

public static Color getColorPreference(String prefName,
                                       Color dflt)

getBooleanPreference

public static boolean getBooleanPreference(String prefName,
                                           boolean dflt)

setBooleanPreference

public static void setBooleanPreference(String prefName,
                                        boolean prefVal)

loadPrefs

private static void loadPrefs()

loadTagInsightTemplates

private static void loadTagInsightTemplates(Properties props)

savePrefs

public static void savePrefs()

setTagInsightTemplates

private static void setTagInsightTemplates(Properties props)

setTabSize

public static void setTabSize(int tabSize)

getTabSize

public static int getTabSize()

getTab

public static String getTab()

setWebInf

public static void setWebInf(String webInf)

getWebInf

public static String getWebInf()

setProvider

public static void setProvider(String nprovider)

getProvider

public static String getProvider()

setPrincipal

public static void setPrincipal(String nprincipal)

getPrincipal

public static String getPrincipal()

setPassword

public static void setPassword(String npassword)

getPassword

public static String getPassword()

setSearchBase

public static void setSearchBase(String nsearchBase)

getSearchBase

public static String getSearchBase()

setFrame

public static void setFrame(JFrame nframe)

getFrame

public static JFrame getFrame()

getBgColor

public static Color getBgColor()

getButtonBgColor

public static Color getButtonBgColor()

getButtonBorder

public static Border getButtonBorder()

getTextBackgroundColor

public static Color getTextBackgroundColor()

setTextBackgroundColor

public static void setTextBackgroundColor(Color c)

getTextForegroundColor

public static Color getTextForegroundColor()

setTextForegroundColor

public static void setTextForegroundColor(Color c)

getTextSelectionColor

public static Color getTextSelectionColor()

setTextSelectionColor

public static void setTextSelectionColor(Color c)

getTextSelectedColor

public static Color getTextSelectedColor()

setTextSelectedColor

public static void setTextSelectedColor(Color c)

setFont

public static void setFont(Font f)

getFont

public static Font getFont()

getTagInsightURIs

public static Enumeration getTagInsightURIs()

getTagInsightTemplates

public static String[] getTagInsightTemplates(String uri)

setTagInsightTemplates

public static void setTagInsightTemplates(String uri,
                                          String[] templates)

clearTagInsightTemplates

public static void clearTagInsightTemplates()

useSmartTab

public static boolean useSmartTab()

setUseSmartTab

public static void setUseSmartTab(boolean use)

useSmartHome

public static boolean useSmartHome()

setUseSmartHome

public static void setUseSmartHome(boolean use)

useAutoIndent

public static boolean useAutoIndent()

setUseAutoIndent

public static void setUseAutoIndent(boolean use)

useTagInsight

public static boolean useTagInsight()

setUseTagInsight

public static void setUseTagInsight(boolean use)

getXmlTagColor

public static Color getXmlTagColor()

setXmlTagColor

public static void setXmlTagColor(Color c)

getCommentColor

public static Color getCommentColor()

setCommentColor

public static void setCommentColor(Color c)

getScriptletColor

public static Color getScriptletColor()

setScriptletColor

public static void setScriptletColor(Color c)

getEqualsColor

public static Color getEqualsColor()

setEqualsColor

public static void setEqualsColor(Color c)

getAttributeColor

public static Color getAttributeColor()

setAttributeColor

public static void setAttributeColor(Color c)

getAttributeValueColor

public static Color getAttributeValueColor()

setAttributeValueColor

public static void setAttributeValueColor(Color c)

setIeServerName

public static void setIeServerName(String server)

getIeServerName

public static String getIeServerName()

setDefaultTaskProcessor

public static void setDefaultTaskProcessor(String processor)

getDefaultTaskProcessor

public static String getDefaultTaskProcessor()

setNamingServiceName

public static void setNamingServiceName(String service)

getNamingServiceName

public static String getNamingServiceName()