Holds information about a widget that is specific for a view
This includes: the dom element, the client side properties, ...
public static DOMNode | # seekDOMElem( cmc\ui\view $view, cmc\ui\frame $frame, string $xpath ) returns a DOM element form the view, for a given frame and xpath returns a DOM element form the view, for a given frame and xpath Parameters Returns |
public | |
public | # updateDOMElem( DOMNode $domElem ) re-assign the DOM item Parameters |
public | # restoreDOMElem( cmc\ui\view $view ) re-seek the DOM items from given view re-seek the DOM items from given view Parameters |
public mixed | # CltProp( string $key ) get a client-side property get a client-side property Parameters Returns mixed |
public | # SetCltProp( string $key, mixed $value ) sets a client side property sets a client side property Parameters - $key
string $key - $value
mixed $value |
public array | # getCltProps( ) retreives the current clt properties collection retreives the current clt properties collection Returns array |
public DOMNode | # GetDOMNode( ) gets the actual node item gets the actual node item Returns |
public | # DOMSetHtml( string $html_code ) insert html code in the node, by replacing previous child nodes insert html code in the node, by replacing previous child nodes Parameters - $html_code
string $html_code |
public | # DOMSetText( string $new_text ) assigns a text value (caption) in the node assigns a text value (caption) in the node Parameters - $new_text
string $new_text |
public string|null | # DOMGetText( ) gets the current text value from the node item gets the current text value from the node item Returns string|null |
public | # DOMUpdateAttr( string $attr, string $attrval = null ) assigns an attribute value assigns an attribute value Parameters - $attr
string $attr - $attrval
string $attrval |
public | # DOMRemoveAttr( string $attr ) removes an attribute value removes an attribute value Parameters |
public string|null|false | # DOMGetAttr( string $attr ) gets a value of the attribute gets a value of the attribute returns false if attribute not present returns null if DOM element is not available Parameters Returns string|null|false |
public string|boolean | # DOMGetNodeAttr( string $nodename, string $attr ) gets a value of an attribute of a child node gets a value of an attribute of a child node Parameters - $nodename
string node name - $attr
string attribute name Returns string|boolean |
public boolean | # DOMPutNodeAttr( string $nodename, string $attr, string $value ) sets an attribute value for a childnode sets an attribute value for a childnode Parameters - $nodename
string $nodename - $attr
string $attr - $value
string $value Returns boolean |
public | # DOMGetNodeWithAttrValue( mixed $view, mixed $attr, mixed $value ) |
public DOMNodeList | # getLineModel( cmc\ui\view $view ) gets the current line "model", used by composite widget gets the current line "model", used by composite widget Parameters Returns |
public | # setLineModel( DOMNodeList $linemodel ) stores a line "model", used by composite widget stores a line "model", used by composite widget Parameters |
public | |
public | # OnSerialize( ) called when serialized with the app called when serialized with the app |
public | # OnUnserialize( ) called after deserialization called after deserialization |
public | # onClone( cmc\core\ui\widgetView $srcinstance ) called after having cloned this object called after having cloned this object Parameters |