Páginas filhas
  • Filtro Simples

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

  • Ao escolher uma das entidades no combo-box, o campo ao lado poderá ser alterado conforme a necessidade (ex: foi escolhido uma data, para isso pode ser substituído por um datafield).

Exemplo

  • HTML
    <A href="http://sdk.datasul.com.br/confluence/download/attachments/5210323/TabFolder_Meiu2.swf?version=1" target="_blank">Tab Folder</A>
    Tab Folder

Código fonte


Bloco de código
<?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>

...