| Package | com.theriabook.util.logging |
| Class | public class LoggerTreeDataElement |
| Inheritance | LoggerTreeDataElement flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| category : String
Category (for real loggers).
| LoggerTreeDataElement | ||
| children : ArrayCollection
Child nodes/loggers collection.
| LoggerTreeDataElement | ||
| helperMap : Dictionary [read-only]
Children map (by label field).
| LoggerTreeDataElement | ||
| isRealLogger : Boolean [read-only]
Is it real logger or just logical node.
| LoggerTreeDataElement | ||
| isRoot : Boolean [read-only]
Is it root node.
| LoggerTreeDataElement | ||
| label : String
Label for node.
| LoggerTreeDataElement | ||
| level : int
Logger level (for nodes is a default level for new children).
| LoggerTreeDataElement | ||
| parentData : LoggerTreeDataElement
[read-only]
Parent node.
| LoggerTreeDataElement | ||
| root : LoggerTreeDataElement
[read-only]
Root package for tree.
| LoggerTreeDataElement | ||
| Method | Defined by | ||
|---|---|---|---|
| LoggerTreeDataElement | |||
|
appendCategory(categoryString:String):void
Appends new category (with level of parent node).
| LoggerTreeDataElement | ||
|
assignLevel(level:int, deepAssign:Boolean = true):void
Assigns the level to this node.
| LoggerTreeDataElement | ||
|
getCountByLevel(level:int):int
Returns count of children with level specified.
| LoggerTreeDataElement | ||
|
getLevelByCategory(category:String):int
Gets level for category passed.
| LoggerTreeDataElement | ||
|
getPlainCategoryList():ArrayCollection
Returns categories of packages tree as plain categories list.
| LoggerTreeDataElement | ||
|
makeLevelSnapshot(deepSnapshot:Boolean = true):void
Makes levels copy (for undo possibilities).
| LoggerTreeDataElement | ||
|
rollbackLevels(deepRollback:Boolean = true):void
Rollback levels from snapshot.
| LoggerTreeDataElement | ||
|
toString():String
| LoggerTreeDataElement | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when changes in children. | LoggerTreeDataElement | |||
Dispatched when one child's level change. | LoggerTreeDataElement | |||
Dispatched when level change. | LoggerTreeDataElement | |||
| Constant | Defined by | ||
|---|---|---|---|
| CHILDREN_CHANGE : String = "childrenChange" [static]
Dispatched when changes in children.
| LoggerTreeDataElement | ||
| CHILDREN_LEVEL_CHANGE : String = "childrenLevelChange" [static]
Dispatched when one child's
level change. | LoggerTreeDataElement | ||
| DEFAULT_LEVEL : int = -1 [static]
Constant for representing default log level.
| LoggerTreeDataElement | ||
| LEVEL_CHANGE : String = "levelChange" [static]
Dispatched when
level change. | LoggerTreeDataElement | ||
| category | property |
public var category:StringCategory (for real loggers).
| children | property |
children:ArrayCollection [read-write]Child nodes/loggers collection.
This property can be used as the source for data binding.
Implementation public function get children():ArrayCollection
public function set children(value:ArrayCollection):void
| helperMap | property |
helperMap:Dictionary [read-only]Children map (by label field).
This property can be used as the source for data binding.
Implementation public function get helperMap():Dictionary
| isRealLogger | property |
isRealLogger:Boolean [read-only]Is it real logger or just logical node.
This property can be used as the source for data binding.
Implementation public function get isRealLogger():Boolean
| isRoot | property |
isRoot:Boolean [read-only]Is it root node.
This property can be used as the source for data binding.
Implementation public function get isRoot():Boolean
| label | property |
public var label:StringLabel for node.
| level | property |
level:int [read-write]Logger level (for nodes is a default level for new children). For real loggers is logging level.
This property can be used as the source for data binding.
Implementation public function get level():int
public function set level(value:int):void
| parentData | property |
parentData:LoggerTreeDataElement [read-only]Parent node.
This property can be used as the source for data binding.
Implementation public function get parentData():LoggerTreeDataElement
| root | property |
root:LoggerTreeDataElement [read-only]Root package for tree.
This property can be used as the source for data binding.
Implementation public function get root():LoggerTreeDataElement
| LoggerTreeDataElement | () | constructor |
public function LoggerTreeDataElement()
| appendCategory | () | method |
public function appendCategory(categoryString:String):voidAppends new category (with level of parent node).
ParameterscategoryString:String — Is category as dot-separated string.
|
| assignLevel | () | method |
public function assignLevel(level:int, deepAssign:Boolean = true):voidAssigns the level to this node.
Parameterslevel:int — Level to assign.
|
|
deepAssign:Boolean (default = true) — Assign recursively to children flag.
|
| getCountByLevel | () | method |
public function getCountByLevel(level:int):intReturns count of children with level specified.
Parameterslevel:int — Passed level.
|
int — Number of children with level level.
|
| getLevelByCategory | () | method |
public function getLevelByCategory(category:String):intGets level for category passed. Returns DEFAULT_LEVEL if no such category.
Parameterscategory:String — Target category.
|
int — Category level.
|
See also
| getPlainCategoryList | () | method |
public function getPlainCategoryList():ArrayCollectionReturns categories of packages tree as plain categories list.
ReturnsArrayCollection — Plain categories list.
|
| makeLevelSnapshot | () | method |
public function makeLevelSnapshot(deepSnapshot:Boolean = true):voidMakes levels copy (for undo possibilities).
ParametersdeepSnapshot:Boolean (default = true) — Make snapshot recursively flag.
|
See also
| rollbackLevels | () | method |
public function rollbackLevels(deepRollback:Boolean = true):voidRollback levels from snapshot.
ParametersdeepRollback:Boolean (default = true) — Make rollback recursively flag.
|
See also
| toString | () | method |
public override function toString():StringReturns
String |
| childrenChange | event |
| childrenLevelChange | event |
| levelChange | event |
| CHILDREN_CHANGE | constant |
public static const CHILDREN_CHANGE:String = "childrenChange"Dispatched when changes in children.
| CHILDREN_LEVEL_CHANGE | constant |
public static const CHILDREN_LEVEL_CHANGE:String = "childrenLevelChange"
Dispatched when one child's level change.
| DEFAULT_LEVEL | constant |
public static const DEFAULT_LEVEL:int = -1Constant for representing default log level.
| LEVEL_CHANGE | constant |
public static const LEVEL_CHANGE:String = "levelChange"
Dispatched when level change.