Área da tab Folder (cor de fundo e espaçamentos)
As tabs montam a trilha de interfaces abertas pelo usuário
A primeira tab é a do papel.
A primeira Tab não é fechável e traz os portlets iniciais ...
Lembre-se de dar retorno ao usuário ao entrar em processamento ou carga...
Preferencialemente "trave" apenas a tab em processamento...
Limite de tamanho de títulos...
Lembre-se que será maximizado...
Lembre-se de testar em 800x600...
Cabeçalhos são opcionais...
<?xml version="1.0" encoding="utf-8"?> <view:ViewPresentationModel width="100%" height="100%" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:view="com.datasul.framework.ui.templates.view.*" creationCompleteEffect="Fade" resizeEffect="Resize" moveEffect="Move" initController="com.datasul.meiu.tabfolder.ExemploTabFolderController" initModel="com.datasul.meiu.tabfolder.ExemploTabFolderModel" initialize="_controller.init()" layout="absolute" title="Teste" icon="@Embed('/assets/icons/hot/user_16.png')" headerIcon="@Embed('/assets/icons/hot/user_32.png')"> <view:headerContent> <mx:ApplicationControlBar width="100%" height="60"> <mx:HBox width="100%" height="100%" horizontalAlign="center" verticalAlign="middle" horizontalGap="20"> <mx:HBox height="35" styleName="boxAgrupador" horizontalAlign="center" verticalAlign="middle"> <mx:LinkButton label="Salvar" icon="@Embed(source='/assets/icons/hot/close_a_16.png')" toolTip="Salva as configurações do Desktop"/> <mx:LinkButton label="Carregar" icon="@Embed(source='/assets/icons/hot/close_a_16.png')" toolTip="Carrega as opções do Desktop"/> <mx:LinkButton label="Restaurar" icon="@Embed(source='/assets/icons/hot/close_a_16.png')" toolTip="Restaura as configurações do Desktop"/> <mx:LinkButton label="Organizar" icon="@Embed(source='/assets/icons/hot/close_a_16.png')" toolTip="Organiza os itens do Desktop"/> </mx:HBox> <mx:Spacer width="100%"/> <mx:HBox height="35" styleName="boxAgrupador" horizontalAlign="center" verticalAlign="middle"> <mx:LinkButton label="Visualizar" icon="@Embed(source='/assets/icons/arrows/down.png')" toolTip="Define o zoom no Desktop"/> </mx:HBox> <mx:HBox height="35" styleName="boxAgrupador" horizontalAlign="center" verticalAlign="middle" horizontalGap="0"> <mx:LinkButton label="-" textDecoration="none" toolTip="Diminuir zoom"/> <mx:HSlider width="70" tickInterval="2" toolTip="Zoom"/> <mx:LinkButton label="+" textDecoration="none" toolTip="Aumentar zoom"/> </mx:HBox> </mx:HBox> </mx:ApplicationControlBar> </view:headerContent> <mx:Binding source="model" destination="_model" /> <mx:Binding source="controller" destination="_controller" /> <mx:Script> <![CDATA[ [Bindable] private var _model:ExemploTabFolderModel; [Bindable] private var _controller:ExemploTabFolderController; [Bindable] public var PopUpMenuButtonDataProvider:Array = [ {label: "Item A"}, {label: "Item B"}, {label: "Item C"} ]; ]]> </mx:Script> <mx:VBox width="100%" height="100%" styleName="boxAgrupador" verticalGap="0"> <mx:Canvas width="100%" height="100%"> <mx:DataGrid width="100%" height="100%" dataProvider="{PopUpMenuButtonDataProvider}"/> </mx:Canvas> <mx:ControlBar width="100%" height="40"> <mx:Button label="focal" styleName="focalButton"/> <mx:Button label="normal"/> <mx:PopUpMenuButton showRoot="true" dataProvider="{PopUpMenuButtonDataProvider}"/> </mx:ControlBar> </mx:VBox> </view:ViewPresentationModel>