string
getAlternateText
()
string
getAttribute
(mixed $name)
Returns the list of custom attributes.
Custom attributes are name-value pairs that may be rendered as HTML tags' attributes.
boolean
getCausesValidation
()
string
getCoordinates
()
Redefined in descendants as:
boolean
getHasAttributes
()
string
getPostBackValue
()
string
getShape
()
Redefined in descendants as:
string
getValidationGroup
()
Returns a viewstate value.
This function is very useful in defining getter functions for component properties that must be kept in viewstate.
mixed
getViewState
(string $key, [mixed $defaultValue = null])
-
string
$key: the name of the viewstate value to be returned
-
mixed
$defaultValue: the default value. If $key is not found in viewstate, $defaultValue will be returned
boolean
hasAttribute
(mixed $name)
Removes the named attribute.
string
removeAttribute
(string $name)
-
string
$name: the name of the attribute to be removed.
void
setAccessKey
(string $value)
-
string
$value: the access key that allows you to quickly navigate to the HotSpot region.
void
setAlternateText
(string $value)
-
string
$value: the alternate text to display for a HotSpot object.
Sets a custom hotspot attribute.
void
setAttribute
(string $name, string $value)
-
string
$name: attribute name
-
string
$value: value of the attribute
void
setCausesValidation
(boolean $value)
-
boolean
$value: whether postback event trigger by this hotspot will cause input validation
-
THotSpotMode
$value: the behavior of a HotSpot object when it is clicked.
void
setNavigateUrl
(string $value)
-
string
$value: the URL to navigate to when a HotSpot object is clicked.
void
setPostBackValue
(string $value)
-
string
$value: a value that is post back when the HotSpot is clicked.
void
setTabIndex
(integer $value)
-
integer
$value: the tab index of the HotSpot region.
void
setTarget
(string $value)
-
string
$value: the target window or frame to display the new page when the HotSpot region is clicked.
void
setValidationGroup
(string $value)
-
string
$value: the group of validators which the hotspot causes validation upon postback
Sets a viewstate value.
This function is very useful in defining setter functions for control properties that must be kept in viewstate. Make sure that the viewstate value must be serializable and unserializable.
void
setViewState
(string $key, mixed $value, [mixed $defaultValue = null])
-
string
$key: the name of the viewstate value
-
mixed
$value: the viewstate value to be set
-
mixed
$defaultValue: default value. If $value===$defaultValue, the item will be cleared from the viewstate.
Inherited Methods
Inherited From TComponent
TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()