Class we_ui_abstract_AbstractElement

Description

Base class for all kind of html elements

Located in /ui/abstract/AbstractElement.php (line 30)

we_core_AbstractObject
   |
   --we_ui_abstract_AbstractElement
Direct descendents
Class Description
we_ui_abstract_AbstractFormElement Base class for elements in html forms
we_ui_controls_JavaMenu Class to display a JavaMenu
we_ui_controls_MessageConsole Class to display the message console button.
we_ui_controls_Tabs Class to display Tabs
we_ui_controls_Tree Class to display a YUI tree
we_ui_layout_Div Base Class for div
we_ui_layout_Frameset Class to display a frameset
we_ui_layout_HeadlineIconTable Class which creates a table to display several rows with ui elements separated by a rule For each row an icon can be provided together with a headline (title)
we_ui_layout_HeadlineIconTableRow Class which creates a row to display in a we_ui_layout_HeadlineIconTable
we_ui_layout_HTMLPage Class to build a HTML page
we_ui_layout_Table Table Class to layout elements. It renders a normal HTML table
Variable Summary
string $_class
array $_CSSFiles
boolean $_disabled
integer|string $_height
boolean $_hidden
string $_id
array $_JSFiles
string $_lang
integer|string $_left
string $_overflow
string $_position
string $_style
string $_title
integer|string $_top
integer|string $_width
Method Summary
static string computeJSURL (string $classname)
void addCSSFile (string $path, [ $media = 'all'])
void addCSSFiles ( $files, string $path)
void addJSFile (string $path)
void addJSFiles ( $files, string $path)
string getClass ()
array getCSSFiles ()
boolean getDisabled ()
integer getHeight ()
boolean getHidden ()
string getHTML ()
string getId ()
array getJSFiles ()
string getJSHTML ()
string getLang ()
integer|string getLeft ()
string getOverflow ()
string getPosition ()
string getStyle ()
s getTitle ()
integer|string getTop ()
integer|string getWidth ()
void setClass (string $class)
void setDisabled (boolean $disabled)
void setHeight (integer $height)
void setHidden (boolean $hidden)
void setId (string $id)
void setLang (string $lang)
void setLeft (integer|string $left)
void setOverflow (string $overflow)
void setPosition (string $position)
void setStyle (string $style)
void setTitle (string $title)
void setTop (integer|string $top)
void setWidth (integer|string $width)
void _didRenderHTML ()
string _getBooleanAttribs (string $attribsString)
string _getComputedClassAttrib ([string $class = ''])
string _getComputedStyleAttrib ([array $additionalStyles = array()], [integer $widthOffset = 0], [integer $heightOffset = 0], [ $leftOffset = 0], [ $topOffset = 0])
string _getNonBooleanAttribs (string $attribsString)
string _renderHTML ()
void _willRenderHTML ()
Variables
string $_class = '' (line 99)

class attribute

  • access: protected
array $_CSSFiles = array() (line 141)

array to hold all needed CSS files

  • access: protected
boolean $_disabled = false (line 106)

disabled attribute

  • access: protected
integer|string $_height = '' (line 54)

height of element. Will be inserted into style attribute

  • see: we_ui_abstractElement::_getStyleAttrib()
  • access: protected

Redefined in descendants as:
boolean $_hidden = false (line 113)

hidden attribute

  • access: protected
string $_id = '' (line 38)

id attribute

  • access: protected

Redefined in descendants as:
array $_JSFiles = array() (line 134)

array to hold all needed JS files

  • access: protected
string $_lang = '' (line 127)

lang attribute

  • access: protected
integer|string $_left = '' (line 62)

left position of element. Will be inserted into style attribute

  • see: we_ui_abstractElement::_getStyleAttrib()
  • access: protected
string $_overflow = '' (line 85)

overflow style

  • access: protected
string $_position = '' (line 78)

type of position of element. Will be inserted into style attribute

  • see: we_ui_abstractElement::_getStyleAttrib()
  • access: protected
string $_style = '' (line 92)

style attribute

  • access: protected
string $_title = '' (line 120)

title attribute or title tag

  • access: protected

Redefined in descendants as:
integer|string $_top = '' (line 70)

top position of element. Will be inserted into style attribute

  • see: we_ui_abstractElement::_getStyleAttrib()
  • access: protected
integer|string $_width = '' (line 46)

width of element. Will be inserted into style attribute

  • see: we_ui_abstractElement::_getStyleAttrib()
  • access: protected

Redefined in descendants as:
Methods
static method computeJSURL (line 149)

Computes the default JavaScript URL for the given Class Name

  • access: public
static string computeJSURL (string $classname)
  • string $classname
addCSSFile (line 355)

Adds a CSS file to the page.

Will be inserted into the header section of the page using the <link> tag

  • access: public
void addCSSFile (string $path, [ $media = 'all'])
  • string $path: path to file relative to DOCUMENT_ROOT, starting with a slash or class name of element
  • $media
addCSSFiles (line 340)

Adds an array with CSS file to the page.

Will be inserted into the header section of the page using the <link> tag

  • access: public
void addCSSFiles ( $files, string $path)
  • string $path: path to file relative to DOCUMENT_ROOT, starting with a slash or class name of element
  • $files
addJSFile (line 373)

Adds a JS file to the page.

Will be inserted into the header section of the document using the <script> tag

  • access: public
void addJSFile (string $path)
  • string $path: path to file relative to DOCUMENT_ROOT, starting with a slash or class name of element
addJSFiles (line 388)

Adds an array with JS files to the page.

Will be inserted into the header section of the document using the <script> tag

  • access: public
void addJSFiles ( $files, string $path)
  • string $path: path to file relative to DOCUMENT_ROOT, starting with a slash or class name of element
  • $files
getClass (line 420)

Retrieve class attribute

  • access: public
string getClass ()
getCSSFiles (line 409)

Retrieves all needed CSS files for the element

  • access: public
array getCSSFiles ()
getDisabled (line 430)

Retrieve disabled attribute

  • access: public
boolean getDisabled ()
getHeight (line 461)

Retrieve height property.

  • access: public
integer getHeight ()
getHidden (line 440)

Retrieve hidden attribute

  • access: public
boolean getHidden ()
getHTML (line 164)

Retrieve HTML of ui element

  • access: public
string getHTML ()
getId (line 471)

Retrieve id attribute

  • access: public
string getId ()
getJSFiles (line 398)

Retrieves all needed JS files for the element

  • access: public
array getJSFiles ()
getJSHTML (line 178)

Retrieve HTML of ui element for use in JavaScript

  • access: public
string getJSHTML ()
getLang (line 481)

Retrieve lang attribute

  • access: public
string getLang ()
getLeft (line 491)

Retrieve left property

  • access: public
integer|string getLeft ()
getOverflow (line 501)

Retrieve overflow

  • access: public
string getOverflow ()
getPosition (line 511)

Retrieve position property

  • access: public
string getPosition ()
getStyle (line 521)

Retrieve style attribute

  • access: public
string getStyle ()
getTitle (line 531)

Retrieve title property

  • access: public
s getTitle ()
getTop (line 541)

Retrieve top property

  • access: public
integer|string getTop ()
getWidth (line 551)

Retrieve width property

  • access: public
integer|string getWidth ()
setClass (line 562)

Set class attribute

  • access: public
void setClass (string $class)
  • string $class
setDisabled (line 573)

Set disabled attribute

  • access: public
void setDisabled (boolean $disabled)
  • boolean $disabled
setHeight (line 584)

Set height attribute

  • access: public
void setHeight (integer $height)
  • integer $height
setHidden (line 451)

Set hidden attribute

  • access: public
void setHidden (boolean $hidden)
  • boolean $hidden
setId (line 595)

Set id attribute

  • access: public
void setId (string $id)
  • string $id
setLang (line 606)

Set lang attribute

  • access: public
void setLang (string $lang)
  • string $lang
setLeft (line 617)

Set left attribute

  • access: public
void setLeft (integer|string $left)
  • integer|string $left
setOverflow (line 628)

Set overflow attribute

  • access: public
void setOverflow (string $overflow)
  • string $overflow
setPosition (line 639)

Set position attribute

  • access: public
void setPosition (string $position)
  • string $position
setStyle (line 650)

Set style attribute

  • access: public
void setStyle (string $style)
  • string $style
setTitle (line 661)

Set title attribute

  • access: public
void setTitle (string $title)
  • string $title
setTop (line 672)

Set top attribute

  • access: public
void setTop (integer|string $top)
  • integer|string $top
setWidth (line 683)

Set width attribute

  • access: public
void setWidth (integer|string $width)
  • integer|string $width
_didRenderHTML (line 327)

called after _renderHTML() is called

  • access: protected
void _didRenderHTML ()
_getBooleanAttribs (line 297)

Returns string with boolean attribs to insert into html tag

  • access: protected
string _getBooleanAttribs (string $attribsString)
  • string $attribsString: comma separated string with attribute names
_getComputedClassAttrib (line 257)

Returns the computed class attrib as text to insert into the HTML tag

  • access: protected
string _getComputedClassAttrib ([string $class = ''])
  • string $class: default class name for element
_getComputedStyleAttrib (line 199)

Returns the computed style attrib as text to insert into the HTML tag

  • access: protected
string _getComputedStyleAttrib ([array $additionalStyles = array()], [integer $widthOffset = 0], [integer $heightOffset = 0], [ $leftOffset = 0], [ $topOffset = 0])
  • array $additionalStyles
  • integer $widthOffset: value to add to width, can also be negative. Used for box model problems
  • integer $heightOffset: value to add to height, can also be negative. Used for box model problems
  • $leftOffset
  • $topOffset
_getNonBooleanAttribs (line 278)

Returns string with non boolean attribs to insert into html tag

  • access: protected
string _getNonBooleanAttribs (string $attribsString)
  • string $attribsString: comma separated string with attribute names

Redefined in descendants as:
_renderHTML (line 189)

Renders and returns HTML of ui element

  • abstract:
  • access: protected
string _renderHTML ()

Redefined in descendants as:
_willRenderHTML (line 315)

called before _renderHTML() is called

  • access: protected
void _willRenderHTML ()

Redefined in descendants as:

Inherited Methods

Inherited From we_core_AbstractObject

we_core_AbstractObject::__construct()

Documentation generated on Mon, 01 Sep 2008 11:35:29 +0200 by phpDocumentor 1.4.0