1370N/A * The contents of this file are subject to the terms of the 1370N/A * Common Development and Distribution License (the "License"). 1370N/A * You may not use this file except in compliance with the License. 1370N/A * language governing permissions and limitations under the License. 1370N/A * When distributing Covered Code, include this CDDL HEADER in each 1370N/A * If applicable, add the following below this CDDL HEADER, with the 1370N/A * fields enclosed by brackets "[]" replaced with your own identifying 1370N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1370N/A * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 1370N/A * Portions Copyright 2011, 2012, Jens Elkner. 1370N/A // assure a minimum size of 50x50 1370N/A // at least a part of the head should be visible for dragging 1370N/A if (t + w <
50 ||
right <
50) {
// 50 because of the close button 1370N/A * Hide the panel. It is different from just setting the 'visible' 1370N/A * property: unneeded listeners are removed from the panel after it 1370N/A * Show the panel. It is different from just setting the 'visible' 1370N/A * property: adjusts the position of the panel if necessary, syncs the 1370N/A * height of the fillSection (default: body) and adds additional 1370N/A * listeners before making it visible. 1370N/A // a little hack for people who wanna play with resize 1370N/A /* @attribute {Integer} preferred width of the panel */ 1370N/A /* @attribute {Integer} preferred height of the panel */ 1370N/A /* @attribute {} preferred distance of the panel incl. margins to 1370N/A * its "container" - used for positioning only. Invalid values are 1370N/A /* @attribute {Integer} CSS z-index value */ 1370N/A * Create a node suitable to be used as <var>srcNode</var> aka content 1370N/A * box for an instance of SymbolPanel. The format for the symbolClass 1370N/A * symbolClass = '[' Section[','Section]*']' 1370N/A * Section = '[' SectionName',' CssClassName',' '[' Entry[',' Entry]* ']'']' 1370N/A * Entry = '[' SymbolName',' LineNumber ']' 1370N/A * *Number = <Integer> 1370N/A * @param symbolClass symbol classes to use to create the body of the 1370N/A * @param title the text to show in the head of the content box. 1370N/A * @return a non-<code>null</code> node. 1370N/A +
"<div id='symbolsHd' class='yui3-widget-hd'><h3>" +
title 1370N/A +
"<div id='symbols' class='yui3-widget-bd'>";
1370N/A +
"<div id='symbolsFt' class='yui3-widget-ft'></div></div>" 1370N/A 'widget-position',
'widget-stack',
'widget-stdmod',