|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
static final char CR
static final char LF
static final String STRING_CR
static final String STRING_LF
static final String STRING_CR_LF
static final int LINE_BREAK_CODE_EDITOR
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
.
static final int LINE_BREAK_PC
static final int LINE_BREAK_UNIX
static final int LINE_BREAK_MAC
static final int LINE_BREAK_MIXED
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.
static final int LINE_BREAK_UNKNOWN
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |