PHP 클래스 Prado\Web\UI\ActiveControls\TActiveTableRow

TActiveTableRow is the active counterpart to the original {@link TTableRow} control and displays a table row. The table cells in the row can be accessed via {@link getCells Cells}. The horizontal and vertical alignments of the row are specified via {@link setHorizontalAlign HorizontalAlign} and {@link setVerticalAlign VerticalAlign} properties, respectively. TActiveTableRow allows the contents of the table row to be changed during callback. When {@link onRowSelected RowSelected} property is set, selecting (clicking on) the row will perform a callback request causing {@link onRowSelected OnRowSelected} event to be fired. It will also respond to a bubbled {@link onCellSelected OnCellSelected} event of a {@link TActiveTableCell} child control and fire a {@link onRowSelected OnRowSelected} event. TActiveTableRow allows the client-side row contents to be updated during a callback response by getting a new writer, invoking the render method and flushing the output, similar to a {@link TActivePanel} control. function callback_request($sender, $param) { $this->active_row->render($param->getNewWriter()); } Please refer to the original documentation of the regular counterpart for usage.
부터: 3.1.9
저자: LANDWEHR Computer und Software GmbH ([email protected])
상속: extends Prado\Web\UI\WebControls\TTableRow, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler, implements Prado\Web\UI\ActiveControls\IActiveControl
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter.
bubbleEvent ( $sender, $param ) : boolean This method overrides parent's implementation and raises the control's callback event. This will fire the {@link onRowSelected OnRowSelected} event if an appropriate event handler is implemented.
getActiveControl ( ) : TBaseActiveCallbackControl
getClientSide ( ) : TCallbackClientSide
getRowIndex ( ) : integer Returns the zero-based index of the TActiveTableRow within the {@link TTableRowCollection} of the parent {@link TTable} control. Raises a {@link TConfigurationException} if the row is no member of the row collection.
getTable ( ) : TTable Returns the parent {@link TTable} control by looping through all parents until a {@link TTable} is found. Raises a {@link TConfigurationException} if no table control is found.
onRowSelected ( $param ) This method is invoked when a callback is requested. The method raises 'OnRowSelected' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
raiseCallbackEvent ( $param ) Raises the callback event. This method is required by {@link ICallbackEventHandler} interface. It will raise {@link onRowSelected OnRowSelected} event with a {@link TActiveTableRowEventParameter} containing the zero-based index of the TActiveTableRow.
render ( $writer ) Renders and replaces the row's content on the client-side. When render() is called before the OnPreRender event, such as when render() is called during a callback event handler, the rendering is defered until OnPreRender event is raised.

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control if the event handler for the {@link onRowSelected OnRowSelected} event is set.
getClientClassName ( ) : string
getPostBackOptions ( ) : array Returns postback specifications for the table row.

메소드 상세

__construct() 공개 메소드

Creates a new callback control, sets the adapter to TActiveControlAdapter.
public __construct ( )

addAttributesToRender() 보호된 메소드

Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control if the event handler for the {@link onRowSelected OnRowSelected} event is set.
protected addAttributesToRender ( $writer )

bubbleEvent() 공개 메소드

This method overrides parent's implementation and raises the control's callback event. This will fire the {@link onRowSelected OnRowSelected} event if an appropriate event handler is implemented.
public bubbleEvent ( $sender, $param ) : boolean
리턴 boolean whether the event bubbling should stop here.

getActiveControl() 공개 메소드

public getActiveControl ( ) : TBaseActiveCallbackControl
리턴 TBaseActiveCallbackControl standard callback control options.

getClientClassName() 보호된 메소드

protected getClientClassName ( ) : string
리턴 string corresponding javascript class name for this TActiveTableRow.

getClientSide() 공개 메소드

public getClientSide ( ) : TCallbackClientSide
리턴 TCallbackClientSide client side request options.

getPostBackOptions() 보호된 메소드

This method is used by framework and control developers.
protected getPostBackOptions ( ) : array
리턴 array parameters about how the row defines its postback behavior.

getRowIndex() 공개 메소드

Returns the zero-based index of the TActiveTableRow within the {@link TTableRowCollection} of the parent {@link TTable} control. Raises a {@link TConfigurationException} if the row is no member of the row collection.
public getRowIndex ( ) : integer
리턴 integer the zero-based index of the row

getTable() 공개 메소드

Returns the parent {@link TTable} control by looping through all parents until a {@link TTable} is found. Raises a {@link TConfigurationException} if no table control is found.
public getTable ( ) : TTable
리턴 Prado\Web\UI\WebControls\TTable the parent table control

onRowSelected() 공개 메소드

This method is invoked when a callback is requested. The method raises 'OnRowSelected' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
public onRowSelected ( $param )

raiseCallbackEvent() 공개 메소드

This method is mainly used by framework and control developers.
public raiseCallbackEvent ( $param )

render() 공개 메소드

Renders and replaces the row's content on the client-side. When render() is called before the OnPreRender event, such as when render() is called during a callback event handler, the rendering is defered until OnPreRender event is raised.
public render ( $writer )