Tag Archives: Tree

Flex: CheckBox Tree

效果与功能:

image

1. 简单配置数据源即可实现多层显示
2. 可设定初始选定的项目或目录
3. 获得选定的项目

Posted in ActionScript, Flex | Tagged , , , | 3 Comments

Flex Tree ToolTip 设定

为节点或叶子设定其特有之ToolTip:

// Constructor
public function TreeForCodeMaintain(codeMaintainService_:ICodeMaintainService) {
super();
_codeMaintainServi

Posted in ActionScript, Flex | Tagged , , , , | 2 Comments

Flex: Tree如何展开/关闭一个节点, 并选中其孩子? 如何关闭所有的节点?

_treeOUs.expandChildrenOf(currentOU, true); // 展开目录

_treeOUs.selectedItem = ou; //选定孩子

_treeOUs.openItems = []; // 关闭所有节点;

expandChildrenOf(item:Ob

Posted in ActionScript | Tagged , | Leave a comment

Flex Tree样式: 如何修改Tree的Icon

image

可以通过设定Tree的样式来更改Tree的icon. 如下
_treeLAAndSub = new Tree();
_treeLAAndSub.iconField = "hahah@#$@#$";
_treeLAAndSub.setStyle("fold

Posted in Flex | Tagged , , , | Leave a comment

AIR中通过右键直接选定基于LIST容器[DataGrid, List, Tree等]的数据 – Select List item with mouse right-click

在很多情况下, 我们在DataGrid, List, Tree等容器中使用右键, 进行如修改, 删除 某行的操作. 问题是如果该容器初始状态下直接进行右键点击时, 并不能选定任何数据. 通过监听右键菜单SELECT事件, 获取到当前右键所击位置的Index, 并将之赋值给DataGrid或其他容器的SelectIndex, 完成点击操作

Posted in AIR | Tagged , , , , , | 2 Comments
  • Page 1 of 2
  • 1
  • 2
  • >