/AdobeAIRSDK/frameworks/projects/framework/src/mx/core/IUIComponent.as

https://github.com/kibiz0r/FlashRuby · ActionScript · 558 lines · 54 code · 72 blank · 432 comment · 0 complexity · f10531b9f85417dada05988ff88270f0 MD5 · raw file

  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // ADOBE SYSTEMS INCORPORATED
  4. // Copyright 2005-2007 Adobe Systems Incorporated
  5. // All Rights Reserved.
  6. //
  7. // NOTICE: Adobe permits you to use, modify, and distribute this file
  8. // in accordance with the terms of the license agreement accompanying it.
  9. //
  10. ////////////////////////////////////////////////////////////////////////////////
  11. package mx.core
  12. {
  13. import flash.display.DisplayObject;
  14. import flash.display.DisplayObjectContainer;
  15. import flash.display.Sprite;
  16. import flash.geom.Rectangle;
  17. import mx.managers.ISystemManager;
  18. /**
  19. * The IUIComponent interface defines the basic set of APIs
  20. * that you must implement to create a child of a Flex container or list.
  21. *
  22. * @langversion 3.0
  23. * @playerversion Flash 9
  24. * @playerversion AIR 1.1
  25. * @productversion Flex 3
  26. */
  27. public interface IUIComponent extends IFlexDisplayObject
  28. {
  29. //--------------------------------------------------------------------------
  30. //
  31. // Properties
  32. //
  33. //--------------------------------------------------------------------------
  34. //----------------------------------
  35. // baselinePosition
  36. //----------------------------------
  37. /**
  38. * The y-coordinate of the baseline
  39. * of the first line of text of the component.
  40. *
  41. * <p>This property is used to implement
  42. * the <code>baseline</code> constraint style.
  43. * It is also used to align the label of a FormItem
  44. * with the controls in the FormItem.</p>
  45. *
  46. * @langversion 3.0
  47. * @playerversion Flash 9
  48. * @playerversion AIR 1.1
  49. * @productversion Flex 3
  50. */
  51. function get baselinePosition():Number;
  52. //----------------------------------
  53. // document
  54. //----------------------------------
  55. /**
  56. * A reference to the document object associated with this component.
  57. * A document object is an Object at the top of the hierarchy
  58. * of a Flex application, MXML component, or ActionScript component.
  59. *
  60. * @langversion 3.0
  61. * @playerversion Flash 9
  62. * @playerversion AIR 1.1
  63. * @productversion Flex 3
  64. */
  65. function get document():Object
  66. /**
  67. * @private
  68. */
  69. function set document(value:Object):void
  70. //----------------------------------
  71. // enabled
  72. //----------------------------------
  73. /**
  74. * Whether the component can accept user interaction. After setting the <code>enabled</code>
  75. * property to <code>false</code>, some components still respond to mouse interactions such
  76. * as mouseOver. As a result, to fully disable UIComponents,
  77. * you should also set the value of the <code>mouseEnabled</code> property to <code>false</code>.
  78. * If you set the <code>enabled</code> property to <code>false</code>
  79. * for a container, Flex dims the color of the container and of all
  80. * of its children, and blocks user input to the container
  81. * and to all of its children.
  82. *
  83. * @langversion 3.0
  84. * @playerversion Flash 9
  85. * @playerversion AIR 1.1
  86. * @productversion Flex 3
  87. */
  88. function get enabled():Boolean;
  89. /**
  90. * @private
  91. */
  92. function set enabled(value:Boolean):void;
  93. //----------------------------------
  94. // explicitHeight
  95. //----------------------------------
  96. /**
  97. * The explicitly specified height for the component,
  98. * in pixels, as the component's coordinates.
  99. * If no height is explicitly specified, the value is <code>NaN</code>.
  100. *
  101. * @see mx.core.UIComponent#explicitHeight
  102. *
  103. * @langversion 3.0
  104. * @playerversion Flash 9
  105. * @playerversion AIR 1.1
  106. * @productversion Flex 3
  107. */
  108. function get explicitHeight():Number;
  109. /**
  110. * @private
  111. */
  112. function set explicitHeight(value:Number):void;
  113. //----------------------------------
  114. // explicitMaxHeight
  115. //----------------------------------
  116. /**
  117. * Number that specifies the maximum height of the component,
  118. * in pixels, as the component's coordinates.
  119. *
  120. * @see mx.core.UIComponent#explicitMaxHeight
  121. *
  122. * @langversion 3.0
  123. * @playerversion Flash 9
  124. * @playerversion AIR 1.1
  125. * @productversion Flex 3
  126. */
  127. function get explicitMaxHeight():Number;
  128. //----------------------------------
  129. // explicitMaxWidth
  130. //----------------------------------
  131. /**
  132. * Number that specifies the maximum width of the component,
  133. * in pixels, as the component's coordinates.
  134. *
  135. * @see mx.core.UIComponent#explicitMaxWidth
  136. *
  137. * @langversion 3.0
  138. * @playerversion Flash 9
  139. * @playerversion AIR 1.1
  140. * @productversion Flex 3
  141. */
  142. function get explicitMaxWidth():Number;
  143. //----------------------------------
  144. // explicitMinHeight
  145. //----------------------------------
  146. /**
  147. * Number that specifies the minimum height of the component,
  148. * in pixels, as the component's coordinates.
  149. *
  150. * @see mx.core.UIComponent#explicitMinHeight
  151. *
  152. * @langversion 3.0
  153. * @playerversion Flash 9
  154. * @playerversion AIR 1.1
  155. * @productversion Flex 3
  156. */
  157. function get explicitMinHeight():Number;
  158. //----------------------------------
  159. // explicitMinWidth
  160. //----------------------------------
  161. /**
  162. * Number that specifies the minimum width of the component,
  163. * in pixels, as the component's coordinates.
  164. *
  165. * @see mx.core.UIComponent#explicitMinWidth
  166. *
  167. * @langversion 3.0
  168. * @playerversion Flash 9
  169. * @playerversion AIR 1.1
  170. * @productversion Flex 3
  171. */
  172. function get explicitMinWidth():Number;
  173. //----------------------------------
  174. // explicitWidth
  175. //----------------------------------
  176. /**
  177. * The explicitly specified width for the component,
  178. * in pixels, as the component's coordinates.
  179. * If no width is explicitly specified, the value is <code>NaN</code>.
  180. *
  181. * @see mx.core.UIComponent#explicitWidth
  182. *
  183. * @langversion 3.0
  184. * @playerversion Flash 9
  185. * @playerversion AIR 1.1
  186. * @productversion Flex 3
  187. */
  188. function get explicitWidth():Number;
  189. /**
  190. * @private
  191. */
  192. function set explicitWidth(value:Number):void;
  193. //----------------------------------
  194. // focusPane
  195. //----------------------------------
  196. /**
  197. * A single Sprite object that is shared among components
  198. * and used as an overlay for drawing the focus indicator.
  199. * Components share this object if their parent is a focused component,
  200. * not if the component implements the IFocusManagerComponent interface.
  201. *
  202. * @see mx.core.UIComponent#focusPane
  203. *
  204. * @langversion 3.0
  205. * @playerversion Flash 9
  206. * @playerversion AIR 1.1
  207. * @productversion Flex 3
  208. */
  209. function get focusPane():Sprite;
  210. /**
  211. * @private
  212. */
  213. function set focusPane(value:Sprite):void;
  214. //----------------------------------
  215. // includeInLayout
  216. //----------------------------------
  217. /**
  218. * @copy mx.core.UIComponent#includeInLayout
  219. *
  220. * @langversion 3.0
  221. * @playerversion Flash 9
  222. * @playerversion AIR 1.1
  223. * @productversion Flex 3
  224. */
  225. function get includeInLayout():Boolean;
  226. /**
  227. * @private
  228. */
  229. function set includeInLayout(value:Boolean):void;
  230. //----------------------------------
  231. // isPopUp
  232. //----------------------------------
  233. /**
  234. * @copy mx.core.UIComponent#isPopUp
  235. *
  236. * @langversion 3.0
  237. * @playerversion Flash 9
  238. * @playerversion AIR 1.1
  239. * @productversion Flex 3
  240. */
  241. function get isPopUp():Boolean;
  242. /**
  243. * @private
  244. */
  245. function set isPopUp(value:Boolean):void;
  246. //----------------------------------
  247. // maxHeight
  248. //----------------------------------
  249. /**
  250. * Number that specifies the maximum height of the component,
  251. * in pixels, as the component's coordinates.
  252. *
  253. * @see mx.core.UIComponent#maxHeight
  254. *
  255. * @langversion 3.0
  256. * @playerversion Flash 9
  257. * @playerversion AIR 1.1
  258. * @productversion Flex 3
  259. */
  260. function get maxHeight():Number;
  261. //----------------------------------
  262. // maxWidth
  263. //----------------------------------
  264. /**
  265. * Number that specifies the maximum width of the component,
  266. * in pixels, as the component's coordinates.
  267. *
  268. * @see mx.core.UIComponent#maxWidth
  269. *
  270. * @langversion 3.0
  271. * @playerversion Flash 9
  272. * @playerversion AIR 1.1
  273. * @productversion Flex 3
  274. */
  275. function get maxWidth():Number;
  276. //----------------------------------
  277. // measuredMinHeight
  278. //----------------------------------
  279. /**
  280. * @copy mx.core.UIComponent#measuredMinHeight
  281. *
  282. * @langversion 3.0
  283. * @playerversion Flash 9
  284. * @playerversion AIR 1.1
  285. * @productversion Flex 3
  286. */
  287. function get measuredMinHeight():Number;
  288. /**
  289. * @private
  290. */
  291. function set measuredMinHeight(value:Number):void;
  292. //----------------------------------
  293. // measuredMinWidth
  294. //----------------------------------
  295. /**
  296. * @copy mx.core.UIComponent#measuredMinWidth
  297. *
  298. * @langversion 3.0
  299. * @playerversion Flash 9
  300. * @playerversion AIR 1.1
  301. * @productversion Flex 3
  302. */
  303. function get measuredMinWidth():Number;
  304. /**
  305. * @private
  306. */
  307. function set measuredMinWidth(value:Number):void;
  308. //----------------------------------
  309. // minHeight
  310. //----------------------------------
  311. /**
  312. * Number that specifies the minimum height of the component,
  313. * in pixels, as the component's coordinates.
  314. *
  315. * @see mx.core.UIComponent#minHeight
  316. *
  317. * @langversion 3.0
  318. * @playerversion Flash 9
  319. * @playerversion AIR 1.1
  320. * @productversion Flex 3
  321. */
  322. function get minHeight():Number;
  323. //----------------------------------
  324. // minWidth
  325. //----------------------------------
  326. /**
  327. * Number that specifies the minimum width of the component,
  328. * in pixels, as the component's coordinates.
  329. *
  330. * @see mx.core.UIComponent#minWidth
  331. *
  332. * @langversion 3.0
  333. * @playerversion Flash 9
  334. * @playerversion AIR 1.1
  335. * @productversion Flex 3
  336. */
  337. function get minWidth():Number;
  338. //----------------------------------
  339. // owner
  340. //----------------------------------
  341. /**
  342. * @copy mx.core.IVisualElement#owner
  343. *
  344. * @langversion 3.0
  345. * @playerversion Flash 9
  346. * @playerversion AIR 1.1
  347. * @productversion Flex 3
  348. */
  349. function get owner():DisplayObjectContainer;
  350. /**
  351. * @private
  352. */
  353. function set owner(value:DisplayObjectContainer):void;
  354. //----------------------------------
  355. // percentHeight
  356. //----------------------------------
  357. /**
  358. * Number that specifies the height of a component as a
  359. * percentage of its parent's size.
  360. * Allowed values are 0 to 100.
  361. *
  362. * @langversion 3.0
  363. * @playerversion Flash 9
  364. * @playerversion AIR 1.1
  365. * @productversion Flex 3
  366. */
  367. function get percentHeight():Number;
  368. /**
  369. * @private
  370. */
  371. function set percentHeight(value:Number):void;
  372. //----------------------------------
  373. // percentWidth
  374. //----------------------------------
  375. /**
  376. * Number that specifies the width of a component as a
  377. * percentage of its parent's size.
  378. * Allowed values are 0 to 100.
  379. *
  380. * @langversion 3.0
  381. * @playerversion Flash 9
  382. * @playerversion AIR 1.1
  383. * @productversion Flex 3
  384. */
  385. function get percentWidth():Number;
  386. /**
  387. * @private
  388. */
  389. function set percentWidth(value:Number):void;
  390. //----------------------------------
  391. // systemManager
  392. //----------------------------------
  393. /**
  394. * A reference to the SystemManager object for this component.
  395. *
  396. * @langversion 3.0
  397. * @playerversion Flash 9
  398. * @playerversion AIR 1.1
  399. * @productversion Flex 3
  400. */
  401. function get systemManager():ISystemManager;
  402. /**
  403. * @private
  404. */
  405. function set systemManager(value:ISystemManager):void;
  406. //----------------------------------
  407. // tweeningProperties
  408. //----------------------------------
  409. /**
  410. * Used by EffectManager.
  411. * Returns non-null if a component
  412. * is not using the EffectManager to execute a Tween.
  413. *
  414. * @langversion 3.0
  415. * @playerversion Flash 9
  416. * @playerversion AIR 1.1
  417. * @productversion Flex 3
  418. */
  419. function get tweeningProperties():Array;
  420. /**
  421. * @private
  422. */
  423. function set tweeningProperties(value:Array):void;
  424. //--------------------------------------------------------------------------
  425. //
  426. // Methods
  427. //
  428. //--------------------------------------------------------------------------
  429. /**
  430. * Initialize the object.
  431. *
  432. * @see mx.core.UIComponent#initialize()
  433. *
  434. * @langversion 3.0
  435. * @playerversion Flash 9
  436. * @playerversion AIR 1.1
  437. * @productversion Flex 3
  438. */
  439. function initialize():void;
  440. /**
  441. * @copy mx.core.UIComponent#parentChanged()
  442. *
  443. * @langversion 3.0
  444. * @playerversion Flash 9
  445. * @playerversion AIR 1.1
  446. * @productversion Flex 3
  447. */
  448. function parentChanged(p:DisplayObjectContainer):void;
  449. /**
  450. * @copy mx.core.UIComponent#getExplicitOrMeasuredWidth()
  451. *
  452. * @langversion 3.0
  453. * @playerversion Flash 9
  454. * @playerversion AIR 1.1
  455. * @productversion Flex 3
  456. */
  457. function getExplicitOrMeasuredWidth():Number;
  458. /**
  459. * @copy mx.core.UIComponent#getExplicitOrMeasuredHeight()
  460. *
  461. * @langversion 3.0
  462. * @playerversion Flash 9
  463. * @playerversion AIR 1.1
  464. * @productversion Flex 3
  465. */
  466. function getExplicitOrMeasuredHeight():Number;
  467. /**
  468. * @copy mx.core.UIComponent#setVisible()
  469. *
  470. * @langversion 3.0
  471. * @playerversion Flash 9
  472. * @playerversion AIR 1.1
  473. * @productversion Flex 3
  474. */
  475. function setVisible(value:Boolean, noEvent:Boolean = false):void;
  476. /**
  477. * @copy mx.core.UIComponent#owns()
  478. *
  479. * @langversion 3.0
  480. * @playerversion Flash 9
  481. * @playerversion AIR 1.1
  482. * @productversion Flex 3
  483. */
  484. function owns(displayObject:DisplayObject):Boolean;
  485. }
  486. }