public static class OwFieldManagerControlNote.OwNote extends Object
Convenient class for holding a note.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwFieldManagerControlNote.OwNote(Locale locale_p,
String user_p,
String timestamp_p,
String content_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
appendContent(String content_p)
Append m_content to this note.
|
static OwFieldManagerControlNote.OwNote |
buildNote(Locale locale_p,
String rawNoteText_p)
Build a note object from a String object.
|
static OwFieldManagerControlNote.OwNote |
buildNoteFromOldContent(Locale locale_p,
String rawNoteText_p)
Build a note object from a String object (old style m_notes).
|
boolean |
equals(Object o_p) |
String[] |
getContentLines()
Get the note m_content as lines.
|
String |
getFormatedNote()
Get note m_content.
|
String |
getHeader()
Get the note header
|
int |
getSize()
Get the size of this note.
|
int |
hashCode() |
void |
setShortenThreshold(int threshold_p)
Set the threshold for shortening note.
|
void |
setShouldShortenNote(boolean shouldShortNote_p)
Set the shouldShortNote flag.
|
String |
toString() |
public boolean equals(Object o_p)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getFormatedNote()
public String getHeader()
public int getSize()
public void appendContent(String content_p)
content_p
- - the m_content to be added.public String[] getContentLines()
public static OwFieldManagerControlNote.OwNote buildNote(Locale locale_p, String rawNoteText_p) throws OwFieldManagerControlNote.OwNoteException
locale_p
- the current locale.rawNoteText_p
- - the m_content.OwFieldManagerControlNote.OwNoteException
- - when a note cannot be created from the given text.public static OwFieldManagerControlNote.OwNote buildNoteFromOldContent(Locale locale_p, String rawNoteText_p) throws OwFieldManagerControlNote.OwNoteException
locale_p
- - the current localerawNoteText_p
- - the m_content.OwFieldManagerControlNote.OwNoteException
- - thrown when the note cannot be created.public String toString()
toString
in class Object
Object.toString()
public void setShouldShortenNote(boolean shouldShortNote_p)
shouldShortNote_p
- - the flag.public void setShortenThreshold(int threshold_p)
threshold_p
- - the value of threshold.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.