IOrgChartNode.as
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package control
{
import flash.display.DisplayObject;
import mx.collections.ArrayCollection;
import mx.core.IDataRenderer;
import mx.core.IUIComponent;
import mx.styles.IStyleClient;
public interface IOrgChartNode extends IDataRenderer, IUIComponent, IStyleClient{
/**
* 指定是横向还是竖向的矩形
* h 为横向
* v 为竖向
* --- Should be better in future.
* */
function get oriented():String;
function set oriented(oriented:String):void;
function set parentNode(node:IOrgChartNode):void;
function get parentNode():IOrgChartNode;
function get subNodes():ArrayCollection;
function addChildNode(node:IOrgChartNode):void;
function removeChildNode(node:IOrgChartNode):void;
function removeChildNodeAt(index:int):void;
function get previousSibling():IOrgChartNode;
function get nextSibling():IOrgChartNode;
function get firstChild():IOrgChartNode;
function get lastChild():IOrgChartNode;
function get expanded():Boolean;
function addLine(line:DisplayObject):void;
function get hasChildren():Boolean;
function get otherChildren():String;
function set otherChildren(otherChildren:String):void;
/**
* start from 0, it means the depth of root node is zero.
* 节点所在层级,从 0 开始,也就是说最上层节点值为 0。
**/
function get depth():int;
function expand():void;
function collapse():void;
function set hasShow(flag:Boolean):void;
function get hasShow():Boolean;
function getChildLine(id:String):Array;
function getChildLabel(id:String):String;
function getChildIsShow(id:String):String;
}
}