FB::DOM::Node Class Reference
#include <Node.h>
Inheritance diagram for FB::DOM::Node:

Public Member Functions | |
| virtual FB::JSObjectPtr | getJSObject () const |
| Returns the FB::JSObjectPtr that this object is wrapping. | |
| NodePtr | node () |
| Gets the NodePtr for the current node. | |
| template<class T > | |
| T | callMethod (const std::string &name, const VariantList &args) const |
| Templated function, calls a method on the node of the given name, casts the result to type T, and returns it. | |
| template<class T > | |
| T | callMethod (const std::wstring &name, const VariantList &args) const |
| template<class T > | |
| T | getProperty (const std::wstring &name) const |
| template<class T > | |
| T | getProperty (const std::string &name) const |
| Templated function, gets the specified prooerty and returns it cast as the specified type. | |
| template<class T > | |
| T | getProperty (const int idx) const |
| Templated function, gets the specified prooerty by index and returns it cast as the specified type. | |
| virtual NodePtr | getNode (const std::wstring &name) const |
| virtual NodePtr | getNode (const std::string &name) const |
| Gets a child node of the specified name. | |
| virtual NodePtr | getNode (const int idx) const |
| Gets a child node of the specified name by index. | |
| virtual void | setProperty (const std::wstring &name, const variant &val) const |
| virtual void | setProperty (const std::string &name, const variant &val) const |
| Sets a property on the node to a given value. | |
| virtual void | setProperty (const int idx, const variant &val) const |
Static Public Member Functions | |
| static NodePtr | create (const FB::JSObjectPtr &api) |
| Creates a FB::DOM::Node object from a JSObjectPtr representing a DOM node. This will probably throw an exception and definitely not work right if the js object represented is not a node. | |
Detailed Description
This class should not be created directly; instead, use the Node::create method
Definition at line 39 of file ScriptingCore/DOM/Node.h.
The documentation for this class was generated from the following files:
Generated on 19 May 2013 for FireBreath by
1.6.1
Labels
Page: class FB DOM Node Members
Page: class FB DOM Node setProperty (3)
Page: class FB DOM Node getProperty
Page: class FB DOM Node getNode
Page: class FB DOM Node getNode (3)
Page: class FB DOM Node getProperty (3)
Page: class FB DOM Node getProperty (2)
Page: class FB DOM Node setProperty (2)
Page: class FB DOM Node setProperty
Page: class FB DOM Node node
Page: class FB DOM Node getJSObject
Page: class FB DOM Node getNode (2)
Page: class FB DOM Node callMethod
Page: class FB DOM Node create
Page: class FB DOM Node callMethod (2)
