Class: TTK_Container

Source Location: Program_Root/ticatk/widgets/container.inc

Class Overview

TTK_TKNode
   |
   --TTK_Widget
      |
      --TTK_Container

TicaTK Container

Author(s):

Version:

  • $Revision: 1.8 $

Copyright:

  • © 2001, 2002, 2003 Coleebris

Variables

Methods


Child classes:

Inherited Variables

Inherited Methods

Class: TTK_Widget

constructor TTK_Widget ( &$ticatk, [$id = false] )
TTK_Widget constructor
label_format ( $v )
Html format trim() + htmlentities()
set_img ( $attname, $imgsrc, [$local = false] )
As set_attr() with automatic adding of image size
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
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

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 Container

Tags:

[ Top ]


Class Variables


Class Methods

get_align

string get_align ( )

Get the relative horizontal alignement to others containers

Tags:

Parameters:

[ Top ]

get_content

void get_content ( )

Tags:

Parameters:

[ Top ]

get_valign

string get_valign ( )

Get the relative vertical alignement to others containers

Tags:

Parameters:

[ Top ]

get_weight

int get_weight ( $value )

Get the relative weight to others containers

Tags:

Parameters:

[ Top ]

is_autoresizewin

void is_autoresizewin ( )

Tags:

Parameters:

[ Top ]

is_autoscroll

void is_autoscroll ( )

Tags:

Parameters:

[ Top ]

is_droptarget

void is_droptarget ( )

Tags:

Parameters:

[ Top ]

set_align

void set_align ( $value )

Set the relative horizontal alignement to others containers

Tags:

Parameters:

  • string $value - ("left" | "center" | "right")

[ Top ]

set_autoresizewin

void set_autoresizewin ( $value )

Tags:

Parameters:

[ Top ]

set_autoscroll

void set_autoscroll ( $autoscroll )

Tags:

Parameters:

[ Top ]

set_content

void set_content ( $content )

Tags:

Parameters:

[ Top ]

set_droptarget

void set_droptarget ( $value )

Tags:

Parameters:

[ Top ]

set_valign

void set_valign ( $value )

Set the relative vertical alignement to others containers

Tags:

Parameters:

  • string $value - ("top" | "middle" | "bottom")

[ Top ]

set_weight

void set_weight ( $value )

Set the relative weight to others containers

Tags:

Parameters:

  • int $value -

[ Top ]

constructor TTK_Container

void constructor TTK_Container ( &$ticatk, [$id = false], [$align = false], [$valign = false], [$weight = false], [$autoscroll = false], [$droptarget = false], [$autoresizewin = false] )

TTK_Container constructor

Tags:

Parameters:

  • object $ticatk - TTK_TicaTK
  • string $id - Identity
  • string $align - Relative horizontal alignement to others containers ("left" | "center" | "right")
  • string $valign - Relative vertical alignement to others containers ("top" | "middle" | "bottom")
  • int $weight - Relative weight to others containers
  • boolean $autoscroll - Display scrollbar if needed
  • boolean $droptarget - Accept drag object
  • boolean $autoresizewin - Automaticaly resize parent window to view all content

[ Top ]


Documention generated on Mon, 17 Feb 2003 16:18:24 +0100 by phpDocumentor 1.1.0