rendered paste body <mx:HDividedBox x="0" y="0" width="100%" height="100%">
<mx:HBox width="180" height="100%">
<mx:List id="lstRules" change="lstChanged(event)" labelFunction="getLabel" dataProvider="{ModelLocator.getInstance().securityRules}" width="100%" height="100%"></mx:List>
</mx:HBox>
<mx:TabNavigator historyManagementEnabled="false" width="100%" height="100%">
<mx:VBox label="Security" width="100%" height="100%">
<mx:VBox id="boxSecurity" enabled="false" width="100%" height="100%" paddingLeft="10" paddingRight="10" paddingBottom="5">
<nimer:FieldSet paddingRight="5" paddingBottom="10" label="General" borderStyle="solid" borderThickness="1" cornerRadius="10" width="100%">
<mx:HBox width="100%">
<mx:Label text="Rule name:" width="85" textAlign="right"/>
<mx:TextInput id="txtName" width="100%"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Label text="Rule ID:" width="85" textAlign="right"/>
<mx:TextInput id="txtID" width="35" enabled="false"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Label text="Access:" width="85" textAlign="right"/>
<mx:RadioButton groupName="rdbAccess" id="rdbAccessAllow" label="Allow" />
<mx:RadioButton groupName="rdbAccess" id="rdbAccessDeny" label="Deny" />
</mx:HBox>
<mx:HBox width="100%">
<mx:Label text="Object:" width="85" textAlign="right"/>
<mx:ComboBox labelField="name" id="cboObjectType" dataProvider="{SecurityManager.getInstance().SecurityObjects}" />
<mx:CheckBox id="chkObjectID" label="Object ID:" />
<mx:TextInput text="enter object ID" id="txtObjectID" enabled="{chkObjectID.selected}" />
</mx:HBox>
</nimer:FieldSet>
<mx:Spacer height="100%" />
</mx:VBox>
</mx:VBox>
<mx:VBox label="Roles & Rights" width="100%" height="100%" paddingLeft="10" paddingRight="10" paddingBottom="5">
<nimer:FieldSet width="100%" paddingBottom="5" paddingRight="10" label="Roles:" borderStyle="solid" borderThickness="1" cornerRadius="5">
<mx:HBox width="100%" height="100%" paddingLeft="10">
<mx:Box width="100%" height="100%">
<mx:List allowMultipleSelection="true" dragDrop="handleDragDropRoles(event)" dragEnabled="true" dropEnabled="true" dragMoveEnabled="false" id="lstUnLinkedRoles" height="100%" dataProvider="{arrUnLinkedRoles}" labelFunction="getRoleName" width="100%"/>
</mx:Box>
<mx:VBox verticalAlign="middle" width="40" height="100%" >
<mx:Button click="moveRoleRight()" enabled="{lstUnLinkedRoles.selectedIndex > -1}" label=">"/>
<mx:Button click="moveRoleLeft()" enabled="{lstLinkedRoles.selectedIndex > -1}" label="<"/>
</mx:VBox>
<mx:Box width="100%" height="100%">
<mx:List allowMultipleSelection="true" dragDrop="handleDragDropRoles(event)" dragEnabled="true" dropEnabled="true" dragMoveEnabled="false" id="lstLinkedRoles" height="100%" dataProvider="{arrLinkedRoles}" labelFunction="getRoleName" width="100%"/>
</mx:Box>
</mx:HBox>
</nimer:FieldSet>
<nimer:FieldSet width="100%" paddingBottom="5" paddingRight="10" label="Rights:" borderStyle="solid" borderThickness="1" cornerRadius="5">
<mx:HBox width="100%" height="100%" paddingLeft="10">
<mx:Box width="100%" height="100%">
<mx:List allowMultipleSelection="true" dragDrop="handleDragDropRights(event)" dragEnabled="true" dropEnabled="true" dragMoveEnabled="false" id="lstUnLinkedRights" height="100%" dataProvider="{arrUnLinkedRights}" labelFunction="getRightName" width="100%"/>
</mx:Box>
<mx:VBox verticalAlign="middle" width="40" height="100%" >
<mx:Button click="moveRightRight()" enabled="{lstUnLinkedRights.selectedIndex > -1}" label=">"/>
<mx:Button click="moveRightLeft()" enabled="{lstLinkedRights.selectedIndex > -1}" label="<"/>
</mx:VBox>
<mx:Box width="100%" height="100%">
<mx:List allowMultipleSelection="true" dragDrop="handleDragDropRights(event)" dragEnabled="true" dropEnabled="true" dragMoveEnabled="false" id="lstLinkedRights" height="100%" dataProvider="{arrLinkedRights}" labelFunction="getRightName" width="100%"/>
</mx:Box>
</mx:HBox>
</nimer:FieldSet>
</mx:VBox>
<mx:VBox label="Expressions" enabled="{cboObjectType.selectedIndex == 2}" width="100%" height="100%">
<mx:HBox width="100%" height="100%" paddingLeft="10" paddingRight="10">
<mx:VBox width="180" paddingTop="10">
<mx:List width="100%" height="100%" />
<mx:HBox width="100%" horizontalAlign="right">
<mx:Button label="+" width="30" />
<mx:Button label="-" width="30" />
</mx:HBox>
</mx:VBox>
<nimer:FieldSet width="100%" paddingBottom="5" paddingRight="10" label="Expression:" borderStyle="solid" borderThickness="1" cornerRadius="5">
<mx:Form width="100%" height="100%">
<mx:FormItem label="Expression name:">
<mx:TextInput width="100%" />
</mx:FormItem>
<mx:FormItem label="Expression type:">
<mx:RadioButton groupName="rdbExpressionType" id="rdbExpressionTypeValue" label="Value" />
<mx:RadioButton groupName="rdbExpressionType" id="rdbExpressionTypeComposit" label="Composit" />
</mx:FormItem>
<mx:FormItem label="Attribute:">
<mx:ComboBox />
</mx:FormItem>
<mx:FormItem label="Value:">
<mx:ComboBox />
</mx:FormItem>
<mx:FormItem label="Expression code:">
<mx:TextArea />
</mx:FormItem>
</mx:Form>
</nimer:FieldSet>
</mx:HBox>
</mx:VBox>
</mx:TabNavigator>
</mx:HDividedBox>
<mx:ControlBar>
<mx:Spacer width="{lstRules.width - 80}" />
<mx:Button label="+" width="30" />
<mx:Button label="-" width="30" />
<mx:Spacer width="100%" />
<mx:Button label="Save" click="saveRule()" />
<mx:Button label="Cancel" />
</mx:ControlBar>