Class we_ui_controls_TextField

Description

Class to display a text input field

Located in /ui/controls/TextField.php (line 30)

we_core_AbstractObject
   |
   --we_ui_abstract_AbstractElement
      |
      --we_ui_abstract_AbstractFormElement
         |
         --we_ui_abstract_AbstractInputElement
            |
            --we_ui_controls_TextField
Class Constant Summary
 kTextInputClassFocus = 'we_ui_controls_TextInput_Selected'
 kTextInputClassNormal = 'we_ui_controls_TextInput'
Variable Summary
mixed $_height
integer $_maxlength
string $_onBlur
string $_onChange
string $_onFocus
integer $_size
string $_type
Method Summary
integer getMaxlength ()
string getOnBlur ()
string getOnChange ()
string getOnFocus ()
string getSize ()
void __construct ([array $properties = null])
void setMaxlength (integer $maxlength)
void setOnBlur (string $onBlur)
void setOnChange (string $onChange)
void setOnFocus (string $onFocus)
void setSize (string $size)
string _renderHTML ()
Variables
mixed $_height = 22 (line 43)
  • access: protected

Redefinition of:
we_ui_abstract_AbstractElement::$_height
height of element. Will be inserted into style attribute
integer $_maxlength = '' (line 58)

maxlength attribute

  • access: protected
string $_onBlur = '' (line 79)

onBlur attribute

  • access: protected
string $_onChange = '' (line 72)

onChange attribute

  • access: protected
string $_onFocus = '' (line 86)

onFocus attribute

  • access: protected
integer $_size = '' (line 65)

size attribute

  • access: protected
string $_type = 'text' (line 51)

type attribute => overwritten


Redefinition of:
we_ui_abstract_AbstractInputElement::$_type
type attribute

Inherited Variables

Inherited from we_ui_abstract_AbstractInputElement

we_ui_abstract_AbstractInputElement::$_readonly
we_ui_abstract_AbstractInputElement::$_value

Inherited from we_ui_abstract_AbstractFormElement

we_ui_abstract_AbstractFormElement::$_name

Inherited from we_ui_abstract_AbstractElement

we_ui_abstract_AbstractElement::$_class
we_ui_abstract_AbstractElement::$_CSSFiles
we_ui_abstract_AbstractElement::$_disabled
we_ui_abstract_AbstractElement::$_hidden
we_ui_abstract_AbstractElement::$_id
we_ui_abstract_AbstractElement::$_JSFiles
we_ui_abstract_AbstractElement::$_lang
we_ui_abstract_AbstractElement::$_left
we_ui_abstract_AbstractElement::$_overflow
we_ui_abstract_AbstractElement::$_position
we_ui_abstract_AbstractElement::$_style
we_ui_abstract_AbstractElement::$_title
we_ui_abstract_AbstractElement::$_top
we_ui_abstract_AbstractElement::$_width
Methods
getMaxlength (line 160)

Retrieve maxlength attribute

  • access: public
integer getMaxlength ()
getOnBlur (line 170)

Retrieve onBlur attribute

  • access: public
string getOnBlur ()
getOnChange (line 190)

Retrieve onChange attribute

  • access: public
string getOnChange ()
getOnFocus (line 180)

Retrieve onFocus attribute

  • access: public
string getOnFocus ()
getSize (line 200)

Retrieve size attribute

  • access: public
string getSize ()
Constructor __construct (line 96)

Constructor

Sets object properties if set in $properties array

  • access: public
void __construct ([array $properties = null])
  • array $properties: associative array containing named object properties

Redefinition of:
we_core_AbstractObject::__construct()
Constructor
setMaxlength (line 211)

Set maxlength attribute

  • access: public
void setMaxlength (integer $maxlength)
  • integer $maxlength
setOnBlur (line 222)

Set onBlur attribute

  • access: public
void setOnBlur (string $onBlur)
  • string $onBlur
setOnChange (line 244)

Set onChange attribute

  • access: public
void setOnChange (string $onChange)
  • string $onChange
setOnFocus (line 233)

Set onFocus attribute

  • access: public
void setOnFocus (string $onFocus)
  • string $onFocus
setSize (line 255)

Set size attribute

  • access: public
void setSize (string $size)
  • string $size
_getComputedOnBlurAttrib (line 130)

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

  • access: protected
string _getComputedOnBlurAttrib ()
_getComputedOnFocusAttrib (line 116)

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

  • access: protected
string _getComputedOnFocusAttrib ()
_renderHTML (line 144)

Renders and returns HTML of text input

  • access: protected
string _renderHTML ()

Redefinition of:
we_ui_abstract_AbstractElement::_renderHTML()
Renders and returns HTML of ui element

Inherited Methods

Inherited From we_ui_abstract_AbstractInputElement

we_ui_abstract_AbstractInputElement::getReadonly()
we_ui_abstract_AbstractInputElement::getType()
we_ui_abstract_AbstractInputElement::getValue()
we_ui_abstract_AbstractInputElement::setReadonly()
we_ui_abstract_AbstractInputElement::setType()
we_ui_abstract_AbstractInputElement::setValue()

Inherited From we_ui_abstract_AbstractFormElement

we_ui_abstract_AbstractFormElement::getName()
we_ui_abstract_AbstractFormElement::setName()

Inherited From we_ui_abstract_AbstractElement

we_ui_abstract_AbstractElement::addCSSFile()
we_ui_abstract_AbstractElement::addCSSFiles()
we_ui_abstract_AbstractElement::addJSFile()
we_ui_abstract_AbstractElement::addJSFiles()
we_ui_abstract_AbstractElement::computeJSURL()
we_ui_abstract_AbstractElement::getClass()
we_ui_abstract_AbstractElement::getCSSFiles()
we_ui_abstract_AbstractElement::getDisabled()
we_ui_abstract_AbstractElement::getHeight()
we_ui_abstract_AbstractElement::getHidden()
we_ui_abstract_AbstractElement::getHTML()
we_ui_abstract_AbstractElement::getId()
we_ui_abstract_AbstractElement::getJSFiles()
we_ui_abstract_AbstractElement::getJSHTML()
we_ui_abstract_AbstractElement::getLang()
we_ui_abstract_AbstractElement::getLeft()
we_ui_abstract_AbstractElement::getOverflow()
we_ui_abstract_AbstractElement::getPosition()
we_ui_abstract_AbstractElement::getStyle()
we_ui_abstract_AbstractElement::getTitle()
we_ui_abstract_AbstractElement::getTop()
we_ui_abstract_AbstractElement::getWidth()
we_ui_abstract_AbstractElement::setClass()
we_ui_abstract_AbstractElement::setDisabled()
we_ui_abstract_AbstractElement::setHeight()
we_ui_abstract_AbstractElement::setHidden()
we_ui_abstract_AbstractElement::setId()
we_ui_abstract_AbstractElement::setLang()
we_ui_abstract_AbstractElement::setLeft()
we_ui_abstract_AbstractElement::setOverflow()
we_ui_abstract_AbstractElement::setPosition()
we_ui_abstract_AbstractElement::setStyle()
we_ui_abstract_AbstractElement::setTitle()
we_ui_abstract_AbstractElement::setTop()
we_ui_abstract_AbstractElement::setWidth()
we_ui_abstract_AbstractElement::_didRenderHTML()
we_ui_abstract_AbstractElement::_getBooleanAttribs()
we_ui_abstract_AbstractElement::_getComputedClassAttrib()
we_ui_abstract_AbstractElement::_getComputedStyleAttrib()
we_ui_abstract_AbstractElement::_getNonBooleanAttribs()
we_ui_abstract_AbstractElement::_renderHTML()
we_ui_abstract_AbstractElement::_willRenderHTML()

Inherited From we_core_AbstractObject

we_core_AbstractObject::__construct()
Class Constants
kTextInputClassFocus = 'we_ui_controls_TextInput_Selected' (line 41)

class name for focused text input fields

kTextInputClassNormal = 'we_ui_controls_TextInput' (line 36)

Default class name for text input fields

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