SwatObject
└─SwatUIObject
└─SwatCellRendererContainer
└─SwatDetailsViewField
public class SwatDetailsViewField
extends SwatCellRendererContainer
| Field Summary | |
|---|---|
| string | The unique identifier of this field. |
| protected boolean | Whether or not this field is odd or even in its parent details view. |
| string | The title of this field. |
| string | Optional content type for the title. |
| SwatDetailsView | The SwatDetailsView associated with this field. |
| boolean | Whether or not this field is displayed. |
| Fields inherited from Swat.SwatCellRendererContainer | |
|---|---|
| renderers | |
| Fields inherited from Swat.SwatUIObject | |
|---|---|
| classes, html_head_entry_set, parent, visible | |
| Constructor Summary | |
|---|---|
SwatDetailsViewField(string id) Creates a new details view field. |
|
| Method Summary | |
|---|---|
| void | display(mixed data, boolean odd) Displays this details view field using a data object. |
| void | Displays the header for this details view field. |
| protected void | displayRenderers(mixed data) Renders each cell renderer in this details-view field. |
| void | displayValue(mixed data) Displays the value of this details view field. |
| protected array | Gets the base CSS class names of this details-view field. |
| protected array | Gets the array of CSS classes that are applied to this details-view field. |
| SwatHtmlHeadEntrySet | Gets the SwatHtmlHeadEntry objects needed by this field. |
| array | Gets the TD tag attributes for this column. |
| void | init() Initializes this field. |
| void | process() |
| Methods inherited from Swat.SwatCellRendererContainer | |
|---|---|
| addChild, addMappingToRenderer, addRenderer, copy, getDescendantStates, getDescendants, getFirstDescendant, getFirstRenderer, getHtmlHeadEntrySet, getRenderer, getRendererByPosition, getRendererInlineJavaScript, getRenderers, setDescendantStates | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public string $id = null
The unique identifier of this field
protected boolean $odd = false
Whether or not this field is odd or even in its parent details view
public string $title = ''
The title of this field
public string $title_content_type = 'text/plain'
Optional content type for the title
Default text/plain, use text/xml for XHTML fragments.
public SwatDetailsView $view = null
The SwatDetailsView associated with this field
public boolean $visible = true
Whether or not this field is displayed
public SwatDetailsViewField(string id)
Creates a new details view field
id - an optional unique ideitifier for this details view field.public void display(mixed data, boolean odd)
Displays this details view field using a data object
data - a data object used to display the cell renderers in this field.odd - whether this is an odd or even field so alternating style can be applied.public void displayHeader()
Displays the header for this details view field
protected void displayRenderers(mixed data)
Renders each cell renderer in this details-view field
data - the data object being used to render the cell renderers of this field.public void displayValue(mixed data)
Displays the value of this details view field
The properties of the cell renderers are set from the data object through the datafield property mappings.
data - the data object to display in this field.protected array getBaseCSSClassNames()
Gets the base CSS class names of this details-view field
This is the recommended place for field subclasses to add extra hard- coded CSS classes.
protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this details-view field
CSS classes are added to this field in the following order:
public SwatHtmlHeadEntrySet getHtmlHeadEntrySet()
Gets the SwatHtmlHeadEntry objects needed by this field
public array getTdAttributes()
Gets the TD tag attributes for this column
The returned array is of the form 'attribute' => value.
public void init()
Initializes this field
This calls init on all renderers in this field.
public void process()
A visible field in a SwatDetailsView