|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.xpshared.htmlconstructs.PTListItem
public abstract class PTListItem
Constructor Summary | |
---|---|
PTListItem(HTMLAnchor a)
Call this method to construct a new PTListItem. |
|
PTListItem(java.lang.String title)
Call this method to construct a new PTListItem. |
|
PTListItem(java.lang.String title,
java.lang.String titleHRef)
Call this method to construct a new PTListItem. |
Method Summary | |
---|---|
void |
AddItemCellsToRow(HTMLTableRow myRow)
Call this method to add HTMLTableCell objects describing this item to the passed HTMLTableRow. |
void |
AddProperty(java.lang.String sName,
java.lang.String sVal)
Call this method to add a name/value property pair to this item. |
void |
AddSubLink(HTMLAnchor a,
boolean bNew,
boolean bUpdated)
Call this method to add a sublink to this list item. |
void |
AllowBreaksInMainCell()
Call this method to allow line breaks added to the main cell of this item. |
void |
EnableCheckbox(java.lang.String checkboxName,
java.lang.String checkboxValue,
java.lang.String checkboxAlt,
boolean bSelected)
Call this method to cause this item to display a checkbox input. |
void |
EnableSelectionInput(HTMLInputTypes type,
java.lang.String inputName,
java.lang.String inputValue,
java.lang.String inputAlt,
boolean bSelected)
Call this method to cause this item to display a selection input allowing the user to select this item among the list of items. |
java.lang.String |
GetCellHeight()
|
HTMLAnchor |
GetEditAnchor()
|
HTMLTable |
GetItemAsTable()
Call this method to obtain an HTMLTable that will render this list item as it is currently configured. |
protected abstract HTMLElement |
GetNewIndicator()
|
HTMLAnchor |
GetPreviewAnchor()
|
HTMLInput |
GetSelectionInput()
|
protected abstract HTMLElement |
GetUpdatedIndicator()
|
void |
SetAlwaysDrawEditItemCell(boolean b)
Call this method to force this item to draw the HTMLTableCell in which the edit button is nested whether the edit button is set or not. |
void |
SetAlwaysDrawItemPreviewCell(boolean b)
Call this method to force this item to draw the HTMLTableCell in which the preview button is nested whether the preview button is set or not. |
void |
SetAlwaysDrawItemTypeCell(boolean b)
Call this method to force this item to draw the HTMLTableCell in which the item type image is nested whether the item type image is set or not. |
void |
SetAlwaysDrawSelectionInputCell(boolean b)
Call this method to force this item to draw the HTMLTableCell in which the selection input is nested whether the selection input is set or not. |
void |
SetApprovalStateImage(PTImageType image,
java.lang.String imgAlt)
|
void |
SetCellHeight(java.lang.String s)
|
void |
SetDescription(java.lang.String s)
Call this method to set the description for this list item. |
void |
SetItemEditButton(PTImageType image,
java.lang.String imgAlt,
java.lang.String editHRef)
Call this method to set the image/href that allows users to edit this item. |
void |
SetItemPreviewButton(PTImageType image,
java.lang.String imgAlt,
java.lang.String previewHRef)
Call this method to set the image/href that allows users to preview this item. |
void |
SetItemTypeImage(HTMLImg image)
|
void |
SetItemTypeImage(PTImageType image,
java.lang.String imgAlt)
Call this method to set the image that indicates the type of this item. |
void |
SetMaxNumSubLinksDisplayed(int i)
Call this method to set the maximum number of sub links displayed with this item. |
void |
SetNew(boolean b)
Call this method to toggle the newness of this list item. |
void |
SetPropertiesLink(HTMLAnchor a)
Call this method to set the properties link on this list item. |
void |
SetRowStyleClass(PTStyleClass styleClass)
Call this method to set the style class for the HTMLTableRow rendering this item. |
void |
SetTableStyleClass(PTStyleClass s)
|
void |
SetTitle(java.lang.String s)
|
void |
SetTitle(java.lang.String s,
java.lang.String sHref)
|
void |
SetTitleStyleClass(PTStyleClass s)
|
void |
SetUpdated(boolean b)
Call this method to toggle the updatedness of this list item. |
void |
SuppressBreaksInMainCell()
Call this method to supress line breaks added to the main cell of this item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PTListItem(java.lang.String title, java.lang.String titleHRef)
title
- Pass a String that is the title of this item.titleHRef
- Pass a String that is the href of this title.public PTListItem(java.lang.String title)
title
- Pass a String that is the title of this item.public PTListItem(HTMLAnchor a)
a
- Pass the HTMLAnchor that will appear as the title of this item.Method Detail |
---|
protected abstract HTMLElement GetNewIndicator()
protected abstract HTMLElement GetUpdatedIndicator()
public HTMLAnchor GetEditAnchor()
public HTMLAnchor GetPreviewAnchor()
public void SetTitle(java.lang.String s)
public void SetTitle(java.lang.String s, java.lang.String sHref)
public void SuppressBreaksInMainCell()
public void AllowBreaksInMainCell()
public void AddItemCellsToRow(HTMLTableRow myRow)
myRow
- HTMLTableRow
HTMLException
public void AddProperty(java.lang.String sName, java.lang.String sVal)
sName
- String namesVal
- String valuepublic void AddSubLink(HTMLAnchor a, boolean bNew, boolean bUpdated)
a
- HTMLAnchorm_bNew
- booleanm_bUpdated
- booleanpublic void EnableCheckbox(java.lang.String checkboxName, java.lang.String checkboxValue, java.lang.String checkboxAlt, boolean bSelected)
checkboxName
- Pass a String that is the name of this checkbox.checkboxValue
- checkboxAlt
- Pass a String that is the alt attribute of this
checkbox.bSelected
- whether on not this input is checkedpublic void EnableSelectionInput(HTMLInputTypes type, java.lang.String inputName, java.lang.String inputValue, java.lang.String inputAlt, boolean bSelected)
type
- HTMLInputType should be either radio or checkbox.inputName
- String input nameinputValue
- String input valueinputAlt
- String input altbSelected
- whether on not this input is checkedpublic HTMLInput GetSelectionInput()
public java.lang.String GetCellHeight()
public HTMLTable GetItemAsTable()
HTMLException
public void SetAlwaysDrawEditItemCell(boolean b)
b
- booleanpublic void SetAlwaysDrawItemPreviewCell(boolean b)
b
- booleanpublic void SetAlwaysDrawItemTypeCell(boolean b)
b
- booleanpublic void SetAlwaysDrawSelectionInputCell(boolean b)
b
- booleanpublic void SetApprovalStateImage(PTImageType image, java.lang.String imgAlt)
image
- imgAlt
- public void SetCellHeight(java.lang.String s)
s
- public void SetDescription(java.lang.String s)
s
- Stringpublic void SetItemEditButton(PTImageType image, java.lang.String imgAlt, java.lang.String editHRef)
image
- Pass a PTImageType that contains the edit button image.imgAlt
- Pass a String that is the alt attribute of this image.editHRef
- Pass the HRef that redirect the user to a page allowing
this item to be edited. Pass null, and the edit button will be
merely and edit image.public void SetItemPreviewButton(PTImageType image, java.lang.String imgAlt, java.lang.String previewHRef)
image
- Pass a PTImageType that contains the preview button image.imgAlt
- Pass a String that is the alt attribute of this image.previewHRef
- Pass the HRef that redirect the user to a page
allowing this item to be pre viewed.public void SetItemTypeImage(PTImageType image, java.lang.String imgAlt)
image
- Pass a PTImageType that indicates the image describing this
item's type.imgAlt
- Pass a String that is the alt attribute of this image.public void SetItemTypeImage(HTMLImg image)
image
- public void SetMaxNumSubLinksDisplayed(int i)
i
- intpublic void SetNew(boolean b)
b
- booleanpublic void SetPropertiesLink(HTMLAnchor a)
a
- HTMLAnchor linkpublic void SetRowStyleClass(PTStyleClass styleClass)
styleClass
- Pass a PTStyleClass.public void SetTableStyleClass(PTStyleClass s)
s
- public void SetTitleStyleClass(PTStyleClass s)
s
- public void SetUpdated(boolean b)
b
- boolean
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |