2 "name" : "Roo.panel.Cropbox",
11 "desc" : "Panel Cropbox class",
12 "isSingleton" : false,
16 "isBuilderTop" : false,
17 "memberOf" : "Cropbox",
26 "desc" : "The config object",
37 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
38 "memberOf" : "Roo.util.Observable",
43 "name" : "errorTimeout",
45 "desc" : "default 3000",
51 "name" : "windowSize",
53 "desc" : "default 300",
61 "desc" : "default ['rotateLeft', 'pictureBtn', 'rotateRight']",
69 "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display",
70 "memberOf" : "Roo.Component",
80 "desc" : "show when image has been loaded",
88 "desc" : "default 300",
94 "name" : "outputMaxWidth",
96 "desc" : "default 1200",
104 "desc" : "default POST",
106 "isOptional" : false,
112 "desc" : "css styles to add to component\neg. text-align:right;",
113 "memberOf" : "Roo.Component",
114 "isOptional" : false,
118 "name" : "allowDomMove",
120 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
121 "memberOf" : "Roo.Component",
122 "isOptional" : false,
126 "name" : "paramName",
128 "desc" : "default 'imageUpload'",
130 "isOptional" : false,
134 "name" : "minHeight",
136 "desc" : "default 300",
138 "isOptional" : false,
142 "name" : "isDocument",
144 "desc" : "e) default fal",
146 "isOptional" : false,
155 "desc" : "e) default tr",
157 "isOptional" : false,
164 "name" : "actionMode",
166 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl",
167 "memberOf" : "Roo.Component",
168 "isOptional" : false,
174 "desc" : "width (optional) size of component",
175 "memberOf" : "Roo.BoxComponent",
176 "isOptional" : false,
180 "name" : "rotateNotify",
182 "desc" : "show when image too small to rotate",
184 "isOptional" : false,
190 "desc" : "action url",
192 "isOptional" : false,
198 "desc" : "height (optional) size of component",
199 "memberOf" : "Roo.BoxComponent",
200 "isOptional" : false,
204 "name" : "disableClass",
206 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
207 "memberOf" : "Roo.Component",
208 "isOptional" : false,
212 "name" : "loadingText",
214 "desc" : "default 'Loading...'",
216 "isOptional" : false,
222 "name" : "updateBox",
224 "desc" : "Sets the current box measurements of the component's underlying element.",
227 "memberOf" : "Roo.BoxComponent",
229 "isConstructor" : false,
241 "desc" : "An object in the format {x, y, width, height}",
248 "name" : "setPagePosition",
250 "desc" : "Sets the page XY position of the component. To set the left and top instead, use {@link #setPosition}.\nThis method fires the move event.",
253 "memberOf" : "Roo.BoxComponent",
255 "isConstructor" : false,
267 "desc" : "The new x position",
273 "desc" : "The new y position",
282 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
283 "sig" : "()\n{\n\n}",
285 "memberOf" : "Roo.BoxComponent",
287 "isConstructor" : false,
301 "desc" : "Sets the width and height of the component. This method fires the resize event. This method can accept\neither width and height as separate numeric arguments, or you can pass a size object like {width:10, height:20}.",
302 "sig" : "(width, height)",
304 "memberOf" : "Roo.BoxComponent",
306 "isConstructor" : false,
317 "type" : "Number/Object",
318 "desc" : "The new width to set, or a size object in the format {width, height}",
324 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
331 "type" : "Roo.BoxComponent",
337 "name" : "getPosition",
339 "desc" : "Gets the current XY position of the component's underlying element.",
342 "memberOf" : "Roo.BoxComponent",
344 "isConstructor" : false,
356 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
364 "desc" : "The XY position of the element (e.g., [100, 200])"
371 "desc" : "Called after the component is resized, this method is empty by default but can be implemented by any\nsubclass that needs to perform custom logic after a resize occurs.",
372 "sig" : "(adjWidth, adjHeight, rawWidth, rawHeight)",
374 "memberOf" : "Roo.BoxComponent",
376 "isConstructor" : false,
388 "desc" : "The box-adjusted width that was set",
392 "name" : "adjHeight",
394 "desc" : "The box-adjusted height that was set",
400 "desc" : "The width that was originally specified",
404 "name" : "rawHeight",
406 "desc" : "The height that was originally specified",
415 "desc" : "Gets the current box measurements of the component's underlying element.",
418 "memberOf" : "Roo.BoxComponent",
420 "isConstructor" : false,
432 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
441 "desc" : "Gets the current size of the component's underlying element.",
442 "sig" : "()\n{\n\n}",
444 "memberOf" : "Roo.BoxComponent",
446 "isConstructor" : false,
459 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
464 "name" : "onPosition",
466 "desc" : "Called after the component is moved, this method is empty by default but can be implemented by any\nsubclass that needs to perform custom logic after a move occurs.",
469 "memberOf" : "Roo.BoxComponent",
471 "isConstructor" : false,
483 "desc" : "The new x position",
489 "desc" : "The new y position",
496 "name" : "setPosition",
498 "desc" : "Sets the left and top of the component. To set the page XY position instead, use {@link #setPagePosition}.\nThis method fires the move event.",
499 "sig" : "(left, top)",
501 "memberOf" : "Roo.BoxComponent",
503 "isConstructor" : false,
515 "desc" : "The new left",
521 "desc" : "The new top",
530 "desc" : "Returns the id of this component.",
531 "sig" : "()\n{\n\n}",
533 "memberOf" : "Roo.Component",
535 "isConstructor" : false,
555 "desc" : "If this is a lazy rendering component, render it to its container element.",
556 "sig" : "(container)",
558 "memberOf" : "Roo.Component",
560 "isConstructor" : false,
570 "name" : "container",
571 "type" : "String/HTMLElement/Element",
572 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
581 "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.",
582 "sig" : "()\n{\n\n}",
584 "memberOf" : "Roo.Component",
586 "isConstructor" : false,
598 "name" : "isVisible",
600 "desc" : "Returns true if this component is visible.",
601 "sig" : "()\n{\n\n}",
603 "memberOf" : "Roo.Component",
605 "isConstructor" : false,
617 "name" : "setDisabled",
619 "desc" : "Convenience function for setting disabled/enabled by boolean.",
620 "sig" : "(disabled)",
622 "memberOf" : "Roo.Component",
624 "isConstructor" : false,
645 "desc" : "Hide this component.",
646 "sig" : "()\n{\n\n}",
648 "memberOf" : "Roo.Component",
650 "isConstructor" : false,
662 "type" : "Roo.Component",
670 "desc" : "Try to focus this component.",
671 "sig" : "(selectText)",
673 "memberOf" : "Roo.Component",
675 "isConstructor" : false,
685 "name" : "selectText",
687 "desc" : "True to also select the text in this component (if applicable)",
694 "type" : "Roo.Component",
702 "desc" : "Show this component.",
703 "sig" : "()\n{\n\n}",
705 "memberOf" : "Roo.Component",
707 "isConstructor" : false,
719 "type" : "Roo.Component",
727 "desc" : "Enable this component.",
728 "sig" : "()\n{\n\n}",
730 "memberOf" : "Roo.Component",
732 "isConstructor" : false,
744 "type" : "Roo.Component",
750 "name" : "setVisible",
752 "desc" : "Convenience function to hide or show this component by boolean.",
755 "memberOf" : "Roo.Component",
757 "isConstructor" : false,
769 "desc" : "True to show, false to hide",
776 "type" : "Roo.Component",
784 "desc" : "Disable this component.",
785 "sig" : "()\n{\n\n}",
787 "memberOf" : "Roo.Component",
789 "isConstructor" : false,
801 "type" : "Roo.Component",
809 "desc" : "Returns the underlying {@link Roo.Element}.",
810 "sig" : "()\n{\n\n}",
812 "memberOf" : "Roo.Component",
814 "isConstructor" : false,
826 "type" : "Roo.Element",
827 "desc" : "The element"
832 "name" : "purgeListeners",
834 "desc" : "Removes all listeners for this object",
835 "sig" : "()\n{\n\n}",
837 "memberOf" : "Roo.util.Observable",
839 "isConstructor" : false,
853 "desc" : "Appends an event handler to this element (shorthand for addListener)",
854 "sig" : "(eventName, handler, scope, options)",
856 "memberOf" : "Roo.util.Observable",
858 "isConstructor" : false,
868 "name" : "eventName",
870 "desc" : "The type of event to listen for",
876 "desc" : "The method the event invokes",
882 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
888 "desc" : "(optional)",
897 "desc" : "Removes a listener (shorthand for removeListener)",
898 "sig" : "(eventName, handler, scope)",
900 "memberOf" : "Roo.util.Observable",
902 "isConstructor" : false,
912 "name" : "eventName",
914 "desc" : "The type of event to listen for",
920 "desc" : "The handler to remove",
926 "desc" : "(optional) The scope (this object) for the handler",
933 "name" : "addEvents",
935 "desc" : "Used to define events on this Observable",
938 "memberOf" : "Roo.util.Observable",
940 "isConstructor" : false,
952 "desc" : "The object with the events defined",
959 "name" : "releaseCapture",
961 "desc" : "Removes <b>all</b> added captures from the Observable.",
964 "memberOf" : "Roo.util.Observable",
966 "isConstructor" : false,
977 "type" : "Observable",
978 "desc" : "The Observable to release",
985 "name" : "removeListener",
987 "desc" : "Removes a listener",
988 "sig" : "(eventName, handler, scope)",
990 "memberOf" : "Roo.util.Observable",
992 "isConstructor" : false,
1002 "name" : "eventName",
1004 "desc" : "The type of event to listen for",
1005 "isOptional" : false
1009 "type" : "Function",
1010 "desc" : "The handler to remove",
1011 "isOptional" : false
1016 "desc" : "(optional) The scope (this object) for the handler",
1017 "isOptional" : false
1023 "name" : "fireEvent",
1024 "type" : "function",
1025 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1026 "sig" : "(eventName, args)",
1028 "memberOf" : "Roo.util.Observable",
1030 "isConstructor" : false,
1031 "isPrivate" : false,
1040 "name" : "eventName",
1043 "isOptional" : false
1047 "type" : "Object...",
1048 "desc" : "Variable number of parameters are passed to handlers",
1049 "isOptional" : false
1056 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1061 "name" : "hasListener",
1062 "type" : "function",
1063 "desc" : "Checks to see if this object has any listeners for a specified event",
1064 "sig" : "(eventName)",
1066 "memberOf" : "Roo.util.Observable",
1068 "isConstructor" : false,
1069 "isPrivate" : false,
1078 "name" : "eventName",
1080 "desc" : "The name of the event to check for",
1081 "isOptional" : false
1088 "desc" : "True if the event is being listened for, else false"
1094 "type" : "function",
1095 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
1096 "sig" : "(o, fn, scope)",
1098 "memberOf" : "Roo.util.Observable",
1100 "isConstructor" : false,
1101 "isPrivate" : false,
1111 "type" : "Observable",
1112 "desc" : "The Observable to capture",
1113 "isOptional" : false
1117 "type" : "Function",
1118 "desc" : "The function to call",
1119 "isOptional" : false
1124 "desc" : "(optional) The scope (this object) for the fn",
1125 "isOptional" : false
1131 "name" : "addListener",
1132 "type" : "function",
1133 "desc" : "Appends an event handler to this component",
1134 "sig" : "(eventName, handler, scope, options)",
1136 "memberOf" : "Roo.util.Observable",
1138 "isConstructor" : false,
1139 "isPrivate" : false,
1148 "name" : "eventName",
1150 "desc" : "The type of event to listen for",
1151 "isOptional" : false
1155 "type" : "Function",
1156 "desc" : "The method the event invokes",
1157 "isOptional" : false
1162 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1163 "isOptional" : false
1168 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
1169 "isOptional" : false
1177 "name" : "beforeselectfile",
1178 "type" : "function",
1179 "desc" : "Fire before select file",
1180 "sig" : "function (_self)\n{\n\n}",
1189 "type" : "Roo.panel.Cropbox",
1191 "isOptional" : false
1198 "type" : "function",
1199 "desc" : "Fire when resize",
1200 "sig" : "function (_self)\n{\n\n}",
1209 "type" : "Roo.panel.Cropbox",
1211 "isOptional" : false
1218 "type" : "function",
1219 "desc" : "Fire when rotate the image",
1220 "sig" : "function (_self, pos)\n{\n\n}",
1229 "type" : "Roo.panel.Cropbox",
1231 "isOptional" : false
1237 "isOptional" : false
1243 "name" : "footerbuttonclick",
1244 "type" : "function",
1245 "desc" : "Fire when footerbuttonclick",
1246 "sig" : "function (_self, type)\n{\n\n}",
1255 "type" : "Roo.panel.Cropbox",
1257 "isOptional" : false
1263 "isOptional" : false
1270 "type" : "function",
1271 "desc" : "Fire when preparing the file data",
1272 "sig" : "function (_self, file)\n{\n\n}",
1281 "type" : "Roo.panel.Cropbox",
1283 "isOptional" : false
1289 "isOptional" : false
1295 "name" : "exception",
1296 "type" : "function",
1297 "desc" : "Fire when get exception",
1298 "sig" : "function (_self, xhr)\n{\n\n}",
1307 "type" : "Roo.panel.Cropbox",
1309 "isOptional" : false
1313 "type" : "XMLHttpRequest",
1315 "isOptional" : false
1322 "type" : "function",
1323 "desc" : "Fire when arrange the file data",
1324 "sig" : "function (_self, formData)\n{\n\n}",
1333 "type" : "Roo.panel.Cropbox",
1335 "isOptional" : false
1338 "name" : "formData",
1341 "isOptional" : false
1348 "type" : "function",
1349 "desc" : "Fire when xhr upload the file",
1350 "sig" : "function (_self, data)\n{\n\n}",
1359 "type" : "Roo.panel.Cropbox",
1361 "isOptional" : false
1367 "isOptional" : false
1373 "name" : "loadcanvas",
1374 "type" : "function",
1375 "desc" : "Fire after load the canvas",
1376 "sig" : "function (, imgEl)\n{\n\n}",
1385 "type" : "Roo.panel.Cropbox",
1387 "isOptional" : false
1393 "isOptional" : false
1400 "type" : "function",
1401 "desc" : "Fire after initEvent",
1402 "sig" : "function (_self)\n{\n\n}",
1411 "type" : "Roo.panel.Cropbox",
1413 "isOptional" : false
1420 "type" : "function",
1421 "desc" : "Fire when trash image",
1422 "sig" : "function (_self)\n{\n\n}",
1431 "type" : "Roo.panel.Cropbox",
1433 "isOptional" : false
1439 "name" : "download",
1440 "type" : "function",
1441 "desc" : "Fire when download the image",
1442 "sig" : "function (_self)\n{\n\n}",
1451 "type" : "Roo.panel.Cropbox",
1453 "isOptional" : false
1460 "type" : "function",
1461 "desc" : "Fire after initEvent",
1462 "sig" : "function (_self, data)\n{\n\n}",
1471 "type" : "Roo.panel.Cropbox",
1473 "isOptional" : false
1479 "isOptional" : false
1485 "name" : "beforeloadcanvas",
1486 "type" : "function",
1487 "desc" : "Fire before load the canvas",
1488 "sig" : "function (_self, src)\n{\n\n}",
1497 "type" : "Roo.panel.Cropbox",
1499 "isOptional" : false
1505 "isOptional" : false
1512 "type" : "function",
1513 "desc" : "Fire when inspect the file",
1514 "sig" : "function (_self, file)\n{\n\n}",
1523 "type" : "Roo.panel.Cropbox",
1525 "isOptional" : false
1531 "isOptional" : false
1538 "type" : "function",
1539 "desc" : "Fires after the component is moved.",
1540 "sig" : "function (_self, x, y)\n{\n\n}",
1541 "memberOf" : "Roo.BoxComponent",
1549 "type" : "Roo.Component",
1551 "isOptional" : false
1556 "desc" : "The new x position",
1557 "isOptional" : false
1562 "desc" : "The new y position",
1563 "isOptional" : false
1569 "name" : "beforerender",
1570 "type" : "function",
1571 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1572 "sig" : "function (_self)\n{\n\n}",
1573 "memberOf" : "Roo.Component",
1581 "type" : "Roo.Component",
1583 "isOptional" : false
1590 "type" : "function",
1591 "desc" : "Fires after the component is disabled.",
1592 "sig" : "function (_self)\n{\n\n}",
1593 "memberOf" : "Roo.Component",
1601 "type" : "Roo.Component",
1603 "isOptional" : false
1610 "type" : "function",
1611 "desc" : "Fires after the component is rendered.",
1612 "sig" : "function (_self)\n{\n\n}",
1613 "memberOf" : "Roo.Component",
1621 "type" : "Roo.Component",
1623 "isOptional" : false
1630 "type" : "function",
1631 "desc" : "Fires after the component is destroyed.",
1632 "sig" : "function (_self)\n{\n\n}",
1633 "memberOf" : "Roo.Component",
1641 "type" : "Roo.Component",
1643 "isOptional" : false
1650 "type" : "function",
1651 "desc" : "Fires after the component is hidden.",
1652 "sig" : "function (_self)\n{\n\n}",
1653 "memberOf" : "Roo.Component",
1661 "type" : "Roo.Component",
1663 "isOptional" : false
1669 "name" : "beforehide",
1670 "type" : "function",
1671 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1672 "sig" : "function (_self)\n{\n\n}",
1673 "memberOf" : "Roo.Component",
1681 "type" : "Roo.Component",
1683 "isOptional" : false
1690 "type" : "function",
1691 "desc" : "Fires after the component is shown.",
1692 "sig" : "function (_self)\n{\n\n}",
1693 "memberOf" : "Roo.Component",
1701 "type" : "Roo.Component",
1703 "isOptional" : false
1709 "name" : "beforeshow",
1710 "type" : "function",
1711 "desc" : "Fires before the component is shown. Return false to stop the show.",
1712 "sig" : "function (_self)\n{\n\n}",
1713 "memberOf" : "Roo.Component",
1721 "type" : "Roo.Component",
1723 "isOptional" : false
1730 "type" : "function",
1731 "desc" : "Fires after the component is enabled.",
1732 "sig" : "function (_self)\n{\n\n}",
1733 "memberOf" : "Roo.Component",
1741 "type" : "Roo.Component",
1743 "isOptional" : false
1749 "name" : "beforedestroy",
1750 "type" : "function",
1751 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1752 "sig" : "function (_self)\n{\n\n}",
1753 "memberOf" : "Roo.Component",
1761 "type" : "Roo.Component",
1763 "isOptional" : false