|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.ponec.ppSee.api.Note
A representative of a language text. The class solves a problems about national characters, special HTML characters etc.
| Field Summary | |
static byte |
FORMAT_HTM
Output text has allowed HTML tags. |
static byte |
FORMAT_HTM_FREE
Output text must be HTML tag free. |
static byte |
FORMAT_JS
Format for Javascript. |
static byte |
FORMAT_TIP
Format for tooltip. |
| Constructor Summary | |
Note()
Creates the empty instance of Note. |
|
Note(Note note)
Creates a new instance of Note. |
|
Note(java.lang.String text)
Creates a new instance of Note. |
|
Note(java.lang.String text,
boolean clearText)
Creates a new instance of Note. |
|
Note(java.lang.String text,
byte format)
Creates a new instance of Note. |
|
| Method Summary | |
Note |
add(Note note)
Concatenates the specified Note to the end of this Note. |
Note |
add(java.lang.Object note)
Concatenates the specified Note to the end of this Note. |
byte |
getFormat()
Returns a type of format for a target processing in future. |
Note |
getNoteClear()
Returns the text for a HTML output like a HTML free. |
Note |
getNoteHtml()
Output can contains with HTML tags. |
Note |
getNoteJs()
Returns the text for a Javascript. |
Note |
getNoteTip()
Returns the text for a tooltip. |
boolean |
isEmpty()
Returns a true if the text is empty or if the text contains some blank characters only. |
boolean |
isNoted()
Returns true, if text contains a NOTE formatting. |
java.lang.String |
toString()
Get a text method. |
Note |
trim()
Trim a text from left and right. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte FORMAT_HTM
public static final byte FORMAT_HTM_FREE
public static final byte FORMAT_JS
public static final byte FORMAT_TIP
| Constructor Detail |
public Note(java.lang.String text,
byte format)
text - A Language text (note).format - A format for a future processing.FORMAT_TIP,
FORMAT_JS,
FORMAT_HTM_FREE,
FORMAT_HTMpublic Note(java.lang.String text)
text - A Language text (note).public Note(Note note)
public Note()
public Note(java.lang.String text,
boolean clearText)
text - A Language text (note).clearText - Set True, if the text does not contain a HTML tags.
If the parameter is true the all special HTML characters will be converted.| Method Detail |
public boolean isNoted()
public Note add(Note note)
note - the Note that is concatenated to the end
of this Note.
public Note add(java.lang.Object note)
note - the Note that is concatenated to the end
of this Note.
If parameter object does not have a String type,
the method toString() is used.
public java.lang.String toString()
public Note getNoteTip()
public Note getNoteJs()
public Note getNoteClear()
public Note getNoteHtml()
public byte getFormat()
FORMAT_TIP,
FORMAT_JS,
FORMAT_HTM_FREE,
FORMAT_HTMpublic Note trim()
public boolean isEmpty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||