com.alee.extended.syntax
Enum SyntaxPreset

java.lang.Object
  extended by java.lang.Enum<SyntaxPreset>
      extended by com.alee.extended.syntax.SyntaxPreset
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SyntaxPreset>

public enum SyntaxPreset
extends java.lang.Enum<SyntaxPreset>

Custom settings presets for WebSyntaxArea.

Author:
Mikle Garin

Enum Constant Summary
base
           
css
           
darkTheme
           
eclipseTheme
           
editable
           
hideMenu
           
historyLimit
           
html
           
ideaTheme
           
java
           
js
           
margin
           
none
           
opaque
           
php
           
size
           
sql
           
transparent
           
viewable
           
vsTheme
           
xml
           
 
Method Summary
abstract  void apply(WebSyntaxArea syntaxArea)
          Applies syntax preset to the specified WebSyntaxArea.
static SyntaxPreset getSyntaxPreset(java.io.File file)
          Returns syntax preset for the specified file.
static SyntaxPreset getSyntaxPreset(java.lang.String file)
          Returns syntax preset for the specified file name.
 PresetType getType()
          Returns SyntaxPreset type.
static SyntaxPreset valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SyntaxPreset[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

base

public static final SyntaxPreset base

size

public static final SyntaxPreset size

margin

public static final SyntaxPreset margin

historyLimit

public static final SyntaxPreset historyLimit

viewable

public static final SyntaxPreset viewable

editable

public static final SyntaxPreset editable

hideMenu

public static final SyntaxPreset hideMenu

transparent

public static final SyntaxPreset transparent

opaque

public static final SyntaxPreset opaque

java

public static final SyntaxPreset java

xml

public static final SyntaxPreset xml

html

public static final SyntaxPreset html

css

public static final SyntaxPreset css

js

public static final SyntaxPreset js

php

public static final SyntaxPreset php

sql

public static final SyntaxPreset sql

none

public static final SyntaxPreset none

ideaTheme

public static final SyntaxPreset ideaTheme

darkTheme

public static final SyntaxPreset darkTheme

vsTheme

public static final SyntaxPreset vsTheme

eclipseTheme

public static final SyntaxPreset eclipseTheme
Method Detail

values

public static SyntaxPreset[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SyntaxPreset c : SyntaxPreset.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SyntaxPreset valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getType

public PresetType getType()
Returns SyntaxPreset type.

Returns:
SyntaxPreset type

apply

public abstract void apply(WebSyntaxArea syntaxArea)
Applies syntax preset to the specified WebSyntaxArea.

Parameters:
syntaxArea - WebSyntaxArea

getSyntaxPreset

public static SyntaxPreset getSyntaxPreset(java.io.File file)
Returns syntax preset for the specified file.

Parameters:
file - file
Returns:
syntax preset for the specified file

getSyntaxPreset

public static SyntaxPreset getSyntaxPreset(java.lang.String file)
Returns syntax preset for the specified file name.

Parameters:
file - file name
Returns:
syntax preset for the specified file name