JIDE 3.5.15

com.jidesoft.editor
Interface LineBreak

All Known Implementing Classes:
CodeEditor, LazyLoadDocument, SyntaxDocument

public interface LineBreak

An interface defined all kind of constants related to line breaks.


Field Summary
static char CR
          CR.
static char LF
          LF.
static int LINE_BREAK_CODE_EDITOR
          The link break used by CodeEditor.
static int LINE_BREAK_MAC
          The Mac 9 line break style.
static int LINE_BREAK_MIXED
          Mix line breaks.
static int LINE_BREAK_PC
          The PC line break style.
static int LINE_BREAK_UNIX
          The UNIX line break style.
static int LINE_BREAK_UNKNOWN
          Unknown.
static String STRING_CR
          CR.
static String STRING_CR_LF
          CR+LF.
static String STRING_LF
          LF.
 

Field Detail

CR

static final char CR
CR. It is '\r'.

See Also:
Constant Field Values

LF

static final char LF
LF. It is '\n'.

See Also:
Constant Field Values

STRING_CR

static final String STRING_CR
CR. It is "\r".

See Also:
Constant Field Values

STRING_LF

static final String STRING_LF
LF. It is "\n".

See Also:
Constant Field Values

STRING_CR_LF

static final String STRING_CR_LF
CR+LF. It is "\n\r".

See Also:
Constant Field Values

LINE_BREAK_CODE_EDITOR

static final int LINE_BREAK_CODE_EDITOR
The link break used by CodeEditor. In CodeEditor, we will convert the text to use a single line break style. That is LF only. Although it is the same as UNIX line break style, it has nothing to do with UNIX. We could choose any char as the line break and end user shouldn't even know because we will convert it to use the correct line break when user gets the text from the CodeEditor.

See Also:
Constant Field Values

LINE_BREAK_PC

static final int LINE_BREAK_PC
The PC line break style. It is CR + LF.

See Also:
Constant Field Values

LINE_BREAK_UNIX

static final int LINE_BREAK_UNIX
The UNIX line break style. It is LF only.

See Also:
Constant Field Values

LINE_BREAK_MAC

static final int LINE_BREAK_MAC
The Mac 9 line break style. It is CR only.

See Also:
Constant Field Values

LINE_BREAK_MIXED

static final int LINE_BREAK_MIXED
Mix line breaks. This means the text has mixed usage of different line break styles. When CodeEditor loads a text that has mixed line breaks, CodeEditor.getLineBreakStyle() will return the default line breaks depending on the platform. However if you want to know if the text has mixed line breaks, you can use CodeEditor.isLineBreakStyleMixed() to find out.

See Also:
Constant Field Values

LINE_BREAK_UNKNOWN

static final int LINE_BREAK_UNKNOWN
Unknown. It means there is no line break in the given text.

See Also:
Constant Field Values

JIDE 3.5.15