Only private and/or inherited functions are available.
Makes the given widget a child of this widget.
Set or get properties on a widget instance.
Construct the UI for this widget from a template, setting this.domNode.
Cancels a inflight download of content
Connects specified obj/event to specified method of this object
and registers for disconnect() on widget destroy.
Kick off the life-cycle of a widget
Destroy this widget, but not its descendants.
Will, however, destroy internal widgets such as those used within a template.
Destroy all the widgets inside the ContentPane and empty containerNode
Destroy the ContentPane and it's contents
Destroys the DOM nodes associated with this widget
Disconnects handle created by this.connect.
Also removes handle from this widget's list of connects
User defined function to do stuff when the user hits the submit button
Returns array of children widgets.
Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode.
Gets the index of the child in this container or -1 if not found
Returns true if widget has children, i.e. if this.containerNode contains something.
Return true if this widget can currently be focused
and false if not
Checks the page for text direction
Position the Dialog and the underlay
stub function. Override or connect to this method to receive
notifications for when the widget moves out of focus.
Callback when user has canceled dialog, to notify container
(user shouldn't override)
Connect to this function to receive notifications of mouse click events.
Callback if someone tries to close the child, child will be closed if func returns true
called on DOM faults, require fault etc in content
default is to display errormessage inside pane
Connect to this function to receive notifications of mouse double click events.
called when download is finished
Called when download error occurs, default is to display
errormessage inside pane. Overide function to change that.
The string returned by this function will be the html
that tells the user a error happend
called before download starts
the string returned by this function will be the html
that tells the user we are loading something
override with your own function if you want to change text
Callback when user is about to execute dialog, to notify container
(user shouldn't override)
stub function. Override or connect to this method to receive
notifications for when the widget moves into focus.
Connect to this function to receive notifications of keys being pressed down.
Connect to this function to receive notifications of printable keys being typed.
Connect to this function to receive notifications of keys being released.
when href is specified we need to reposition the dialog after the data is loaded
Connect to this function to receive notifications of when the mouse button is pressed down.
Connect to this function to receive notifications of when the mouse moves onto this widget.
Connect to this function to receive notifications of when the mouse moves off of this widget.
Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget.
Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget.
Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget.
Connect to this function to receive notifications of when the mouse button is released.
Event hook, is called before old content is cleared
Place this widget's domNode reference somewhere in the DOM based
on standard dojo.place conventions, or passing a Widget reference that
contains and addChild member.
Called after a widget's dom has been setup
Called after the parameters to the widget have been read-in,
but before the widget template is instantiated. Especially
useful to set properties that are referenced in the widget
template.
kicks off widget instantiation, see create() for details.
[Re]download contents of href and display
Removes the passed widget instance from this widget but does
not destroy it. You can also pass in an integer indicating
the index within the container to remove
Called after a widget's children, and other widgets on the page, have been created.
Provides an opportunity to manipulate any children before they are displayed.
This is useful for composite widgets that need to control or layout sub-widgets.
Many layout widgets can use this as a wiring phase.
returns a string that represents the widget. When a widget is
cast to a string, this method will be used to generate the
output. Currently, it does not implement any sort of reversable
serialization.
stub function. Override to implement custom widget tear-down
behavior.
Step during widget creation to copy all widget attributes to the
DOM as per attributeMap and _setXXXAttr functions.
Iterate through the template and attach functions and nodes accordingly.
Reflect a widget attribute (title, tabIndex, duration etc.) to
the widget DOM, as specified in attributeMap.
Test if we have exactly one visible widget as a child,
and if so assume that we are a container for that widget,
and should propogate startup() and resize() calls to it.
Skips over things like data stores since they aren't visible.
Called after dragging the Dialog. Calculates the relative offset
of the Dialog in relation to the viewport.
relocate source contents to templated container node
this.containerNode must be able to receive children, or exceptions will be thrown
helper function for Widget.attr()
cache attribute name values so we don't do the string ops every time
hook to make attr("content") work
Search subtree under root, putting found widgets in outAry
Get the next or previous widget sibling of child
returns true if the content is currently shown
Since I am a Container widget, each of my children expects me to
call resize() or layout() on them.
Call this to load href contents if necessary.
Called when someone connects to one of my handlers.
"Turn on" that handler if it isn't active yet.
handles the keyboard events for accessibility reasons
This is called whenever new content is being loaded
Called when the ContentPane is made visible
callback when user hits submit button
This is called whenever the content is being unloaded
Position modal dialog in the viewport. If no relative offset
in the viewport has been determined (by dragging, for instance),
center the node. Otherwise, use the Dialog's stored relative offset,
and position the node to top: left: values based on the viewport.
Call resize() on each of my child layout widgets, either now
(if I'm currently visible) or when I become visible
Insert the content into the container node
Hook to make attr("content", ...) work.
Replaces old content with data content, include style classes from old content
Hook so attr("href", ...) works.
stuff we need to do before showing the Dialog for the first
time (but we defer it until right beforehand, for
performance reasons)
Make sure the dialog is small enough to fit in viewport.
Only private and/or inherited properties are available.
attributeMap sets up a "binding" between attributes (aka properties)
of the widget and the widget's DOM.
Changes to widget attributes listed in attributeMap will be
reflected into the DOM.
For example, calling attr('title', 'hello')
on a TitlePane will automatically cause the TitlePane's DOM to update
with the new title.
attributeMap is a hash where the key is an attribute of the widget,
and the value reflects a binding to a:
- DOM node attribute
focus: {node: "focusNode", type: "attribute"}
Maps this.focus to this.focusNode.focus
- DOM node innerHTML
title: { node: "titleNode", type: "innerHTML" }
Maps this.title to this.titleNode.innerHTML
- DOM node CSS class
myClass: { node: "domNode", type: "class" }
Maps this.myClass to this.domNode.className
If the value is an array, then each element in the array matches one of the
formats of the above list.
There are also some shorthands for backwards compatibility:
- string --> { node: string, type: "attribute" }, for example:
"focusNode" ---> { node: "focusNode", type: "attribute" }
- "" --> { node: "domNode", type: "attribute" }
A Toggle to modify the default focus behavior of a Dialog, which
is to focus on the first dialog element after opening the dialog.
False will disable autofocusing. Default: true
Designates where children of the source dom node will be placed.
"Children" in this case refers to both dom nodes and widgets.
For example, for myWidget:
<div dojoType=myWidget>
<b> here's a plain dom node
<span dojoType=subWidget>and a widget</span>
<i> and another plain dom node </i>
</div>
containerNode would point to:
<b> here's a plain dom node
<span dojoType=subWidget>and a widget</span>
<i> and another plain dom node </i>
In templated widgets, "containerNode" is set via a
dojoAttachPoint assignment.
containerNode must be defined for any widget that accepts innerHTML
(like ContentPane or BorderContainer or even Button), and conversely
is null for widgets that don't, like TextBox.
The innerHTML of the ContentPane.
Note that the initialization parameter / argument to attr("content", ...)
can be a String, DomNode, Nodelist, or widget.
Unsupported by Dijit, but here for completeness. Dijit only supports setting text direction on the
entire document.
Bi-directional support, as defined by the [HTML DIR](http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir)
attribute. Either left-to-right "ltr" or right-to-left "rtl".
Don't change this parameter from the default value.
This ContentPane parameter doesn't make sense for Dialog, since Dialog
is never a child of a layout container, nor can you specify the size of
Dialog in order to control the size of an inner widget.
This is our visible representation of the widget! Other DOM
Nodes may by assigned to other properties, usually through the
template system's dojoAttachPoint syntax, but the domNode
property is the canonical "top level" node in widget UI.
Toggles the moveable aspect of the Dialog. If true, Dialog
can be moved by it's title. If false it will remain centered
in the viewport.
The time in milliseconds it takes the dialog to fade in and out
Message that shows if an error occurs
Extract visible content from inside of <body> .... </body>
a unique, opaque ID string that can be assigned by users or by the
system. If the developer passes an ID which is known not to be
unique, the specified ID is ignored and the system-generated ID is
used instead.
Parameters to pass to xhrGet() request, for example:
<div dojoType="dijit.layout.ContentPane" href="./bar" ioArgs="{timeout: 500}">
True if the ContentPane has data in it, either specified
during initialization (via href or inline content), or set
via attr('content', ...) / attr('href', ...)
False if it doesn't have any content, or if ContentPane is
still in the process of downloading href.
Rarely used. Overrides the default Dojo locale used to render this widget,
as defined by the [HTML LANG](http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang) attribute.
Value must be among the list of locales specified during by the Dojo bootstrap,
formatted according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt) (like en-us).
Message that shows while downloading
is True or False depending on state of dialog
parse content and create the widgets, if any
Force load of data even if pane is hidden.
Cache content retreived externally
A Toggle to modify the default focus behavior of a Dialog, which
is to re-focus the element which had focus before being opened.
False will disable refocusing. Default: true
Refresh (re-download) content when pane goes from hidden to shown
pointer to original dom node
Path to template (HTML file) for this widget relative to dojo.baseUrl
should we parse the template to find widgets that might be
declared in markup inside it? false by default.
attributeMap addendum for event handlers that should be connected only on first use
The pointer to the first focusable node in the dialog
The pointer to which node has focus prior to our dialog