PHP 클래스 Prado\Web\UI\WebControls\TImageMap

TImageMap represents an image on a page. Hotspot regions can be defined within the image. Depending on the {@link setHotSpotMode HotSpotMode}, clicking on the hotspots may trigger a postback or navigate to a specified URL. The hotspots defined may be accessed via {@link getHotSpots HotSpots}. Each hotspot is described as a {@link THotSpot}, which can be a circle, rectangle, polygon, etc. To add hotspot in a template, use the following,
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TImage, implements Prado\Web\UI\IPostBackEventHandler
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
addParsedObject ( $object ) Processes an object that is created during parsing template.
getHotSpotMode ( ) : THotSpotMode
getHotSpots ( ) : THotSpotCollection
getTarget ( ) : string
onClick ( $param ) Raises OnClick event.
raisePostBackEvent ( $param ) Raises the postback event.
render ( $writer ) Renders this imagemap.
setHotSpotMode ( $value ) Sets the behavior of hotspot regions in this imagemap when they are clicked.
setTarget ( $value )

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attribute name-value pairs to renderer.
getClientClassName ( ) : string Gets the name of the javascript class responsible for performing postback for this control.

메소드 상세

addAttributesToRender() 보호된 메소드

This overrides the parent implementation with additional imagemap specific attributes.
protected addAttributesToRender ( $writer )

addParsedObject() 공개 메소드

This method adds {@link THotSpot} objects into the hotspot collection of the imagemap.
public addParsedObject ( $object )

getClientClassName() 보호된 메소드

This method overrides the parent implementation.
protected getClientClassName ( ) : string
리턴 string the javascript class name

getHotSpotMode() 공개 메소드

public getHotSpotMode ( ) : THotSpotMode
리턴 THotSpotMode the behavior of hotspot regions in this imagemap when they are clicked. Defaults to THotSpotMode::NotSet.

getHotSpots() 공개 메소드

public getHotSpots ( ) : THotSpotCollection
리턴 THotSpotCollection collection of hotspots defined in this imagemap.

getTarget() 공개 메소드

public getTarget ( ) : string
리턴 string the target window or frame to display the new page when a hotspot region is clicked within the imagemap. Defaults to ''.

onClick() 공개 메소드

This method is invoked when a hotspot region is clicked within the imagemap. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
public onClick ( $param )

raisePostBackEvent() 공개 메소드

This method is required by {@link IPostBackEventHandler} interface. This method is mainly used by framework and control developers.
public raisePostBackEvent ( $param )

render() 공개 메소드

Renders this imagemap.
public render ( $writer )

setHotSpotMode() 공개 메소드

If an individual hotspot has a mode other than 'NotSet', the mode set in this imagemap will be ignored. By default, 'NotSet' is equivalent to 'Navigate'.
public setHotSpotMode ( $value )

setTarget() 공개 메소드

public setTarget ( $value )