![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
>Home
>Features
>How does it work?
>Documentation
>Tutorials
>Examples
>Help Forum
>Download
>Extensions
>Project Site
PackagesAPIClientComponents Daemon Libraries Webfrontend Full element index APIClass tree: APIIndex: API Classes
Controls
XULButton XULCheckBox XULColorPicker XULDatePicker XULMenuList XULProgressMeter XULRadio XULRadioGroup XULScale XULSplitter XULTextBox XULTimePicker
FileHandling
AppleScriptService ClientBaseFile ClientDirectory ClientFile ClientFileService FileDownloader FileFromStreamDownloader FileFromStringDownloader FileToStreamUploader FileToStringUploader FileUploader XULFilePicker
Layout
XULBBox XULBox XULColumn XULColumns XULDeck XULGrid XULHBox XULHTMLBox XULRow XULRows XULScrollBox XULStack XULVBox
Lists
XULListBox XULListCell XULListCol XULListCols XULListHead XULListHeader XULListItem XULRichListBox XULRichListItem
MenusAndPopups
XULMenu XULMenuBar XULMenuItem XULMenuPopup XULMenuSeparator XULPanel XULPopup XULPopupSet XULToolTip
TabsAndGrouping
XULCaption XULGroupBox XULSeparator XULSpacer XULTab XULTabBox XULTabPanel XULTabPanels XULTabs
Trees
XULTree XULTreeCell XULTreeChildren XULTreeCol XULTreeCols XULTreeItem XULTreeRow XULTreeSeparator
Windows
AlertNotification PromptService XULBasicWindow XULChildWindow XULDialog XULPrefPane XULPrefWindow XULWindow Filessubpackage Applicationsubpackage CodeEditor subpackage Comm subpackage Controls subpackage CustomTree subpackage Debugger subpackage Editor subpackage ErrorConsole subpackage FileHandling subpackage HelperElements subpackage Layout subpackage Lists subpackage MenusAndPopups subpackage Node subpackage Registry subpackage Scripting subpackage Service subpackage TabsAndGrouping subpackage TextAndImages subpackage Toolbars subpackage Trees subpackage Windows subpackage WindowStructure |
Class: NodeSource Location: /sys/xulNode.php.incClass OverviewThis is the base class of all nodes. It provides all methods necessary for manipulating XUL attributes, event firing, handling and yielding, reflexes and styling.
Author(s):Class Variables$eventHandler = array()
$eventType = array()
$eventYielder = array()
$handlerFor = array()
$id =
$isChild = FALSE
$isRegistered = FALSE
$parent =
$rootApplication =
$rootWindow =
$yielderFor = array()
Class Methodsconstructor __construct() [line 74]
Dynamic Constructor
Overridden in child classes as:
Parameters:
[ Top ]
method accessKey() [line 1484]
Set the accessKey attribute for this element
Parameters:
[ Top ]
method align() [line 1442]
Set the align attribute for this element
Parameters:
[ Top ]
method attach() [line 751]
[INTERNAL FUNCTION] Default attach method The default action on attach is to call createRemoteObject() and insertElement().
Overridden in child classes as: [ Top ]
method attributeMethod() [line 865]
Convenient attribute setter This method sets both the property and attribute (when the node is registered). If value is NULL, returns the current value. Otherwise returns the node.
Parameters:
[ Top ]
method backgroundColor() [line 1248]
Set the background color for the element
Parameters:
[ Top ]
method backgroundImage() [line 1270]
Set the background of a node using CSS background-image property
Parameters:
[ Top ]
method blur() [line 788]
Make this node loose focus Equivalent of the JavaScript blur() method.
Overridden in child classes as: [ Top ]
method callMethod() [line 610]
Call a JavaScript method on the client-side node
Parameters:
[ Top ]
method callMethodDelayed() [line 630]
Call a JavaScript method on the client-side node in a delayed fashion
Parameters:
[ Top ]
method className() [line 1295]
Set the CSS classname for the element
Parameters:
[ Top ]
method commandHandler() [line 388]
[INTERNAL FUNCTION] Handles an incoming event for this node
Parameters:
[ Top ]
method context() [line 1544]
Set a contextmenu to show when clicking the context (right) mouse or keyboard button on this element
Parameters:[ Top ]
method createClientEvent() [line 94]
Creates a new event on the client side NOTE: this is not about firing an event. This method actually creates a new addition to the set of fireable client events of this node.
Parameters:
[ Top ]
method createRemoteObject() [line 542]
[INTERNAL FUNCTION] Calls the remote constructor of this class
Parameters:
[ Top ]
method crop() [line 1463]
Set the crop attribute for this element
Parameters:
[ Top ]
method detach() [line 763]
[INTERNAL FUNCTION] Default detach method The default action on detach is to call removeElement() and unRegister().
Overridden in child classes as: [ Top ]
method disabled() [line 1337]
Set the disabled attribute for this element
Overridden in child classes as: Parameters:
[ Top ]
method equalsize() [line 1518]
Set the equalsize attribute for this element
Parameters:
[ Top ]
method extractNode() [line 820]
Extracts this node and its childnodes This method extracts this node and its childnodes without breaking their links. Use this method if you intend to reuse this node or the subbranch that it contains.
[ Top ]
method findAncestor() [line 838]
Return the first ancestor of a certain class of this node This method goes down the parent lineage and returns the first ancestor that is of the given class. Returns NULL if no such ancestor was found.
Parameters:
[ Top ]
method fireClientEvent() [line 449]
Fires a remote (client) event This method fires an event on the client side, as if it was the result of a user action. Events fired through this method can only be valid clientside events, either pre-existing standard XUL or SiteFusion events or an event created with the createClientEvent() method.
Parameters:
[ Top ]
method fireLocalEvent() [line 428]
Fires a local (server) event This method fires an event on the server side, which does not go through the client. Events fired through this method do not have to be valid clientside events, and can be used to build event-driven applications.
Parameters:
[ Top ]
method flex() [line 1316]
Set the flex attribute for this element
Parameters:
[ Top ]
method focus() [line 775]
Give this node focus Equivalent of the JavaScript focus() method.
Overridden in child classes as: [ Top ]
method height() [line 931]
Set the height of the element
Overridden in child classes as: Parameters:
[ Top ]
method hidden() [line 1505]
Set the hidden attribute for this element
Overridden in child classes as: Parameters:
[ Top ]
method initNodeLayout() [line 1711]
[INTERNAL FUNCTION] Initializes the attributes of a node when it is registered
[ Top ]
method insertElement() [line 558]
[INTERNAL FUNCTION] Inserts the newly constructed node's element into the DOM tree on the client side
[ Top ]
method label() [line 1358]
Set the label attribute for this element
Overridden in child classes as: Parameters:
[ Top ]
method margin() [line 1058]
Set the margin of the element
Parameters:
[ Top ]
method marginBottom() [line 1118]
Set the bottom margin of the element
Parameters:
[ Top ]
method marginLeft() [line 1138]
Set the left margin of the element
Parameters:
[ Top ]
method marginRight() [line 1098]
Set the right margin of the element
Parameters:
[ Top ]
method marginTop() [line 1078]
Set the top margin of the element
Parameters:
[ Top ]
method mousethrough() [line 1610]
Indicate whether mouse events should pass through this node onto its parent By default, all elements handle their own mouse events and don't pass them through to their parents.
Parameters:
[ Top ]
method orient() [line 1400]
Set the orient attribute for this element
Parameters:
[ Top ]
method pack() [line 1421]
Set the pack attribute for this element
Parameters:
[ Top ]
method padding() [line 954]
Set the padding of the element
Parameters:
[ Top ]
method paddingBottom() [line 1014]
Set the bottom padding of the element
Parameters:
[ Top ]
method paddingLeft() [line 1034]
Set the left padding of the element
Parameters:
[ Top ]
method paddingRight() [line 994]
Set the right padding of the element
Parameters:
[ Top ]
method paddingTop() [line 974]
Set the top padding of the element
Parameters:
[ Top ]
method popup() [line 1565]
Set a popup menu to show when clicking on this element
Parameters:[ Top ]
method removeAttribute() [line 709]
Remove an attribute on the client-side XUL node
Parameters:
[ Top ]
method removeElement() [line 574]
[INTERNAL FUNCTION] Removes the node's element from the client DOM tree
[ Top ]
method removeEventHandler() [line 163]
Removes an event handler This method removes a previously set event handler for a certain event.
Parameters:
[ Top ]
method removeEventReflex() [line 370]
Removes a previously set reflex for a certain event This function removes the reflex set for the given event.
Parameters:
[ Top ]
method removeEventYielder() [line 245]
Removed a node this is yielded when an event on this node fires This method is the opposite of setEventYielder(), and removes a previously set yielder
Parameters:
[ Top ]
method removeNode() [line 803]
Removes and unregisters this node and its childnodes This method removes and unlinks this node and its child nodes from each other. Use this method when you intend to discard the node(s) entirely. If you want to reuse the node and its childnodes, use the method extractNode().
[ Top ]
method setAttribute() [line 690]
Set an attribute on the client-side XUL node
Parameters:
[ Top ]
method setDraggable() [line 1643]
Set this element as draggable This enables the user to drag the element and drop it on another element that was indicates as dropzone by the setDroppable() method. By default it supports one droppable flavour called 'sfNode/classname' in which 'classname' is the PHP classname of the node. The data carried by this flavour is a reference to the dragged node itself. Additional flavours with their accompanying data can be set through the $flavours parameter in array with the flavour type as the key and the data as the value.
Parameters:
[ Top ]
method setDroppable() [line 1672]
Set this element as a dropzone Sets this element as a dropzone for draggable elements. The flavours specified in the $flavours array dicate which elements can be dropped on it. If specified, the handler method on the handler object is called when an element is dropped.
Parameters:
[ Top ]
method setEvent() [line 115]
Shorthand version for setEventType, setEventHandler and setEventYielder This method sets an event type, handler and yielder(s) in one convenient call.
Parameters:
[ Top ]
method setEventBlocking() [line 319]
Sets whether the event should block (be synchronous)
Parameters:
[ Top ]
method setEventHandler() [line 137]
Sets an event handler This method sets an event handler to call when a certain event fires.
Parameters:
[ Top ]
method setEventReflex() [line 351]
Sets a reflex for a certain event A reflex is a piece of JavaScript that gets executed immediately upon firing an event, without requiring server communication. This can be used for simple actions, such as coloring a button on a mouseover event. If this would have to be done through an event handler on the server side, there would be a delay which is not desirable for such simple actions. The JavaScript code is supplied through a string, in which references to a node can be made with the Node->js property. This property refers to the SiteFusion JavaScript node object, which also contains a reference to the XUL element in the element JavaScript property. Setting a reflex that colors a button red when the mouse hovers it would be done like: $button->setEventReflex( "mouseover", "$button->js.element.style.backgroundColor = 'red';" ); A node can only hold one reflex per event.
Parameters:
[ Top ]
method setEventType() [line 299]
Sets the event type for a certain event The event type determines what happens to the event when it fires. There are three event types: MSG_SEND, MSG_QUEUE and MSG_NONE. When an event fires, a series of actions unfold:
Parameters:
[ Top ]
method setEventYielder() [line 202]
Sets a node to yield when an event on this node fires Yielding means that a node transfers its current input on the client side to the server side. For example, a textbox the user just entered text in transfers its content to the server, synchronising both sides. The transfer is done through the 'yield' event, Which is usually handled automatically on the server side, placing the transferred contents in the designated property on the node. This usually occurs when another event fires, for example the pressing of a button (the 'command' event). To make the button trigger the yield of the textbox, the setEventYielder() method should be called on the button with the event name ('command') as the first argument and the textbox node as the second argument, indicating that the button should yield the textbox when its command event fires.
Parameters:
[ Top ]
method setMethod() [line 670]
Set a JavaScript method on the client-side node
Parameters:
[ Top ]
method setProperty() [line 649]
Set a JavaScript property on the client-side node
Parameters:
[ Top ]
method setStyle() [line 729]
Set a CSS style property on the client-side XUL node
Parameters:
[ Top ]
method size() [line 894]
Set the size of the element Sets the width and height (in pixels).
Overridden in child classes as: Parameters:
[ Top ]
method textColor() [line 1183]
Set the text color for the element
Parameters:
[ Top ]
method textSize() [line 1161]
Set the text size for the element
Parameters:
[ Top ]
method textStyle() [line 1214]
Set the text style for the element You can supply one or more of the following attributes in a space-separated string
Parameters:
[ Top ]
method tooltip() [line 1586]
Set a tooltip to show when hovering over this element
Parameters:
[ Top ]
method tooltiptext() [line 1531]
Set the tooltiptext attribute for this element
Parameters:
[ Top ]
method unbind() [line 522]
[INTERNAL FUNCTION] Removes links to child and parent nodes This method is called before a node is removed to clear all links its child and parent nodes, enabling the PHP garbage collector to free up the memory.
[ Top ]
method unlink() [line 490]
[INTERNAL FUNCTION] Removes event handler and yielder links to other nodes This method is called before a node is removed to clear all links to other nodes, enabling the PHP garbage collector to free up the memory.
[ Top ]
method unRegister() [line 590]
[INTERNAL FUNCTION] Removes this node from the client registry
[ Top ]
method value() [line 1379]
Set the value attribute for this element
Overridden in child classes as: Parameters:
[ Top ]
method width() [line 910]
Set the width of the element
Overridden in child classes as: Parameters:
[ Top ]
method yield() [line 471]
Manually yield this node This method calls the 'yield' method on the node, which usually results in a yield event being triggered.
[ Top ]
method _dropHandler() [line 1686]Child classes:
Documentation generated on Tue, 10 May 2011 19:43:34 +0200 by phpDocumentor 1.4.3 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| All content is © 2009 by FrontDoor Media Group, is available under the Creative Commons Attribution-Share Alike 2.5 License and is maintained by the SiteFusion.org staff | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
