Page tree
Skip to end of metadata
Go to start of metadata

DOM Node wrapper. More...

#include "Node.h"

Inheritance diagram for FB::DOM::Node:
Inheritance graph

Public Member Functions

virtual FB::JSObjectPtr getJSObject () const
 Returns the FB::JSObjectPtr that this object is wrapping. More...
NodePtr node ()
 Gets the NodePtr for the current node. More...
template<class T >
getProperty (const std::wstring &name) const
virtual NodePtr getNode (const std::wstring &name) const
virtual NodePtr getNode (const std::string &name) const
 Gets a child node of the specified name. More...
virtual NodePtr getNode (const int idx) const
 Gets a child node of the specified name by index. More...
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. More...
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. More...

Detailed Description

DOM Node wrapper.

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:
  • No labels