Child classes:
TTK_ToolBar, TTK_Tree, TTK_Node, TTK_Form, TTK_Backtoolbar, TTK_Menu, TTK_Timer, TTK_Button, TTK_Calendar, TTK_Window, TTK_MenuItem, TTK_ContainerInherited Variables
Inherited Methods
Class: TTK_TKNode
- constructor TTK_TKNode ( &$ticatk, &$doc, [$id = false] )
- TTK_TKNode Constructor
- &append_child ( $obj )
- Append a node
- close ( )
- Delete the node
- get_attr ( $attr )
- Get value of a node attribute
- get_bool_attr ( $attr )
- Get boolean value of a node attribute
- &get_child ( $id )
- Get a child by id.
- get_childs ( )
- Get node's childs
- get_id ( )
- Get the node's id
- get_id_attr ( $attr, [$return_object = true] )
- Get value of a node attribute with optional automatic from value to an instance of TTK_TKNode (or subclass)
- &get_parent ( )
- Get the parent node
- &get_ttk_object ( $node, $ticatk )
- Map and return a TTK object from a DomNode
- remove ( )
- Remove the node from parent
- set_attr ( $attr, $value, [$local = false] )
- Set value of a node attribute
- set_bool_attr ( $attr, $value, [$local = false] )
- Set boolean value of a node attribute
- set_id_attr ( $attr, $value, [$local = false] )
- Set value of a node attribute with automatic conversion of value to id if value is an instance of TTK_TKNode (or subclass)
- _associate ( $ticatk, $domnode )
- Associate a DomNode to this node
Class Details
TicaTK Widget base class
Tags:
- Package - TicaTK
- Author - CS <csollet@coleebris.com>
- Version - $Revision: 1.5 $
- Copyright - © 2001, 2002, 2003 Coleebris
[ Top ]
Class Variables
Class Methods
label_format
string label_format ( $v )
Html format
trim() + htmlentities()
Tags:
Parameters:
- string $v -
[ Top ]
set_img
void set_img ( $attname, $imgsrc, [$local = false] )
As set_attr() with automatic adding of image size
Tags:
- See - TTK_ImgSize::set_img_size()
- See - TTK_TKNode::set_attr()
Parameters:
- string $attr - The attribute name
- string $imgsrc - The attribute value
- boolean $local - The change must not be reflected on the client side
[ Top ]
constructor TTK_Widget
void constructor TTK_Widget ( &$ticatk, [$id = false] )
TTK_Widget constructor
Tags:
Parameters:
[ Top ]
watch_attr
void watch_attr ( $attr, $callback )
Register a callback which will be called whenever this widget have specified attribute modified by the client
The callback will be called with two arguments : this object and the attribute name
Tags:
Parameters:
- string $attr - attribute to watch
- mixed $callback - The callback (function name or array(& object, "method name"))
[ Top ]
watch_close
void watch_close ( $callback )
Register a callback which will be called whenever this widget is closed by the client
The callback will be called with one argument : this object id
Tags:
Parameters:
- mixed $callback - The callback (function name or array(& object, "method name"))
[ Top ]
