|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.common.helpers.CreatedHelper
public class CreatedHelper
Field Summary | |
---|---|
static int |
BREAK_DEFAULT
Default number of lines skipped in a line break |
protected AActivitySpace |
m_asOwner
|
protected HTMLList |
m_myList
|
protected IObjEditorModelRO |
m_myModel
|
static int |
OFFSET_DEFAULT
Indentation offset for displaying indented HTML |
Constructor Summary | |
---|---|
CreatedHelper(AActivitySpace asOwner)
Creates a new CreatedHelper object. |
|
CreatedHelper(AActivitySpace asOwner,
IObjEditorModelRO myModel)
Creates a new CreatedHelper object. |
Method Summary | |
---|---|
void |
addJobJavascript(HTMLScript myScript)
|
void |
beginList(HTMLElementCollection result)
|
void |
displayEmptyRow(HTMLElementCollection result)
|
void |
displayEmptyRow(HTMLElementCollection result,
int breaks)
|
void |
displayEveryoneWarning(HTMLElementCollection result,
IModelRO objectModel,
java.lang.String strObjectType)
This function adds a warning message to the HTMLElementCollection passed in if the everyone group has access to the object whose editor model is passed in. |
void |
displayJobList(HTMLElementCollection result,
ISelectPTObjectModelRO jobmodel)
|
void |
displayJobRows(HTMLElementCollection result,
java.lang.String ifhasjobs,
java.lang.String ifnojobs)
|
void |
displayListRow(HTMLElement content)
Displays an element in a list formatted as content (no label) |
void |
displayListRow(java.lang.String label)
Displays an element in a list formatted as a label (no content) |
void |
displayListRow(java.lang.String label,
HTMLElement content)
Displays a row in a list with optional label and content |
void |
displayListRowAnchor(HTMLElementCollection result,
java.lang.String strText,
java.lang.String strOnClick)
Displays an arbitrary anchor link as part of a list. |
void |
displayNoJobsAnchors(HTMLElementCollection result)
Displays the links for adding to an existing job and creating a new job |
void |
displaySuccessMessage(HTMLElementCollection result,
java.lang.String strObjectType,
java.lang.String strObjectName,
java.lang.String strParentPath)
This function displays the standard successfully created message, adding the object name and its parent folder path |
void |
displayTextRow(HTMLElementCollection result,
int offset,
java.lang.String label,
java.lang.String value)
Displays a row of text containing a label and a value with an optional indentation offset |
void |
displayTextRow(HTMLElementCollection result,
int offset,
java.lang.String label,
java.lang.String value,
int breaks)
|
void |
displayTextRow(HTMLElementCollection result,
java.lang.String label,
java.lang.String value)
Displays a row of text containing a label and a value (e.g. |
void |
displayTextRow(HTMLElementCollection result,
java.lang.String label,
java.lang.String value,
int breaks)
Displays a row of text containing a label and a value with optional line breaks |
void |
displayWarning(HTMLElementCollection result,
java.lang.String strWarningText)
Displays the string "Warning:", then a line break, then some text |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OFFSET_DEFAULT
public static final int BREAK_DEFAULT
protected AActivitySpace m_asOwner
protected HTMLList m_myList
protected IObjEditorModelRO m_myModel
Constructor Detail |
---|
public CreatedHelper(AActivitySpace asOwner)
asOwner
- public CreatedHelper(AActivitySpace asOwner, IObjEditorModelRO myModel)
asOwner
- myModel
- Method Detail |
---|
public void addJobJavascript(HTMLScript myScript)
myScript
-
HTMLException
public void beginList(HTMLElementCollection result)
result
-
HTMLException
public void displayEmptyRow(HTMLElementCollection result)
result
-
HTMLException
public void displayEmptyRow(HTMLElementCollection result, int breaks)
result
- breaks
-
HTMLException
public void displayJobList(HTMLElementCollection result, ISelectPTObjectModelRO jobmodel)
result
- jobmodel
-
HTMLException
public void displayJobRows(HTMLElementCollection result, java.lang.String ifhasjobs, java.lang.String ifnojobs)
result
- ifhasjobs
- ifnojobs
-
HTMLException
public void displaySuccessMessage(HTMLElementCollection result, java.lang.String strObjectType, java.lang.String strObjectName, java.lang.String strParentPath)
result
- - The HTML being displayed on the pagestrObjectType
- - The type of object being createdstrObjectName
- - The name of the object that has been createdstrParentPath
- - The parent folder path for the object that has
been createdpublic void displayEveryoneWarning(HTMLElementCollection result, IModelRO objectModel, java.lang.String strObjectType)
result
- - The HTML being displayedobjectModel
- - The model for the object being createdstrObjectType
- - The type of the object being created (e.g. Data
Source)public void displayWarning(HTMLElementCollection result, java.lang.String strWarningText)
result
- - The HTMLElementCollection being modifiedstrWarningText
- - The warning text to displaypublic void displayListRow(java.lang.String label)
label
-
HTMLException
public void displayListRow(HTMLElement content)
content
- The content to display
HTMLException
public void displayListRow(java.lang.String label, HTMLElement content)
label
- content
-
HTMLException
public void displayNoJobsAnchors(HTMLElementCollection result)
result
- - the HTMLElementCollection being modified
HTMLException
public void displayListRowAnchor(HTMLElementCollection result, java.lang.String strText, java.lang.String strOnClick)
result
- - the HTMLElementCollection being modifiedstrText
- - The text of the link to displaystrOnClick
- - The javascript function name (including
arguments) to call in the OnClick event
HTMLException
public void displayTextRow(HTMLElementCollection result, java.lang.String label, java.lang.String value)
result
- The HTMLElementCollection being modifiedlabel
- The labelvalue
- The value
HTMLException
public void displayTextRow(HTMLElementCollection result, int offset, java.lang.String label, java.lang.String value)
result
- The HTMLElementCollection being modifiedoffset
- The offset (indent spaces)label
- The labelvalue
- The value
HTMLException
public void displayTextRow(HTMLElementCollection result, java.lang.String label, java.lang.String value, int breaks)
result
- The HTMLElementCollection being modifiedlabel
- The labelvalue
- The valuebreaks
- The number of line breaks
HTMLException
public void displayTextRow(HTMLElementCollection result, int offset, java.lang.String label, java.lang.String value, int breaks)
offset
- # of left , <0 use default, 0 none, >0 use specifiedlabel
- 1st non bold part of text, null OKvalue
- 2nd bold part of text, null OKbreaks
- # of trailing
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |