(Beta)
Package | com.adobe.mosaic.om.interfaces |
Interface | public interface IPanel extends IMosaicNode , IDisplayable |
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
Runtime Versions: | AIR 2.0.2, Flash Player 10.1 |
IPanel
interface defines the methods for adding tiles to a panel. It also
retrieves a list of tiles and the view in which the panel resides.
Public Properties
Property | Defined By |
---|
Property Detail
Method Detail
Examples How to use this example
IPanel_example.mxml
<?xml version="1.0" encoding="utf-8"?> <mc:Tile xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:mc="com.adobe.mosaic.core.*" layout="absolute" height="23" width="100%"> <s:Button label="Add tile to panel" click="addTileToPanel()"/> <fx:Script> <![CDATA[ import com.adobe.mosaic.om.interfaces.ICatalog; import com.adobe.mosaic.om.interfaces.ITile; import com.adobe.mosaic.om.interfaces.IPanel; import com.adobe.mosaic.om.interfaces.IView; // Loads a tile from a catalog, then adds that tile to every displayed panel in the application private function addTileToPanel():void { var catalog:ICatalog = mosaicApp.getCatalog("dashboard_catalog"); var tile:ITile = catalog.getTile("OpenCases"); for each (var view:IView in mosaicApp.views) { if (view.displayed) { for each (var panel:IPanel in view.panels) { if (panel.displayed) { panel.addTile(tile); } } } } } ]]> </fx:Script> </mc:Tile>
Wed Nov 21 2018, 06:34 AM -08:00