Package | feathers.controls.renderers |
Interface | public interface ITreeItemRenderer extends IToggle, IFeathersControl, IValidating, IMeasureDisplayObject |
Implementors | DefaultTreeItemRenderer, LayoutGroupTreeItemRenderer |
Product Version : | Feathers 3.3.0 |
Property | Defined By | ||
---|---|---|---|
alpha : Number
The opacity of the display object. | IFeathersDisplayObject | ||
base : DisplayObject [read-only]
The top-most object of the display tree that the display object is
connected to. | IFeathersDisplayObject | ||
blendMode : String
The blend mode used when rendering the display object. | IFeathersDisplayObject | ||
bounds : Rectangle [read-only]
The bounds of the display object in its local coordinate space. | IFeathersDisplayObject | ||
data : Object
An item from the tree's data provider. | ITreeItemRenderer | ||
depth : int [read-only]
The component's depth in the display list, relative to the stage. | IValidating | ||
effectsSuspended : Boolean [read-only]
Indicates if effects have been suspended. | IFeathersControl | ||
explicitHeight : Number [read-only]
The height value explicitly set by passing a value to the
height setter or by calling the setSize()
function. | IMeasureDisplayObject | ||
explicitMaxHeight : Number [read-only]
The maximum height value explicitly set by passing a value to the
maxHeight setter. | IMeasureDisplayObject | ||
explicitMaxWidth : Number [read-only]
The maximum width value explicitly set by passing a value to the
maxWidth setter. | IMeasureDisplayObject | ||
explicitMinHeight : Number [read-only]
The minimum height value explicitly set by passing a value to the
minHeight setter. | IMeasureDisplayObject | ||
explicitMinWidth : Number [read-only]
The minimum width value explicitly set by passing a value to the
minWidth setter. | IMeasureDisplayObject | ||
explicitWidth : Number [read-only]
The width value explicitly set by passing a value to the
width setter or to the setSize() method. | IMeasureDisplayObject | ||
factoryID : String
The ID of the factory used to create this item renderer. | ITreeItemRenderer | ||
filter : FragmentFilter
The filter used when rendering the display object. | IFeathersDisplayObject | ||
height : Number
The height of the display object in the parent's coordinate space. | IFeathersDisplayObject | ||
isBranch : Boolean
Indicates if the data is a branch or a leaf. | ITreeItemRenderer | ||
isCreated : Boolean [read-only]
Determines if the component has been initialized and validated for
the first time. | IFeathersControl | ||
isEnabled : Boolean
Indicates whether the control is interactive or not. | IFeathersControl | ||
isInitialized : Boolean [read-only]
Determines if the component has been initialized yet. | IFeathersControl | ||
isOpen : Boolean
Indicates if a branch is open or closed. | ITreeItemRenderer | ||
isSelected : Boolean
Indicates if the IToggle is selected or not. | IToggle | ||
layoutIndex : int
The index of the item within the layout. | ITreeItemRenderer | ||
location : Vector.<int>
The location (a vector of numeric indices, starting from zero) of
the item within the tree's data provider. | ITreeItemRenderer | ||
mask : DisplayObject
The display object's mask. | IFeathersDisplayObject | ||
maxHeight : Number
The maximum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. | IMeasureDisplayObject | ||
maxWidth : Number
The maximum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. | IMeasureDisplayObject | ||
minHeight : Number
The minimum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. | IMeasureDisplayObject | ||
minWidth : Number
The minimum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. | IMeasureDisplayObject | ||
name : String
The name of the display object. | IFeathersDisplayObject | ||
owner : Tree
The tree that contains this item renderer. | ITreeItemRenderer | ||
parent : DisplayObjectContainer [read-only]
The display object's parent, or null if it doesn't have
a parent. | IFeathersDisplayObject | ||
pivotX : Number
The x coordinate of the display object's origin in its own coordinate
space. | IFeathersDisplayObject | ||
pivotY : Number
The y coordinate of the display object's origin in its own coordinate
space. | IFeathersDisplayObject | ||
root : DisplayObject [read-only]
| IFeathersDisplayObject | ||
rotation : Number
The rotation of the display object, in radians. | IFeathersDisplayObject | ||
scaleX : Number
This horizontal scale factor. | IFeathersDisplayObject | ||
scaleY : Number
The vertical scale factor. | IFeathersDisplayObject | ||
skewX : Number
The horizontal skew, in radians. | IFeathersDisplayObject | ||
skewY : Number
The vertical skew, in radians. | IFeathersDisplayObject | ||
stage : Stage [read-only]
The stage that the display object is connected to, or null
if it is not connected to a stage. | IFeathersDisplayObject | ||
styleName : String
The concatenated styleNameList, with values separated
by spaces. | IFeathersControl | ||
styleNameList : TokenList [read-only]
Contains a list of all "styles" assigned to this control. | IFeathersControl | ||
styleProvider : IStyleProvider
When a component initializes, a style provider may be used to set
properties that affect the component's visual appearance. | IFeathersControl | ||
toolTip : String
Text to display in a tool tip to when hovering over this component,
if the ToolTipManager is enabled. | IFeathersControl | ||
touchable : Boolean
Determines if the display object may be touched. | IFeathersDisplayObject | ||
transformationMatrix : Matrix [read-only]
The transformation matrix of the display object, relative to its
parent. | IFeathersDisplayObject | ||
useHandCursor : Boolean
Determines if the mouse cursor should turn into a hand when the mouse
is over the display object. | IFeathersDisplayObject | ||
visible : Boolean
Determines the visibility of the display object. | IFeathersDisplayObject | ||
width : Number
The width of the display object in the parent's coordinate space. | IFeathersDisplayObject | ||
x : Number
The x, or horizontal, position of the display object in the parent's
coordinate space. | IFeathersDisplayObject | ||
y : Number
The y, or vertical, position of the display object in the parent's
coordinate space. | IFeathersDisplayObject |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the the user taps or clicks the item renderer. | ITreeItemRenderer |
data | property |
data:Object
An item from the tree's data provider. The data may change if this item renderer is reused for a new item because it's no longer needed for the original item.
This property is set by the tree, and it should not be set manually.
public function get data():Object
public function set data(value:Object):void
factoryID | property |
factoryID:String
The ID of the factory used to create this item renderer.
This property is set by the tree, and it should not be set manually.
public function get factoryID():String
public function set factoryID(value:String):void
isBranch | property |
isBranch:Boolean
Indicates if the data is a branch or a leaf.
This property is set by the tree, and it should not be set manually.
public function get isBranch():Boolean
public function set isBranch(value:Boolean):void
See also
isOpen | property |
isOpen:Boolean
Indicates if a branch is open or closed. An item that is not a
branch will always return false
.
This property is set by the tree, and it should not be set manually.
public function get isOpen():Boolean
public function set isOpen(value:Boolean):void
See also
layoutIndex | property |
layoutIndex:int
The index of the item within the layout.
This property is set by the tree, and should not be set manually.
public function get layoutIndex():int
public function set layoutIndex(value:int):void
location | property |
location:Vector.<int>
The location (a vector of numeric indices, starting from zero) of
the item within the tree's data provider. Like the data
property, this value may change if this item renderer is reused by
the tree for a different item.
This property is set by the tree, and it should not be set manually.
public function get location():Vector.<int>
public function set location(value:Vector.<int>):void
owner | property |
owner:Tree
The tree that contains this item renderer.
This property is set by the tree, and it should not be set manually.
public function get owner():Tree
public function set owner(value:Tree):void
triggered | Event |
starling.events.Event
starling.events.Event.TRIGGERED
Dispatched when the the user taps or clicks the item renderer. The touch must remain within the bounds of the item renderer on release to register as a tap or a click.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
data | null |
target | The Object that dispatched the event;
it is not always the Object listening for the event. Use the
currentTarget property to always access the Object
listening for the event. |
See also