webgui/www/extras/yui/docs/YAHOO.widget.EditorWindow.html
2008-03-25 16:13:25 +00:00

761 lines
36 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>API: editor YAHOO.widget.EditorWindow (YUI Library)</title>
<link rel="stylesheet" type="text/css" href="assets/api.css">
<script type="text/javascript" src="assets/api-js"></script>
<script type="text/javascript" src="assets/ac-js"></script>
</head>
<body id="yahoo-com">
<div id="doc3" class="yui-t2">
<div id="hd">
<a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
<h3>editor&nbsp; <span class="subtitle">2.5.1</span></h3>
<p>
<a href="./index.html">Yahoo! UI Library</a>
&gt; <a href="./module_editor.html">editor</a>
&gt; YAHOO.widget.EditorWindow
</p>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<form name="yui-classopts-form">
<span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> Show Private</span>
<span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> Show Protected</span>
</form>
<h2>
Class <b>YAHOO.widget.EditorWindow</b>
<span class="extends">
</span>
<span class="extends">
</span>
</code>
</h2>
<!-- class tree goes here -->
<div class="summary description">
Class to hold Window information between uses. We use the same panel to show the windows, so using this will allow you to configure a window before it is shown.
This is what you pass to Editor.openWindow();. These parameters will not take effect until the openWindow() is called in the editor.
</div>
<div class="section field details">
<h3 id="properties">Properties</h3>
<div class="content">
<div class="private">
<h4><a name="property__cache">_cache</a>
<code>- private object</code>
</h4>
<div class="detail">
<div class="description">
Holds a cache of the DOM for the window so we only have to build it once..
</div>
</div>
<hr />
</div>
<div class="private">
<h4><a name="property_attrs">attrs</a>
<code>- private object</code>
</h4>
<div class="detail">
<div class="description">
The window attributes
</div>
</div>
<hr />
</div>
<div class="private">
<h4><a name="property_body">body</a>
<code>- private object</code>
</h4>
<div class="detail">
<div class="description">
Holder for the body of the window, used in Editor.openWindow
</div>
</div>
<hr />
</div>
<div class="private">
<h4><a name="property_footer">footer</a>
<code>- private object</code>
</h4>
<div class="detail">
<div class="description">
Holder for the footer of the window, used in Editor.openWindow
</div>
</div>
<hr />
</div>
<div class="private">
<h4><a name="property_header">header</a>
<code>- private object</code>
</h4>
<div class="detail">
<div class="description">
Holder for the header of the window, used in Editor.openWindow
</div>
</div>
<hr />
</div>
<div class="private">
<h4><a name="property_name">name</a>
<code>- private object</code>
</h4>
<div class="detail">
<div class="description">
A unique name for the window
</div>
</div>
<hr />
</div>
</div>
</div>
<div class="section method details">
<h3 id="methods">Methods</h3>
<div class="content">
<div class="">
<h4>
<a name="method_setBody">setBody</a></h4>
<div class="detail">
<code>
void
<strong>setBody</strong>
(
str
)
</code>
<div class="description">
Sets the body for the window.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>str &lt;String/HTMLElement&gt;</code>
The string or DOM reference to be used as the windows body.
</dd>
</dl>
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="method_setFooter">setFooter</a></h4>
<div class="detail">
<code>
void
<strong>setFooter</strong>
(
str
)
</code>
<div class="description">
Sets the footer for the window.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>str &lt;String/HTMLElement&gt;</code>
The string or DOM reference to be used as the windows footer.
</dd>
</dl>
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="method_setHeader">setHeader</a></h4>
<div class="detail">
<code>
void
<strong>setHeader</strong>
(
str
)
</code>
<div class="description">
Sets the header for the window.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>str &lt;String/HTMLElement&gt;</code>
The string or DOM reference to be used as the windows header.
</dd>
</dl>
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="method_toString">toString</a></h4>
<div class="detail">
<code>
String
<strong>toString</strong>
(
)
</code>
<div class="description">
Returns a string representing the EditorWindow.
</div>
<div class="description">
<dl>
<dt>Returns:
<code>
String
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
</div>
</div>
<div class="section method details">
<h3 id="events">Events</h3>
<div class="content">
<div class="">
<h4>
<a name="event_afterOpenWindow">afterOpenWindow</a></h4>
<div class="detail">
<code>
<strong>afterOpenWindow</strong>
(
win
,
panel
)
</code>
<div class="description">
Event fires after an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>win &lt;<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>&gt;</code>
The EditorWindow object
</dd>
<dd>
<code>panel &lt;Overlay&gt;</code>
The Overlay object that is used to create the window.
</dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="event_beforeOpenWindow">beforeOpenWindow</a></h4>
<div class="detail">
<code>
<strong>beforeOpenWindow</strong>
(
win
,
panel
)
</code>
<div class="description">
Event fires before an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>win &lt;<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>&gt;</code>
The EditorWindow object
</dd>
<dd>
<code>panel &lt;Overlay&gt;</code>
The Overlay object that is used to create the window.
</dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="event_closeWindow">closeWindow</a></h4>
<div class="detail">
<code>
<strong>closeWindow</strong>
(
win
)
</code>
<div class="description">
Event fires after an Editor Window is closed. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>win &lt;<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>&gt;</code>
The EditorWindow object
</dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="event_windowCMDClose">windowCMDClose</a></h4>
<div class="detail">
<code>
<strong>windowCMDClose</strong>
(
win
,
panel
)
</code>
<div class="description">
Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is closed.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkClose event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>win &lt;<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>&gt;</code>
The EditorWindow object
</dd>
<dd>
<code>panel &lt;Overlay&gt;</code>
The Overlay object that is used to create the window.
</dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="event_windowCMDOpen">windowCMDOpen</a></h4>
<div class="detail">
<code>
<strong>windowCMDOpen</strong>
(
win
,
panel
)
</code>
<div class="description">
Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is opened.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkOpen event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>win &lt;<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>&gt;</code>
The EditorWindow object
</dd>
<dd>
<code>panel &lt;Overlay&gt;</code>
The Overlay object that is used to create the window.
</dd>
</dl>
</div>
</div>
<hr />
</div>
</div>
</div>
</div>
</div>
<div class="yui-b">
<div class="nav">
<div class="module">
<h4>Modules</h4>
<ul class="content">
<li class=""><a href="module_animation.html">animation</a></li>
<li class=""><a href="module_autocomplete.html">autocomplete</a></li>
<li class=""><a href="module_button.html">button</a></li>
<li class=""><a href="module_calendar.html">calendar</a></li>
<li class=""><a href="module_charts.html">charts</a></li>
<li class=""><a href="module_colorpicker.html">colorpicker</a></li>
<li class=""><a href="module_connection.html">connection</a></li>
<li class=""><a href="module_container.html">container</a></li>
<li class=""><a href="module_cookie.html">cookie</a></li>
<li class=""><a href="module_datasource.html">datasource</a></li>
<li class=""><a href="module_datatable.html">datatable</a></li>
<li class=""><a href="module_dom.html">dom</a></li>
<li class=""><a href="module_dragdrop.html">dragdrop</a></li>
<li class="selected"><a href="module_editor.html">editor</a></li>
<li class=""><a href="module_element.html">element</a></li>
<li class=""><a href="module_event.html">event</a></li>
<li class=""><a href="module_get.html">get</a></li>
<li class=""><a href="module_history.html">history</a></li>
<li class=""><a href="module_imagecropper.html">imagecropper</a></li>
<li class=""><a href="module_imageloader.html">imageloader</a></li>
<li class=""><a href="module_json.html">json</a></li>
<li class=""><a href="module_layout.html">layout</a></li>
<li class=""><a href="module_logger.html">logger</a></li>
<li class=""><a href="module_menu.html">menu</a></li>
<li class=""><a href="module_profiler.html">profiler</a></li>
<li class=""><a href="module_profilerviewer.html">profilerviewer</a></li>
<li class=""><a href="module_resize.html">resize</a></li>
<li class=""><a href="module_selector.html">selector</a></li>
<li class=""><a href="module_slider.html">slider</a></li>
<li class=""><a href="module_tabview.html">tabview</a></li>
<li class=""><a href="module_treeview.html">treeview</a></li>
<li class=""><a href="module_uploader.html">uploader</a></li>
<li class=""><a href="module_yahoo.html">yahoo</a></li>
<li class=""><a href="module_yuiloader.html">yuiloader</a></li>
<li class=""><a href="module_yuitest.html">yuitest</a></li>
</ul>
</div>
<div class="module">
<h4>Classes</h4>
<ul class="content">
<li class=""><a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a></li>
<li class=""><a href="YAHOO.widget.EditorInfo.html">YAHOO.widget.EditorInfo</a></li>
<li class="selected"><a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a></li>
<li class=""><a href="YAHOO.widget.SimpleEditor.html">YAHOO.widget.SimpleEditor</a></li>
<li class=""><a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a></li>
<li class=""><a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a></li>
<li class=""><a href="YAHOO.widget.ToolbarButtonAdvanced.html">YAHOO.widget.ToolbarButtonAdvanced</a></li>
</ul>
</div>
<div class="module">
<h4>Files</h4>
<ul class="content">
<li class=""><a href="editor.js.html">editor.js</a></li>
<li class=""><a href="simple-editor.js.html">simple-editor.js</a></li>
<li class=""><a href="toolbar-button.js.html">toolbar-button.js</a></li>
<li class=""><a href="toolbar.js.html">toolbar.js</a></li>
</ul>
</div>
<div class="module">
<h4>Properties</h4>
<ul class="content">
<li class="private"><a href="#property__cache">_cache</a>
<!--<code>&lt;object&gt;</code>-->
</li>
<li class="private"><a href="#property_attrs">attrs</a>
<!--<code>&lt;object&gt;</code>-->
</li>
<li class="private"><a href="#property_body">body</a>
<!--<code>&lt;object&gt;</code>-->
</li>
<li class="private"><a href="#property_footer">footer</a>
<!--<code>&lt;object&gt;</code>-->
</li>
<li class="private"><a href="#property_header">header</a>
<!--<code>&lt;object&gt;</code>-->
</li>
<li class="private"><a href="#property_name">name</a>
<!--<code>&lt;object&gt;</code>-->
</li>
</ul>
</div>
<div class="module">
<h4>Methods</h4>
<ul class="content">
<li class=""><!--<code>void</code>-->
<a href="#method_setBody">setBody</a>
</li>
<li class=""><!--<code>void</code>-->
<a href="#method_setFooter">setFooter</a>
</li>
<li class=""><!--<code>void</code>-->
<a href="#method_setHeader">setHeader</a>
</li>
<li class=""><!--<code>String</code>-->
<a href="#method_toString">toString</a>
</li>
</ul>
</div>
<div class="module">
<h4>Events</h4>
<ul class="content">
<li class="">
<a href="#event_afterOpenWindow">afterOpenWindow</a>
</li>
<li class="">
<a href="#event_beforeOpenWindow">beforeOpenWindow</a>
</li>
<li class="">
<a href="#event_closeWindow">closeWindow</a>
</li>
<li class="">
<a href="#event_windowCMDClose">windowCMDClose</a>
</li>
<li class="">
<a href="#event_windowCMDOpen">windowCMDOpen</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="ft">
<hr />
Copyright &copy; 2007 Yahoo! Inc. All rights reserved.
</div>
</div>
</body>
</html>