Package | feathers.core |
Interface | public interface IFeathersControl |
Implementors | FeathersControl |
Property | Defined By | ||
---|---|---|---|
isEnabled : Boolean
Indicates whether the control is interactive or not. | IFeathersControl | ||
isInitialized : Boolean [read-only]
Determines if the component has been initialized yet. | IFeathersControl | ||
maxHeight : Number
The maximum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. | IFeathersControl | ||
maxWidth : Number
The maximum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. | IFeathersControl | ||
minHeight : Number
The minimum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. | IFeathersControl | ||
minWidth : Number
The minimum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. | IFeathersControl | ||
nameList : TokenList [read-only]
Contains a list of all "names" assigned to this control. | IFeathersControl |
Method | Defined By | ||
---|---|---|---|
setSize(width:Number, height:Number):void
Sets both the width and the height of the control. | IFeathersControl | ||
validate():void
Immediately validates the control, which triggers a redraw, if one
is pending. | IFeathersControl |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched after the control has been initialized, but before it has drawn for the first time. | IFeathersControl | |||
Dispatched when the width or height of the control changes. | IFeathersControl |
isEnabled | property |
isEnabled:Boolean
Indicates whether the control is interactive or not.
public function get isEnabled():Boolean
public function set isEnabled(value:Boolean):void
isInitialized | property |
isInitialized:Boolean
[read-only]
Determines if the component has been initialized yet. The
initialize()
function is called one time only, when the
Feathers UI control is added to the display list for the first time.
public function get isInitialized():Boolean
maxHeight | property |
maxHeight:Number
The maximum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. This value
is not strictly enforced in all cases. An explicit height value that
is larger than maxHeight
may be set and will not be
affected by the maximum.
public function get maxHeight():Number
public function set maxHeight(value:Number):void
maxWidth | property |
maxWidth:Number
The maximum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. This value
is not strictly enforced in all cases. An explicit width value that
is larger than maxWidth
may be set and will not be
affected by the maximum.
public function get maxWidth():Number
public function set maxWidth(value:Number):void
minHeight | property |
minHeight:Number
The minimum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. This value
is not strictly enforced in all cases. An explicit height value that
is smaller than minHeight
may be set and will not be
affected by the minimum.
public function get minHeight():Number
public function set minHeight(value:Number):void
minWidth | property |
minWidth:Number
The minimum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. This value
is not strictly enforced in all cases. An explicit width value that
is smaller than minWidth
may be set and will not be
affected by the minimum.
public function get minWidth():Number
public function set minWidth(value:Number):void
nameList | property |
nameList:TokenList
[read-only]
Contains a list of all "names" assigned to this control. Names are
like classes in CSS selectors. They are a non-unique identifier that
can differentiate multiple styles of the same type of UI control. A
single control may have many names, and many controls can share a
single name. Names may be added, removed, or toggled on the nameList
.
public function get nameList():TokenList
setSize | () | method |
public function setSize(width:Number, height:Number):void
Sets both the width and the height of the control.
Parameters
width:Number | |
height:Number |
validate | () | method |
public function validate():void
Immediately validates the control, which triggers a redraw, if one is pending.
initialize | Event |
starling.events.Event
feathers.events.FeathersEventType.INITIALIZE
Dispatched after the control has been initialized, but before it has drawn for the first time. Typically, the component's children will have been created by this point.
TheFeathersEventType.INITIALIZE
event type is meant to
be used when an IFeathersControl
has finished running
its initialize()
function.
resize | Event |
starling.events.Event
feathers.events.FeathersEventType.RESIZE
Dispatched when the width or height of the control changes.
TheFeathersEventType.RESIZE
event type is meant to
be used when an IFeathersControl
has resized.