Update of /cvsroot/qooxdoo/qooxdoo/source/contributed/frame_olsen
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26489/source/contributed/frame_olsen
Added Files:
Tag: renderer
Frame_1.html QxFrame.js QxUtil.js QxWindow.js
Log Message:
Added contributed section
--- NEW FILE: Frame_1.html ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"><head>
<script type="text/javascript">window._htmlstart=(new Date).valueOf()</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<meta http-equiv="MsThemeCompatible" content="yes">
<meta http-equiv="ImageToolBar" content="no">
<meta name="MSSmartTagsPreventParsing" content="yes"><title>qooxdoo demo dev</title>
<link type="text/css" rel="stylesheet" href="Frame_1_files/qooxdoo.css">
<link type="text/css" rel="stylesheet" href="Frame_1_files/demolayout.css">
<script type="text/javascript" src="Frame_1_files/includer"></script><script type="text/javascript" src="Frame_1_files/QxMain"></script><script type="text/javascript" src="Frame_1_files/QxConst"></script><script type="text/javascript" src="Frame_1_files/QxExtend"></script><script type="text/javascript" src="Frame_1_files/QxClient"></script><script type="text/javascript" src="Frame_1_files/QxNative"></script><script type="text/javascript" src="Frame_1_files/QxUtil"></script><script type="text/javascript" src="Frame_1_files/QxCompare"></script><script type="text/javascript" src="Frame_1_files/QxObject"></script><script type="text/javascript" src="Frame_1_files/QxDom"></script><script type="text/javascript" src="Frame_1_files/QxDebug"></script><script type="text/javascript" src="Frame_1_files/QxTarget"></script><script type="text/javascript" src="Frame_1_files/QxApplication"></script><script type="text/javascript" src="Frame_1_files/QxClientWindow"></script><script type="text/javascript" src="Frame_1_files/QxManager"></script><script type="text/javascript" src="Frame_1_files/QxEvent"></script><script type="text/javascript" src="Frame_1_files/QxDomEvent"></script><script type="text/javascript" src="Frame_1_files/QxMouseEvent"></script><script type="text/javascript" src="Frame_1_files/QxMouseEventCore"></script><script type="text/javascript" src="Frame_1_files/QxKeyEvent"></script><script type="text/javascript" src="Frame_1_files/QxKeyEventCore"></script><script type="text/javascript" src="Frame_1_files/QxFocusEvent"></script><script type="text/javascript" src="Frame_1_files/QxDataEvent"></script><script type="text/javascript" src="Frame_1_files/QxColorManager"></script><script type="text/javascript" src="Frame_1_files/QxColorTheme"></script><script type="text/javascript" src="Frame_1_files/QxColor"></script><script type="text/javascript" src="Frame_1_files/QxColorObject"></script><script type="text/javascript" src="Frame_1_files/QxColorCore"></script><script type="text/javascript" src="Frame_1_files/QxColorCache"></script><script type="text/javascript" src="Frame_1_files/QxColorThemePresets"></script><script type="text/javascript" src="Frame_1_files/QxBorder"></script><script type="text/javascript" src="Frame_1_files/QxBorderObject"></script><script type="text/javascript" src="Frame_1_files/QxBorderCache"></script><script type="text/javascript" src="Frame_1_files/QxBorderPresets"></script><script type="text/javascript" src="Frame_1_files/QxBorderObjectPresets"></script><script type="text/javascript" src="Frame_1_files/QxFont"></script><script type="text/javascript" src="Frame_1_files/QxFontObject"></script><script type="text/javascript" src="Frame_1_files/QxFontCache"></script><script type="text/javascript" src="Frame_1_files/QxWidget"></script><script type="text/javascript" src="Frame_1_files/QxWidgetCore"></script><script type="text/javascript" src="Frame_1_files/QxLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxCanvasLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxHorizontalBoxLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxVerticalBoxLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxFlowLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxDockLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxGridLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxParent"></script><script type="text/javascript" src="Frame_1_files/QxTerminator"></script><script type="text/javascript" src="Frame_1_files/QxCanvasLayout"></script><script type="text/javascript" src="Frame_1_files/QxBlocker"></script><script type="text/javascript" src="Frame_1_files/QxClientDocument"></script><script type="text/javascript" src="Frame_1_files/QxInline"></script><script type="text/javascript" src="Frame_1_files/QxHorizontalSpacer"></script><script type="text/javascript" src="Frame_1_files/QxVerticalSpacer"></script><script type="text/javascript" src="Frame_1_files/QxEventManager"></script><script type="text/javascript" src="Frame_1_files/QxFocusManager"></script><script type="text/javascript" src="Frame_1_files/QxTextile"></script><script type="text/javascript" src="Frame_1_files/QxTextField"></script><script type="text/javascript" src="Frame_1_files/QxPasswordField"></script><script type="text/javascript" src="Frame_1_files/QxTextArea"></script><script type="text/javascript" src="Frame_1_files/QxTimer"></script><script type="text/javascript" src="Frame_1_files/QxXmlExtras"></script><script type="text/javascript" src="Frame_1_files/QxXmlHttpLoader"></script><script type="text/javascript" src="Frame_1_files/QxData"></script><script type="text/javascript" src="Frame_1_files/QxImageManager"></script><script type="text/javascript" src="Frame_1_files/QxImagePreloaderManager"></script><script type="text/javascript" src="Frame_1_files/QxImagePreloader"></script><script type="text/javascript" src="Frame_1_files/QxImage"></script><script type="text/javascript" src="Frame_1_files/QxDragEvent"></script><script type="text/javascript" src="Frame_1_files/QxDragAndDropManager"></script><script type="text/javascript" src="Frame_1_files/QxBoxLayout"></script><script type="text/javascript" src="Frame_1_files/QxVerticalBoxLayout"></script><script type="text/javascript" src="Frame_1_files/QxHorizontalBoxLayout"></script><script type="text/javascript" src="Frame_1_files/QxFlowLayout"></script><script type="text/javascript" src="Frame_1_files/QxDockLayout"></script><script type="text/javascript" src="Frame_1_files/QxGridLayout"></script><script type="text/javascript" src="Frame_1_files/QxText"></script><script type="text/javascript" src="Frame_1_files/QxHtml"></script><script type="text/javascript" src="Frame_1_files/QxLink"></script><script type="text/javascript" src="Frame_1_files/QxIconHtml"></script><script type="text/javascript" src="Frame_1_files/QxNode"></script><script type="text/javascript" src="Frame_1_files/QxLabel"></script><script type="text/javascript" src="Frame_1_files/QxLabelCore"></script><script type="text/javascript" src="Frame_1_files/QxAtom"></script><script type="text/javascript" src="Frame_1_files/QxButton"></script><script type="text/javascript" src="Frame_1_files/QxRepeatButton"></script><script type="text/javascript" src="Frame_1_files/QxRadioManager"></script><script type="text/javascript" src="Frame_1_files/QxInputCheckIcon"></script><script type="text/javascript" src="Frame_1_files/QxCheckBox"></script><script type="text/javascript" src="Frame_1_files/QxRadioButton"></script><script type="text/javascript" src="Frame_1_files/QxPopupManager"></script><script type="text/javascript" src="Frame_1_files/QxPopup"></script><script type="text/javascript" src="Frame_1_files/QxPopupAtom"></script><script type="text/javascript" src="Frame_1_files/QxToolTipManager"></script><script type="text/javascript" src="Frame_1_files/QxToolTip"></script><script type="text/javascript" src="Frame_1_files/QxFieldSet"></script><script type="text/javascript" src="Frame_1_files/QxCheckBoxFieldSet"></script><script type="text/javascript" src="Frame_1_files/QxRadioButtonFieldSet"></script><script type="text/javascript" src="Frame_1_files/QxIframe"></script><script type="text/javascript" src="Frame_1_files/QxMenuManager"></script><script type="text/javascript" src="Frame_1_files/QxMenuLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxMenuLayout"></script><script type="text/javascript" src="Frame_1_files/QxMenu"></script><script type="text/javascript" src="Frame_1_files/QxMenuButtonLayoutImpl"></script><script type="text/javascript" src="Frame_1_files/QxMenuButton"></script><script type="text/javascript" src="Frame_1_files/QxMenuCheckBox"></script><script type="text/javascript" src="Frame_1_files/QxMenuRadioButton"></script><script type="text/javascript" src="Frame_1_files/QxMenuSeparator"></script><script type="text/javascript" src="Frame_1_files/QxToolBar"></script><script type="text/javascript" src="Frame_1_files/QxToolBarPart"></script><script type="text/javascript" src="Frame_1_files/QxToolBarPartHandle"></script><script type="text/javascript" src="Frame_1_files/QxToolBarButton"></script><script type="text/javascript" src="Frame_1_files/QxToolBarSeparator"></script><script type="text/javascript" src="Frame_1_files/QxToolBarCheckBox"></script><script type="text/javascript" src="Frame_1_files/QxToolBarRadioButton"></script><script type="text/javascript" src="Frame_1_files/QxToolBarMenuButton"></script><script type="text/javascript" src="Frame_1_files/QxMenuBar"></script><script type="text/javascript" src="Frame_1_files/QxMenuBarButton"></script><script type="text/javascript" src="Frame_1_files/QxSelectionStorage"></script><script type="text/javascript" src="Frame_1_files/QxSelectionManager"></script><script type="text/javascript" src="Frame_1_files/QxList"></script><script type="text/javascript" src="Frame_1_files/QxListItem"></script><script type="text/javascript" src="Frame_1_files/QxComboBox"></script><script type="text/javascript" src="Frame_1_files/QxDateComboBox"></script><script type="text/javascript" src="Frame_1_files/QxRangeManager"></script><script type="text/javascript" src="Frame_1_files/QxSpinner"></script><script type="text/javascript" src="Frame_1_files/QxCommand"></script><script type="text/javascript" src="Frame_1_files/QxWindowManager"></script><script type="text/javascript" src="Frame_1_files/QxWindow"></script><script type="text/javascript" src="Frame_1_files/QxFrame"></script><script type="text/javascript" src="Frame_1_files/QxNativeWindow"></script><script type="text/javascript" src="Frame_1_files/QxSplashScreen"></script><script type="text/javascript" src="Frame_1_files/QxFlashPlayerVersion"></script><script type="text/javascript" src="Frame_1_files/QxFlash"></script><script type="text/javascript" src="Frame_1_files/QxEmu"></script><script type="text/javascript" src="Frame_1_files/QxCommonView"></script><script type="text/javascript" src="Frame_1_files/QxCommonViewBar"></script><script type="text/javascript" src="Frame_1_files/QxCommonViewPane"></script><script type="text/javascript" src="Frame_1_files/QxCommonViewPage"></script><script type="text/javascript" src="Frame_1_files/QxCommonViewButton"></script><script type="text/javascript" src="Frame_1_files/QxTabView"></script><script type="text/javascript" src="Frame_1_files/QxTabViewBar"></script><script type="text/javascript" src="Frame_1_files/QxTabViewPane"></script><script type="text/javascript" src="Frame_1_files/QxTabViewPage"></script><script type="text/javascript" src="Frame_1_files/QxTabViewButton"></script><script type="text/javascript" src="Frame_1_files/QxBarView"></script><script type="text/javascript" src="Frame_1_files/QxBarViewBar"></script><script type="text/javascript" src="Frame_1_files/QxBarViewPane"></script><script type="text/javascript" src="Frame_1_files/QxBarViewPage"></script><script type="text/javascript" src="Frame_1_files/QxBarViewButton"></script><script type="text/javascript" src="Frame_1_files/QxOutlookBarView"></script><script type="text/javascript" src="Frame_1_files/QxOutlookBarViewButton"></script><script type="text/javascript" src="Frame_1_files/QxListView"></script><script type="text/javascript" src="Frame_1_files/QxDatePicker"></script><script type="text/javascript" src="Frame_1_files/QxStatusBar"></script><script type="text/javascript" src="Frame_1_files/QxStatusBarPane"></script><script type="text/javascript" src="Frame_1_files/QxProgressBar"></script><script type="text/javascript" src="Frame_1_files/QxSplitPane"></script><script type="text/javascript" src="Frame_1_files/QxButtonPane"></script><script type="text/javascript" src="Frame_1_files/QxOptionPane"></script><script type="text/javascript" src="Frame_1_files/QxScroller"></script><script type="text/javascript" src="Frame_1_files/QxTreeSelectionManager"></script><script type="text/javascript" src="Frame_1_files/QxTreeElement"></script><script type="text/javascript" src="Frame_1_files/QxTreeFile"></script><script type="text/javascript" src="Frame_1_files/QxTreeFolder"></script><script type="text/javascript" src="Frame_1_files/QxTree"></script><script type="text/javascript" src="Frame_1_files/QxVirtualSelectionManager"></script><script type="text/javascript" src="Frame_1_files/QxListView"></script><script type="text/javascript" src="Frame_1_files/QxListViewHeader"></script><script type="text/javascript" src="Frame_1_files/QxListViewPane"></script><script type="text/javascript" src="Frame_1_files/QxListViewHeaderCell"></script><script type="text/javascript" src="Frame_1_files/QxListViewHeaderSeparator"></script><script type="text/javascript" src="Frame_1_files/QxListViewContentCellText"></script><script type="text/javascript" src="Frame_1_files/QxListViewContentCellImage"></script><script type="text/javascript" src="Frame_1_files/QxListViewContentCellHtml"></script><script type="text/javascript" src="Frame_1_files/QxListViewContentCellLink"></script><script type="text/javascript" src="Frame_1_files/QxListViewContentCellIconHtml"></script><script type="text/javascript" src="Frame_1_files/QxDomSelectionManager"></script><script type="text/javascript" src="Frame_1_files/QxGallery"></script><script type="text/javascript" src="Frame_1_files/QxGalleryList"></script><script type="text/javascript" src="Frame_1_files/QxClock"></script><script type="text/javascript" src="Frame_1_files/QxClockAnalog"></script><script type="text/javascript" src="Frame_1_files/QxClockDigital"></script><script type="text/javascript" src="Frame_1_files/QxClockBinary"></script><script type="text/javascript" src="Frame_1_files/QxCookie"></script><script type="text/javascript" src="Frame_1_files/QxTimeTracker"></script><style type="text/css"></style></head>
<body style="background-color: rgb(235, 233, 237); color: rgb(0, 0, 0); -moz-user-focus: normal;">
<script type="text/javascript" src="Frame_1_files/demolayout"></script><div id="testHead">qooxdoo: <span>The new era of web interface development</span> | DEVELOPMENT BRANCH</div><div id="testFoot">[<a href="javascript:void(window.location.href=window.location.href.replace(/\/source\//, '\/public\/'))">Go to: Public</a>] [<a href="http://www.perevotech.com/qooxdoo/source/test/developer/Index.html">Go to: Developer Examples</a>] </div><div id="testDebug"><div class="head"><button>clear</button><button>hide</button><button>show</button><button>dispose</button></div><div class="log"><div class="group">QxInit</div><div class="message message-info">003471: qooxdoo/0.2_beta-3</div><div class="message message-info">003490: datestamp/20051230</div><div class="group">QxApplication[HASHCODE:0]</div><div class="message message-default">053420: Loading Data: 53419ms</div><div class="message message-info">053447: Available Classes: 152</div><div class="message message-info">053452: Client Detection: gecko 1.7.12</div><div class="message message-default">053686: Initialize Application: 240ms</div><div class="message message-info">053691: Created Instances: 81</div><div class="message message-default">054384: Executing User Application: 693ms</div><div class="message message-default">054411: Preloading Images: 23ms</div><div class="message message-info">055087: Created Instances: 261</div><div class="message message-default">055091: Initialize Interface: 549ms</div><div class="message message-default">055863: Postloading Images: 34ms</div></div></div><div id="testFrame"> </div><select id="testFiles" size="5" onchange="window.location.href=this.options[this.selectedIndex].value"><option value="Atom_1.html">Atom 1</option><option value="Atom_2.html">Atom 2</option><option value="Atom_3.html">Atom 3</option><option value="Bar_View_1.html">Bar View 1</option><option value="Bar_View_2.html">Bar View 2</option><option value="Border_1.html">Border 1</option><option value="Box_Layout_1.html">Box Layout 1</option><option value="Box_Layout_2.html">Box Layout 2</option><option value="Box_Layout_3.html">Box Layout 3</option><option value="Box_Layout_4.html">Box Layout 4</option><option value="Box_Layout_5.html">Box Layout 5</option><option value="Box_Layout_6.html">Box Layout 6</option><option value="Box_Layout_7.html">Box Layout 7</option><option value="Box_Layout_8.html">Box Layout 8</option><option value="Button_1.html">Button 1</option><option value="Button_2.html">Button 2</option><option value="Canvas_Layout_1.html">Canvas Layout 1</option><option value="Checkbox_1.html">Checkbox 1</option><option value="Clipping_1.html">Clipping 1</option><option value="Clock_1.html">Clock 1</option><option value="Color_Themes_1.html">Color Themes 1</option><option value="Color_Themes_2.html">Color Themes 2</option><option value="Color_Themes_3.html">Color Themes 3</option><option value="Combobox_1.html">Combobox 1</option><option value="Combobox_2.html">Combobox 2</option><option value="Combobox_3.html">Combobox 3</option><option value="Combobox_4.html">Combobox 4</option><option value="Cookie_1.html">Cookie 1</option><option value="Data_Handling_1.html">Data Handling 1</option><option value="Data_Handling_2.html">Data Handling 2</option><option value="Dock_Layout_1.html">Dock Layout 1</option><option value="Dock_Layout_2.html">Dock Layout 2</option><option value="Dock_Layout_3.html">Dock Layout 3</option><option value="Dock_Layout_4.html">Dock Layout 4</option><option value="Dock_Layout_5.html">Dock Layout 5</option><option value="Dock_Layout_6.html">Dock Layout 6</option><option value="Drag_And_Drop_1.html">Drag And Drop 1</option><option value="Drag_And_Drop_2.html">Drag And Drop 2</option><option value="Enabled_Disabled_1.html">Enabled Disabled 1</option><option value="Fields_1.html">Fields 1</option><option value="Fields_2.html">Fields 2</option><option value="Fieldset_1.html">Fieldset 1</option><option value="Fieldset_2.html">Fieldset 2</option><option value="Fieldset_3.html">Fieldset 3</option><option value="Fieldset_4.html">Fieldset 4</option><option value="Flash_1.html">Flash 1</option><option value="Flow_Layout_1.html">Flow Layout 1</option><option value="Flow_Layout_2.html">Flow Layout 2</option><option value="Flow_Layout_3.html">Flow Layout 3</option><option value="Focus_Manager_1.html">Focus Manager 1</option><option value="Font_1.html">Font 1</option><option value="Frame_1.html" selected="selected">Frame 1</option><option value="Gallery_1.html">Gallery 1</option><option value="Gallery_2.html">Gallery 2</option><option value="Gallery_3.html">Gallery 3</option><option value="Gallery_List_1.html">Gallery List 1</option><option value="Grid_Layout_10.html">Grid Layout 10</option><option value="Grid_Layout_11.html">Grid Layout 11</option><option value="Grid_Layout_1.html">Grid Layout 1</option><option value="Grid_Layout_2.html">Grid Layout 2</option><option value="Grid_Layout_3.html">Grid Layout 3</option><option value="Grid_Layout_4.html">Grid Layout 4</option><option value="Grid_Layout_5.html">Grid Layout 5</option><option value="Grid_Layout_6.html">Grid Layout 6</option><option value="Grid_Layout_7.html">Grid Layout 7</option><option value="Grid_Layout_8.html">Grid Layout 8</option><option value="Grid_Layout_9.html">Grid Layout 9</option><option value="IconHtml_1.html">IconHtml 1</option><option value="Iframe_1.html">Iframe 1</option><option value="Image_1.html">Image 1</option><option value="Image_2.html">Image 2</option><option value="Index.html">Index</option><option value="Inline_1.html">Inline 1</option><option value="Label_1.html">Label 1</option><option value="Label_2.html">Label 2</option><option value="Label_3.html">Label 3</option><option value="Label_4.html">Label 4</option><option value="Link_1.html">Link 1</option><option value="List_1.html">List 1</option><option value="List_2.html">List 2</option><option value="List_3.html">List 3</option><option value="List_4.html">List 4</option><option value="List_View_10.html">List View 10</option><option value="List_View_11.html">List View 11</option><option value="List_View_12.html">List View 12</option><option value="List_View_13.html">List View 13</option><option value="List_View_14.html">List View 14</option><option value="List_View_1b.html">List View 1b</option><option value="List_View_1.html">List View 1</option><option value="List_View_2b.html">List View 2b</option><option value="List_View_2.html">List View 2</option><option value="List_View_3b.html">List View 3b</option><option value="List_View_3.html">List View 3</option><option value="List_View_4.html">List View 4</option><option value="List_View_5.html">List View 5</option><option value="List_View_6.html">List View 6</option><option value="List_View_7.html">List View 7</option><option value="List_View_8.html">List View 8</option><option value="List_View_9.html">List View 9</option><option value="Menu_1.html">Menu 1</option><option value="Menu_2.html">Menu 2</option><option value="Menu_3.html">Menu 3</option><option value="Native_Window_1.html">Native Window 1</option><option value="Node_1.html">Node 1</option><option value="OptionPane_1.html">OptionPane 1</option><option value="OptionPane_2.html">OptionPane 2</option><option value="ProgressBar_1.html">ProgressBar 1</option><option value="Radiobutton_1.html">Radiobutton 1</option><option value="Repeat_Button_1.html">Repeat Button 1</option><option value="Rounded_Corners_1.html">Rounded Corners 1</option><option value="Scroller_1.html">Scroller 1</option><option value="Spinner_1.html">Spinner 1</option><option value="SplashScreen_1.html">SplashScreen 1</option><option value="StatusBar_1.html">StatusBar 1</option><option value="StatusBar_2.html">StatusBar 2</option><option value="Tab_View_1.html">Tab View 1</option><option value="Toolbar_1.html">Toolbar 1</option><option value="Toolbar_2.html">Toolbar 2</option><option value="Toolbar_3.html">Toolbar 3</option><option value="Toolbar_4.html">Toolbar 4</option><option value="Toolbar_5.html">Toolbar 5</option><option value="Toolbar_6.html">Toolbar 6</option><option value="Toolbar_7.html">Toolbar 7</option><option value="Toolbar_8.html">Toolbar 8</option><option value="Tooltip_1.html">Tooltip 1</option><option value="Tree_1.html">Tree 1</option><option value="Tree_2.html">Tree 2</option><option value="Tree_3.html">Tree 3</option><option value="Tree_4.html">Tree 4</option><option value="Tree_5.html">Tree 5</option><option value="Tree_6.html">Tree 6</option><option value="Tree_7.html">Tree 7</option><option value="User_Data_1.html">User Data 1</option><option value="Window_1.html">Window 1</option><option value="Window_2.html">Window 2</option><option value="Window_3.html">Window 3</option><option value="Window_4.html">Window 4</option><option value="Window_5.html">Window 5</option></select>
<div id="testDescription">
<p>Testing StatusBar implementation.</p>
<p>The elements of the status bar will be created on the first open of the QxStatusBar.</p>
</div>
<script type="text/javascript">
window.application.main = function()
{
var doc = this.getClientWindow().getClientDocument();
var mainF = new QxFrame("Test of status bar");
mainF.setSpace(20, 400, 48, 250);
mainF.setMenuBar(createMenuBar());
mainF.setStatusBar(createStatusBar());
mainF.addEventListener(QxConst.EVENT_TYPE_KEYDOWN, function _onkeydown(e) {
if(e.getKeyCode() == 90) // The NUM key
{
numL.setHtml("NUM");
}
else
{
numL.setHtml("");
};
});
doc.add(mainF);
mainF.open();
function createMenuBar() {
var menuMB = new QxMenuBar();
var fileM = new QxMenu();
var newMB = new QxMenuButton("New");
var openMB = new QxMenuButton("Open");
var saveAsMB = new QxMenuButton("Save as..");
var mailS = new QxMenuSeparator();
var closeMB = new QxMenuButton("Close");
var exitMB = new QxMenuButton("Exit");
exitMB.addEventListener("execute", function() {
mainF.close();
});
fileM.add(newMB, openMB, saveAsMB, mailS, closeMB, exitMB);
var fileMBB = new QxMenuBarButton("File", fileM);
// Edit Menu
var editM = new QxMenu();
var undoMB = new QxMenuButton("Undo");
var redoMB = new QxMenuButton("Redo");
var editS1 = new QxMenuSeparator();
var cutMB = new QxMenuButton("Cut");
var copyMB = new QxMenuButton("Copy");
var pasteMB = new QxMenuButton("Paste");
var deleteMB = new QxMenuButton("Delete");
var editS2 = new QxMenuSeparator();
var selectAllMB = new QxMenuButton("Select all");
var editS3 = new QxMenuSeparator();
var preferencesMB = new QxMenuButton("Preferences");
editM.add(undoMB, redoMB, editS1, cutMB, copyMB, pasteMB, deleteMB, editS2, selectAllMB, editS3, preferencesMB);
var editMBB = new QxMenuBarButton("Edit",editM);
doc.add(fileM, editM);
menuMB.add(fileMBB, editMBB);
return menuMB;
};
function createStatusBar() {
var statusSB = new QxStatusBar();
var statusL = new QxLabel("Ready");
var statusSBP1 = new QxStatusBarPane(statusL);
statusSBP1.setWidth("50%");
var numL = new QxLabel();
var statusSBP2 = new QxStatusBarPane(numL);
statusSBP2.setWidth(30);
statusSBP2.setLeft(95);
var digitalClockC = new QxClockDigital();
var statusSBP3 = new QxStatusBarPane(digitalClockC);
statusSBP3.setLeft(98);
statusSB.add(statusSBP1, statusSBP2, statusSBP3);
return statusSB;
};
};
</script>
<div style="height: auto; width: auto; visibility: hidden; position: absolute; z-index: -1;">3:21:16 PM</div><div qxhashcode="89" class="QxWidgetCore QxFrame" style="border: 2px outset ; z-index: 1000000; background-color: rgb(235, 233, 237); color: rgb(0, 0, 0); -moz-user-focus: normal; -moz-border-left-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-right-colors: rgb(133, 135, 140) rgb(167, 166, 170); -moz-border-top-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-bottom-colors: rgb(133, 135, 140) rgb(167, 166, 170); height: 250px; min-height: 71px; min-width: 160px; left: 255px; top: 97px; width: 409px; cursor: s-resize;"><div style="left: 1px; right: 1px; top: 1px; bottom: 1px;" qxhashcode="93" class="QxWidgetCore QxVerticalBoxLayout"><div style="height: 19px; background-color: rgb(51, 94, 168); color: rgb(255, 255, 255); left: 0px; right: 0px; top: 0px;" qxhashcode="96" class="QxWidgetCore QxHorizontalBoxLayout"><div qxhashcode="99" title="" class="QxWidgetCore QxImage" style="-moz-user-select: none; margin-right: 2px; left: 2px; top: 9px;"><img src="Frame_1_files/blank" height="1" width="1"></div><div qxhashcode="100" class="QxWidgetCore QxLabel" style="-moz-user-select: none; cursor: default; font-weight: bold; margin-right: 2px; left: 5px; top: 2px;">Test of status bar</div><div style="min-height: 16px; width: 249px; left: 100px; top: 1px; bottom: 2px;" qxhashcode="101" class="QxWidgetCore QxHorizontalSpacer"></div><div qxhashcode="102" class="QxWidgetCore QxButton" style="border: 2px outset ; -moz-user-select: none; -moz-user-focus: ignore; cursor: default; background-color: rgb(235, 233, 237); -moz-border-left-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-right-colors: rgb(133, 135, 140) rgb(167, 166, 170); -moz-border-top-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-bottom-colors: rgb(133, 135, 140) rgb(167, 166, 170); width: 17px; height: 15px; left: 349px; top: 2px;"><div qxhashcode="105" title="" class="QxWidgetCore QxImage" style="-moz-user-select: none; left: 2px; top: 1px;"><img src="Frame_1_files/minimize" height="9" width="9"></div></div><div qxhashcode="119" class="QxWidgetCore QxButton" style="border: 2px outset ; -moz-user-select: none; -moz-user-focus: ignore; cursor: default; background-color: rgb(235, 233, 237); -moz-border-left-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-right-colors: rgb(133, 135, 140) rgb(167, 166, 170); -moz-border-top-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-bottom-colors: rgb(133, 135, 140) rgb(167, 166, 170); width: 17px; height: 15px; left: 366px; top: 2px;"><div qxhashcode="122" title="" class="QxWidgetCore QxImage" style="-moz-user-select: none; left: 2px; top: 1px;"><img src="Frame_1_files/maximize" height="9" width="9"></div></div><div qxhashcode="124" class="QxWidgetCore QxButton" style="border: 2px outset ; -moz-user-select: none; -moz-user-focus: ignore; cursor: default; background-color: rgb(235, 233, 237); -moz-border-left-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-right-colors: rgb(133, 135, 140) rgb(167, 166, 170); -moz-border-top-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-bottom-colors: rgb(133, 135, 140) rgb(167, 166, 170); margin-left: 2px; width: 16px; height: 15px; left: 383px; top: 2px;"><div qxhashcode="127" title="" class="QxWidgetCore QxImage" style="-moz-user-select: none; left: 1px; top: 1px;"><img src="Frame_1_files/close" height="9" width="10"></div></div></div><div style="border: 1px outset ; -moz-border-left-colors: rgb(255, 255, 255); -moz-border-right-colors: rgb(167, 166, 170); -moz-border-top-colors: rgb(255, 255, 255); -moz-border-bottom-colors: rgb(167, 166, 170); height: 22px; left: 0px; right: 0px; top: 19px;" qxhashcode="138" class="QxWidgetCore QxMenuBar"><div qxhashcode="196" class="QxWidgetCore QxMenuBarButton" style="-moz-user-select: none; cursor: default; background-color: rgb(235, 233, 237); width: 25px; left: 0px; top: 0px; bottom: 0px;"><div qxhashcode="199" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 4px; top: 3px;">File</div></div><div qxhashcode="279" class="QxWidgetCore QxMenuBarButton" style="-moz-user-select: none; cursor: default; background-color: rgb(235, 233, 237); width: 26px; left: 25px; top: 0px; bottom: 0px;"><div qxhashcode="282" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 4px; top: 3px;">Edit</div></div></div><div style="height: 179px; left: 0px; right: 0px; top: 41px;" qxhashcode="129" class="QxWidgetCore QxCanvasLayout"></div><div qxhashcode="283" class="QxWidgetCore QxStatusBar" style="border: 1px outset ; color: rgb(0, 0, 0); background-color: rgb(235, 233, 237); overflow: hidden; -moz-border-left-colors: rgb(255, 255, 255); -moz-border-right-colors: rgb(167, 166, 170); -moz-border-top-colors: rgb(255, 255, 255); -moz-border-bottom-colors: rgb(167, 166, 170); height: 24px; left: 0px; right: 0px; top: 220px;"><div qxhashcode="287" class="QxWidgetCore QxStatusBarPane" style="border: 2px inset ; color: rgb(0, 0, 0); background-color: rgb(235, 233, 237); -moz-border-left-colors: rgb(167, 166, 170) rgb(133, 135, 140); -moz-border-right-colors: rgb(255, 255, 255) rgb(220, 223, 228); -moz-border-top-colors: rgb(167, 166, 170) rgb(133, 135, 140); -moz-border-bottom-colors: rgb(255, 255, 255) rgb(220, 223, 228); width: 201px; left: 0px; top: 0px; bottom: 0px;"><div style="padding-left: 1px; padding-right: 1px;" qxhashcode="286" class="QxWidgetCore QxLabel">Ready</div></div><div qxhashcode="290" class="QxWidgetCore QxStatusBarPane" style="border: 2px inset ; color: rgb(0, 0, 0); background-color: rgb(235, 233, 237); -moz-border-left-colors: rgb(167, 166, 170) rgb(133, 135, 140); -moz-border-right-colors: rgb(255, 255, 255) rgb(220, 223, 228); -moz-border-top-colors: rgb(167, 166, 170) rgb(133, 135, 140); -moz-border-bottom-colors: rgb(255, 255, 255) rgb(220, 223, 228); width: 30px; left: 296px; top: 0px; bottom: 0px;"><div style="padding-left: 1px; padding-right: 1px;" qxhashcode="289" class="QxWidgetCore QxLabel"></div></div><div qxhashcode="298" class="QxWidgetCore QxStatusBarPane" style="border: 2px inset ; color: rgb(0, 0, 0); background-color: rgb(235, 233, 237); -moz-border-left-colors: rgb(167, 166, 170) rgb(133, 135, 140); -moz-border-right-colors: rgb(255, 255, 255) rgb(220, 223, 228); -moz-border-top-colors: rgb(167, 166, 170) rgb(133, 135, 140); -moz-border-bottom-colors: rgb(255, 255, 255) rgb(220, 223, 228); width: 61px; left: 329px; top: 0px; bottom: 0px;"><div qxhashcode="292" class="QxWidgetCore QxClockDigital" style="-moz-user-select: none; cursor: default; width: 57px; height: 14px;"><div style="left: 1px; top: 0px;" qxhashcode="297" class="QxWidgetCore QxLabel">3:21:16 PM</div></div></div></div></div></div><div qxhashcode="142" class="QxWidgetCore QxMenu" style="border: 2px outset ; background-color: rgb(255, 255, 255); -moz-border-left-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-right-colors: rgb(133, 135, 140) rgb(167, 166, 170); -moz-border-top-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-bottom-colors: rgb(133, 135, 140) rgb(167, 166, 170); width: 88px; height: 103px; left: 259px; top: 140px; z-index: 1000000; display: none;"><div style="left: 1px; right: 1px; top: 1px; bottom: 1px;" qxhashcode="145" class="QxWidgetCore QxMenuLayout"><div qxhashcode="155" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 82px; left: 0px; right: 0px; top: 0px;"><div qxhashcode="159" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">New</div></div><div qxhashcode="163" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 82px; left: 0px; right: 0px; top: 18px;"><div qxhashcode="167" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Open</div></div><div qxhashcode="170" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 82px; left: 0px; right: 0px; top: 36px;"><div qxhashcode="174" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Save as..</div></div><div style="height: 2px; left: 0px; right: 0px; top: 54px; margin-top: 3px; margin-bottom: 2px;" qxhashcode="177" class="QxWidgetCore QxMenuSeparator"><div style="border-style: inset; border-color: -moz-use-text-color; border-width: 1px 0px; -moz-border-top-colors: rgb(167, 166, 170); -moz-border-bottom-colors: rgb(255, 255, 255); height: 2px; left: 3px; right: 3px; top: 0px; bottom: 0px;" qxhashcode="179" class="QxWidgetCore QxTerminator"></div></div><div qxhashcode="181" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 82px; left: 0px; right: 0px; top: 61px;"><div qxhashcode="185" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Close</div></div><div qxhashcode="188" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 82px; left: 0px; right: 0px; top: 79px;"><div qxhashcode="192" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Exit</div></div></div></div><div qxhashcode="207" class="QxWidgetCore QxMenu" style="border: 2px outset ; background-color: rgb(255, 255, 255); -moz-border-left-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-right-colors: rgb(133, 135, 140) rgb(167, 166, 170); -moz-border-top-colors: rgb(220, 223, 228) rgb(255, 255, 255); -moz-border-bottom-colors: rgb(133, 135, 140) rgb(167, 166, 170); width: 102px; height: 171px; left: 284px; top: 140px; z-index: 1000000; display: none;"><div style="left: 1px; right: 1px; top: 1px; bottom: 1px;" qxhashcode="209" class="QxWidgetCore QxMenuLayout"><div qxhashcode="214" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 0px;"><div qxhashcode="218" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Undo</div></div><div qxhashcode="221" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 18px;"><div qxhashcode="225" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Redo</div></div><div style="height: 2px; left: 0px; right: 0px; top: 36px; margin-top: 3px; margin-bottom: 2px;" qxhashcode="228" class="QxWidgetCore QxMenuSeparator"><div style="border-style: inset; border-color: -moz-use-text-color; border-width: 1px 0px; -moz-border-top-colors: rgb(167, 166, 170); -moz-border-bottom-colors: rgb(255, 255, 255); height: 2px; left: 3px; right: 3px; top: 0px; bottom: 0px;" qxhashcode="230" class="QxWidgetCore QxTerminator"></div></div><div qxhashcode="231" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 43px;"><div qxhashcode="235" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Cut</div></div><div qxhashcode="238" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 61px;"><div qxhashcode="242" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Copy</div></div><div qxhashcode="245" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 79px;"><div qxhashcode="249" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Paste</div></div><div qxhashcode="252" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 97px;"><div qxhashcode="256" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Delete</div></div><div style="height: 2px; left: 0px; right: 0px; top: 115px; margin-top: 3px; margin-bottom: 2px;" qxhashcode="259" class="QxWidgetCore QxMenuSeparator"><div style="border-style: inset; border-color: -moz-use-text-color; border-width: 1px 0px; -moz-border-top-colors: rgb(167, 166, 170); -moz-border-bottom-colors: rgb(255, 255, 255); height: 2px; left: 3px; right: 3px; top: 0px; bottom: 0px;" qxhashcode="261" class="QxWidgetCore QxTerminator"></div></div><div qxhashcode="262" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 122px;"><div qxhashcode="266" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Select all</div></div><div style="height: 2px; left: 0px; right: 0px; top: 140px; margin-top: 3px; margin-bottom: 2px;" qxhashcode="269" class="QxWidgetCore QxMenuSeparator"><div style="border-style: inset; border-color: -moz-use-text-color; border-width: 1px 0px; -moz-border-top-colors: rgb(167, 166, 170); -moz-border-bottom-colors: rgb(255, 255, 255); height: 2px; left: 3px; right: 3px; top: 0px; bottom: 0px;" qxhashcode="271" class="QxWidgetCore QxTerminator"></div></div><div qxhashcode="272" class="QxWidgetCore QxMenuButton" style="cursor: default; height: 18px; min-width: 96px; left: 0px; right: 0px; top: 147px;"><div qxhashcode="276" class="QxWidgetCore QxLabel" style="-moz-user-select: none; left: 24px; top: 2px;">Preferences</div></div></div></div></body></html>
--- NEW FILE: QxUtil.js ---
/* ****************************************************************************
qooxdoo - the new era of web interface development
Version:
$Id: QxUtil.js,v 1.1.2.1 2006/01/24 14:12:45 wpbasti Exp $
Copyright:
(C) 2004-2005 by Schlund + Partner AG, Germany
All rights reserved
License:
LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/
Internet:
* http://qooxdoo.oss.schlund.de
Authors:
* Sebastian Werner (wpbasti)
<sebastian dot werner at 1und1 dot de>
* Andreas Ecker (aecker)
<andreas dot ecker at 1und1 dot de>
**************************************************************************** */
/* ****************************************************************************
#package(core)
**************************************************************************** */
QxUtil = {};
/* ********************************************************************
Simple return methods
******************************************************************** */
QxUtil.returnTrue = function() {
return true;
};
QxUtil.returnFalse = function() {
return false;
};
QxUtil.returnNull = function() {
return null;
};
QxUtil.returnThis = function() {
return this;
};
QxUtil.returnZero = function() {
return 0;
};
QxUtil.returnNegativeIndex = function() {
return -1;
};
/* ********************************************************************
Utility Methods
******************************************************************** */
/*
Function to check if a hash has any keys
*/
QxUtil.isObjectEmpty = function(h)
{
for (var s in h) {
return false;
};
return true;
};
QxUtil.isObjectMinLength = function(h, j)
{
var i=0;
for (var s in h)
{
if ((++i)>=j) {
return true;
};
};
return false;
};
QxUtil.getObjectLength = function(h)
{
var i=0;
for (var s in h) {
i++;
};
return i;
};
QxUtil.convertObjectToString = function(h) {
return QxUtil.convertObjectToArray(h).join(", ");
};
QxUtil.convertObjectToArray = function(h)
{
var r = [];
for (var s in h) {
r.push(s);
};
return r;
};
QxUtil.convertArgumentsToArray = function(a)
{
var b = [];
for (var i=0, l=a.length; i<l; i++) {
b.push(a[i]);
};
return b;
};
/*
Utility function for padding/margin and all other shorthand handling.
*/
QxUtil.convertShortHandToArray = function(params)
{
var l = params.length;
if (l > 4) {
throw new Error("Invalid number of arguments!");
};
var v;
var list = [];
for (var i=0; i<l; i++)
{
v = params[i];
if (QxUtil.isValidNumber(v))
{
list.push(v);
}
else if (QxUtil.isInvalidString(v))
{
list.push(null);
}
else
{
throw new Error("Invalid shorthand value: " + v);
};
};
// Fix Values (Shorthand)
switch(l)
{
case 1:
list[1] = list[2] = list[3] = list[0];
break;
case 2:
list[2] = list[0];
case 3:
list[3] = list[1];
};
return list;
};
/* ********************************************************************
Value validation methods
******************************************************************** */
/*
All methods use the strict comparison operators as all modern
browsers (needs support for JavaScript 1.3) seems to support this.
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Operators:Comparison_Operators
*/
QxUtil.isValid = function(v)
{
switch(typeof v)
{
case QxConst.TYPEOF_UNDEFINED:
return false;
case QxConst.TYPEOF_OBJECT:
return v !== null;
case QxConst.TYPEOF_STRING:
return v !== QxConst.CORE_EMPTY;
case QxConst.TYPEOF_NUMBER:
return !isNaN(v);
case QxConst.TYPEOF_FUNCTION:
case QxConst.TYPEOF_BOOLEAN:
return true;
};
return false;
};
QxUtil.isInvalid = function(v)
{
switch(typeof v)
{
case QxConst.TYPEOF_UNDEFINED:
return true;
case QxConst.TYPEOF_OBJECT:
return v === null;
case QxConst.TYPEOF_STRING:
return v === QxConst.CORE_EMPTY;
case QxConst.TYPEOF_NUMBER:
return isNaN(v);
case QxConst.TYPEOF_FUNCTION:
case QxConst.TYPEOF_BOOLEAN:
return false;
};
return true;
};
QxUtil.isValidNumber = function(v) {
return typeof v === QxConst.TYPEOF_NUMBER && !isNaN(v);
};
QxUtil.isInvalidNumber = function(v) {
return typeof v !== QxConst.TYPEOF_NUMBER || isNaN(v);
};
QxUtil.isValidString = function(v) {
return typeof v === QxConst.TYPEOF_STRING && v !== QxConst.CORE_EMPTY;
};
QxUtil.isInvalidString = function(v) {
return typeof v !== QxConst.TYPEOF_STRING || v === QxConst.CORE_EMPTY;
};
QxUtil.isValidArray = function(v) {
return typeof v === QxConst.TYPEOF_OBJECT && v !== null && v instanceof Array;
};
QxUtil.isInvalidArray = function(v) {
return typeof v !== QxConst.TYPEOF_OBJECT || v === null || !(v instanceof Array);
};
QxUtil.isValidObject = function(v) {
return typeof v === QxConst.TYPEOF_OBJECT && v !== null && !(v instanceof Array);
};
QxUtil.isInvalidObject = function(v) {
return typeof v !== QxConst.TYPEOF_OBJECT || v === null || v instanceof Array;
};
QxUtil.isValidFunction = function(v) {
return typeof v === QxConst.TYPEOF_FUNCTION;
};
QxUtil.isInvalidFunction = function(v) {
return typeof v !== QxConst.TYPEOF_FUNCTION;
};
QxUtil.isValidBoolean = function(v) {
return typeof v === QxConst.TYPEOF_BOOLEAN;
};
QxUtil.isInvalidBoolean = function(v) {
return typeof v !== QxConst.TYPEOF_BOOLEAN;
};
QxUtil.isValidStringOrNumber = function(v)
{
switch(typeof v)
{
case QxConst.TYPEOF_STRING:
return v !== QxConst.CORE_EMPTY;
case QxConst.TYPEOF_NUMBER:
return !isNaN(v);
};
return false;
};
QxUtil.isInvalidStringOrNumber = function(v)
{
switch(typeof v)
{
case QxConst.TYPEOF_STRING:
return v === QxConst.CORE_EMPTY;
case QxConst.TYPEOF_NUMBER:
return isNaN(v);
};
return false;
};
/* ********************************************************************
Component layout methods
******************************************************************** */
QxUtil.centerToBrowser = function(vComponent)
{
var d = window.application.getClientWindow().getClientDocument();
vComponent.setLeft((d.getClientWidth() / 2) - (vComponent.getBoxWidth() / 2));
vComponent.setTop((d.getClientHeight() / 2) - (vComponent.getBoxHeight() / 2));
};
--- NEW FILE: QxWindow.js ---
/* ****************************************************************************
qooxdoo - the new era of web interface development
Version:
$Id: QxWindow.js,v 1.1.2.1 2006/01/24 14:12:45 wpbasti Exp $
Copyright:
(C) 2004-2005 by Schlund + Partner AG, Germany
All rights reserved
License:
LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/
Internet:
* http://qooxdoo.oss.schlund.de
Authors:
* Sebastian Werner (wpbasti)
[...1395 lines suppressed...]
if (this._pane)
{
this._pane.dispose();
this._pane = null;
};
if (this._statusBar)
{
this._statusBar.dispose();
this._statusBar = null;
};
if (this._statusText)
{
this._statusText.dispose();
this._statusText = null;
};
return QxPopup.prototype.dispose.call(this);
};
--- NEW FILE: QxFrame.js ---
/* ****************************************************************************
qooxdoo - the new era of web interface development
Version:
$Id: QxFrame.js,v 1.1.2.1 2006/01/24 14:12:45 wpbasti Exp $
Copyright:
(C) 2004-2005 by Schlund + Partner AG, Germany
All rights reserved
License:
LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/
Internet:
* http://qooxdoo.oss.schlund.de
Authors:
* Kent Olsson (kols)
<kent dot olsson at chello dot se>
**************************************************************************** */
/* ****************************************************************************
#package(window)
**************************************************************************** */
function QxFrame(vCaption, vIcon)
{
QxWindow.call(this, vCaption, vIcon);
};
QxFrame.extend(QxWindow, "QxFrame");
/*
------------------------------------------------------------------------------------
PROPERTIES
------------------------------------------------------------------------------------
*/
/*!
The main menu bar if any.
*/
QxFrame.addProperty({ name : "menuBar", type : QxConst.TYPEOF_OBJECT, allowNull : true, instance : QxMenuBar });
/*!
The status bar if any.
*/
QxFrame.addProperty({ name : "statusBar", type : QxConst.TYPEOF_OBJECT, allowNull : true});//, instance : QxStatusBar }); //gets an error when instance is used???
/*
------------------------------------------------------------------------------------
MODIFIERS
------------------------------------------------------------------------------------
*/
proto._modifyMenuBar = function(propValue, propOldValue, propData)
{
if (propValue)
{
this._layout.addAfter(this.getMenuBar(), this._captionBar);
}
else
{
this._layout.remove(this.getMenuBar());
};
return true;
};
proto._modifyStatusBar = function(propValue, propOldValue, propData)
{
if (propValue)
{
this._layout.addAtEnd(this.getStatusBar());
}
else
{
this._layout.remove(this.getStatusBar());
};
return true;
};
/*
------------------------------------------------------------------------------------
DISPOSER
------------------------------------------------------------------------------------
*/
proto.dispose = function()
{
if (this.getDisposed()) {
return true;
};
return QxWindow.prototype.dispose.call(this);
};
|