net.sourceforge.jivalo.editor
Class JIvaloEditorProperties

java.lang.Object
  extended by net.sourceforge.jivalo.editor.JIvaloEditorProperties

public final class JIvaloEditorProperties
extends Object

jIvaloEditor preferences properties used to configure editor behavior.

Author:
Markku Saarela

Constructor Summary
JIvaloEditorProperties(Properties props)
          Constructor for JIvaloEditorProperties.
 
Method Summary
 Properties asProperties()
           
static JIvaloEditorProperties defaultProperties()
          Get's current default properties.
 String getCurrenKeyBindingName()
           
 Charset getEncodingCharset()
          Get's Charset defined.
 KeyBindings getKeyBindings()
           
 String getPropertiesFileComment()
          Get's comment string for properties file.
 String getSpacesIndentation()
           
 String getSyntaxHighlightingDefault()
           
 SyntaxHighlightings getSyntaxHighlightings()
           
 TabStyle getTabStyle()
           
 boolean isUpgradePropertiesFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JIvaloEditorProperties

public JIvaloEditorProperties(Properties props)
                       throws InvalidClassException,
                              InvalidObjectException
Constructor for JIvaloEditorProperties.

Parameters:
props - jIvalo Editor properties
Throws:
NullPointerException - If props is null.
InvalidClassException - if properties.file.version property is missing or invalid.
InvalidObjectException - If properties.file.version value is invalid.
NumberFormatException - If properties.file.version is not integer.
Method Detail

getEncodingCharset

public Charset getEncodingCharset()
Get's Charset defined.

Returns:
Charset defined otherwise null.

getSyntaxHighlightings

public SyntaxHighlightings getSyntaxHighlightings()

getSyntaxHighlightingDefault

public String getSyntaxHighlightingDefault()

getSpacesIndentation

public String getSpacesIndentation()

getTabStyle

public TabStyle getTabStyle()

getKeyBindings

public KeyBindings getKeyBindings()

getCurrenKeyBindingName

public String getCurrenKeyBindingName()
Returns:
the currenKeyBindingName

asProperties

public Properties asProperties()

getPropertiesFileComment

public String getPropertiesFileComment()
Get's comment string for properties file.

Returns:
comment string for properties file.

isUpgradePropertiesFile

public boolean isUpgradePropertiesFile()
Returns:
the upgradePropertiesFile

defaultProperties

public static JIvaloEditorProperties defaultProperties()
                                                throws InvalidClassException,
                                                       InvalidObjectException
Get's current default properties.

Returns:
default jIvaloEditor properties.
Throws:
InvalidClassException
InvalidObjectException


Copyright © 2006-2007 SourceForge.net. All Rights Reserved.