- controls
- dataRenderers
- GridViewRowRenderer - feathers.controls.dataRenderers
- HierarchicalItemRenderer - feathers.controls.dataRenderers
- IDataRenderer - feathers.controls.dataRenderers
- IGridViewCellRenderer - feathers.controls.dataRenderers
- IGridViewHeaderRenderer - feathers.controls.dataRenderers
- IGroupListViewItemRenderer - feathers.controls.dataRenderers
- IHierarchicalDepthItemRenderer - feathers.controls.dataRenderers
- IHierarchicalItemRenderer - feathers.controls.dataRenderers
- IListViewItemRenderer - feathers.controls.dataRenderers
- IOptionalHierarchyItemRenderer - feathers.controls.dataRenderers
- ITreeGridViewCellRenderer - feathers.controls.dataRenderers
- ITreeGridViewHeaderRenderer - feathers.controls.dataRenderers
- ITreeViewItemRenderer - feathers.controls.dataRenderers
- ItemRenderer - feathers.controls.dataRenderers
- LayoutGroupItemRenderer - feathers.controls.dataRenderers
- SortOrderHeaderRenderer - feathers.controls.dataRenderers
- TreeGridViewRowRenderer - feathers.controls.dataRenderers
- navigators
- BaseNavigator - feathers.controls.navigators
- HistoryState - feathers.controls.navigators
- PageItem - feathers.controls.navigators
- PageNavigator - feathers.controls.navigators
- Route - feathers.controls.navigators
- RouterAction - feathers.controls.navigators
- RouterNavigator - feathers.controls.navigators
- StackAction - feathers.controls.navigators
- StackItem - feathers.controls.navigators
- StackNavigator - feathers.controls.navigators
- TabItem - feathers.controls.navigators
- TabNavigator - feathers.controls.navigators
- popups
- supportClasses
- BaseDividedBox - feathers.controls.supportClasses
- BaseProgressBar - feathers.controls.supportClasses
- BaseScrollBar - feathers.controls.supportClasses
- BaseScrollContainer - feathers.controls.supportClasses
- BaseSlider - feathers.controls.supportClasses
- IViewPort - feathers.controls.supportClasses
- LayoutViewPort - feathers.controls.supportClasses
- TextFieldViewPort - feathers.controls.supportClasses
- ActivityIndicator - feathers.controls
- Alert - feathers.controls
- Application - feathers.controls
- AssetLoader - feathers.controls
- BasicButton - feathers.controls
- BasicToggleButton - feathers.controls
- Button - feathers.controls
- ButtonBar - feathers.controls
- ButtonState - feathers.controls
- Callout - feathers.controls
- Check - feathers.controls
- Collapsible - feathers.controls
- ComboBox - feathers.controls
- DatePicker - feathers.controls
- Drawer - feathers.controls
- Form - feathers.controls
- FormItem - feathers.controls
- GridView - feathers.controls
- GridViewColumn - feathers.controls
- GroupListView - feathers.controls
- HDividedBox - feathers.controls
- HProgressBar - feathers.controls
- HScrollBar - feathers.controls
- HSlider - feathers.controls
- Header - feathers.controls
- IGridViewColumn - feathers.controls
- IGroupedToggle - feathers.controls
- IRange - feathers.controls
- IScrollBar - feathers.controls
- IToggle - feathers.controls
- ITriggerView - feathers.controls
- Label - feathers.controls
- LayoutGroup - feathers.controls
- ListView - feathers.controls
- NumericStepper - feathers.controls
- PageIndicator - feathers.controls
- PageIndicatorInteractionMode - feathers.controls
- Panel - feathers.controls
- PopUpDatePicker - feathers.controls
- PopUpListView - feathers.controls
- ProgressBarFillMode - feathers.controls
- Radio - feathers.controls
- ScrollContainer - feathers.controls
- ScrollMode - feathers.controls
- ScrollPolicy - feathers.controls
- TabBar - feathers.controls
- TextArea - feathers.controls
- TextCallout - feathers.controls
- TextInput - feathers.controls
- TextInputState - feathers.controls
- ToggleButton - feathers.controls
- ToggleButtonState - feathers.controls
- ToggleSwitch - feathers.controls
- TreeGridView - feathers.controls
- TreeGridViewColumn - feathers.controls
- TreeView - feathers.controls
- VDividedBox - feathers.controls
- VProgressBar - feathers.controls
- VScrollBar - feathers.controls
- VSlider - feathers.controls
- dataRenderers
- core
- CustomScaleManager - feathers.core
- DefaultFocusManager - feathers.core
- DefaultPopUpManager - feathers.core
- DefaultToolTipManager - feathers.core
- FeathersControl - feathers.core
- FocusManager - feathers.core
- IDataSelector - feathers.core
- IDateSelector - feathers.core
- IFocusContainer - feathers.core
- IFocusExclusions - feathers.core
- IFocusExtras - feathers.core
- IFocusManager - feathers.core
- IFocusManagerAware - feathers.core
- IFocusObject - feathers.core
- IHTMLTextControl - feathers.core
- IIndexSelector - feathers.core
- IMeasureObject - feathers.core
- IOpenCloseToggle - feathers.core
- IPointerDelegate - feathers.core
- IPopUpManager - feathers.core
- IScaleManager - feathers.core
- IStageFocusDelegate - feathers.core
- IStateContext - feathers.core
- IStateObserver - feathers.core
- ITextControl - feathers.core
- IToolTipManager - feathers.core
- IUIControl - feathers.core
- IValidating - feathers.core
- InvalidationFlag - feathers.core
- LetterboxScaleManager - feathers.core
- MeasureSprite - feathers.core
- PopUpManager - feathers.core
- ScreenDensityScaleManager - feathers.core
- ToggleGroup - feathers.core
- ToolTipManager - feathers.core
- ValidatingSprite - feathers.core
- ValidationQueue - feathers.core
- data
- ArrayCollection - feathers.data
- ArrayHierarchicalCollection - feathers.data
- ButtonBarItemState - feathers.data
- DatePickerItemState - feathers.data
- GridViewCellState - feathers.data
- GridViewHeaderState - feathers.data
- GroupListViewItemState - feathers.data
- GroupListViewItemType - feathers.data
- IFlatCollection - feathers.data
- IHierarchicalCollection - feathers.data
- ISortOrderObserver - feathers.data
- ListViewItemState - feathers.data
- PageIndicatorItemState - feathers.data
- RouteState - feathers.data
- SortOrder - feathers.data
- TabBarItemState - feathers.data
- TreeCollection - feathers.data
- TreeGridViewCellState - feathers.data
- TreeGridViewHeaderState - feathers.data
- TreeNode - feathers.data
- TreeViewItemState - feathers.data
- display
- dragDrop
- events
- ButtonBarEvent - feathers.events
- DatePickerEvent - feathers.events
- DragDropEvent - feathers.events
- FeathersEvent - feathers.events
- FlatCollectionEvent - feathers.events
- FormEvent - feathers.events
- GridViewEvent - feathers.events
- GroupListViewEvent - feathers.events
- HierarchicalCollectionEvent - feathers.events
- ListViewEvent - feathers.events
- LongPressEvent - feathers.events
- ScrollEvent - feathers.events
- StyleProviderEvent - feathers.events
- TabBarEvent - feathers.events
- TransitionEvent - feathers.events
- TreeGridViewEvent - feathers.events
- TreeViewEvent - feathers.events
- TriggerEvent - feathers.events
- graphics
- layout
- AbstractAnchor - feathers.layout
- Anchor - feathers.layout
- AnchorLayout - feathers.layout
- AnchorLayoutData - feathers.layout
- AutoSizeMode - feathers.layout
- Breakpoint - feathers.layout
- CalendarGridLayout - feathers.layout
- Direction - feathers.layout
- FlowRowsLayout - feathers.layout
- FormLayout - feathers.layout
- GridViewRowLayout - feathers.layout
- HDividedBoxLayout - feathers.layout
- HorizontalAlign - feathers.layout
- HorizontalDistributedLayout - feathers.layout
- HorizontalLayout - feathers.layout
- HorizontalLayoutData - feathers.layout
- HorizontalListLayout - feathers.layout
- IDragDropLayout - feathers.layout
- IKeyboardNavigationLayout - feathers.layout
- ILayout - feathers.layout
- ILayoutData - feathers.layout
- ILayoutIndexObject - feathers.layout
- ILayoutObject - feathers.layout
- IScrollLayout - feathers.layout
- ISnapLayout - feathers.layout
- IVirtualLayout - feathers.layout
- LayoutBoundsResult - feathers.layout
- Measurements - feathers.layout
- PagedTiledRowsListLayout - feathers.layout
- RelativePosition - feathers.layout
- RelativePositions - feathers.layout
- ResponsiveGridLayout - feathers.layout
- ResponsiveGridLayoutData - feathers.layout
- TiledRowsLayout - feathers.layout
- TiledRowsListLayout - feathers.layout
- VDividedBoxLayout - feathers.layout
- VerticalAlign - feathers.layout
- VerticalDistributedLayout - feathers.layout
- VerticalLayout - feathers.layout
- VerticalLayoutData - feathers.layout
- VerticalListFixedRowLayout - feathers.layout
- VerticalListLayout - feathers.layout
- VirtualLayoutRange - feathers.layout
- motion
- effects
- actuate
- ActuateEffectContext - feathers.motion.effects.actuate
- ActuateForEffects - feathers.motion.effects.actuate
- IGotoActuator - feathers.motion.effects.actuate
- IReadableGenericActuator - feathers.motion.effects.actuate
- MethodEffectActuator - feathers.motion.effects.actuate
- SimpleEffectActuator - feathers.motion.effects.actuate
- BaseDelegateEffectContext - feathers.motion.effects
- BaseEffectContext - feathers.motion.effects
- EffectInterruptBehavior - feathers.motion.effects
- EventToPositionEffectContext - feathers.motion.effects
- IEffectContext - feathers.motion.effects
- NoOpEffectContext - feathers.motion.effects
- actuate
- transitions
- ColorFadeTransitionBuilder - feathers.motion.transitions
- CoverTransitionBuilder - feathers.motion.transitions
- FadeTransitionBuilder - feathers.motion.transitions
- IrisTransitionBuilder - feathers.motion.transitions
- RevealTransitionBuilder - feathers.motion.transitions
- SlideTransitionBuilder - feathers.motion.transitions
- WipeTransitionBuilder - feathers.motion.transitions
- effects
- skins
- activity
- BaseGraphicsPathSkin - feathers.skins
- ButtonMultiSkin - feathers.skins
- CircleSkin - feathers.skins
- DonutSkin - feathers.skins
- EllipseSkin - feathers.skins
- HorizontalLineSkin - feathers.skins
- IIndeterminateSkin - feathers.skins
- IProgrammaticSkin - feathers.skins
- LeftAndRightBorderSkin - feathers.skins
- MultiSkin - feathers.skins
- PillSkin - feathers.skins
- ProgrammaticSkin - feathers.skins
- RectangleSkin - feathers.skins
- TabSkin - feathers.skins
- TextInputMultiSkin - feathers.skins
- ToggleButtonMultiSkin - feathers.skins
- TopAndBottomBorderSkin - feathers.skins
- TriangleSkin - feathers.skins
- UnderlineSkin - feathers.skins
- VerticalLineSkin - feathers.skins
- style
- text
- themes
- utils
- AbstractDisplayObjectFactory - feathers.utils
- AbstractDisplayObjectRecycler - feathers.utils
- BitmapDataCache - feathers.utils
- DPadFocusUtil - feathers.utils
- DateUtil - feathers.utils
- DeviceUtil - feathers.utils
- DisplayObjectFactory - feathers.utils
- DisplayObjectRecycler - feathers.utils
- DisplayUtil - feathers.utils
- EdgePuller - feathers.utils
- ExclusivePointer - feathers.utils
- FocusUtil - feathers.utils
- KeyToState - feathers.utils
- LongPress - feathers.utils
- MathUtil - feathers.utils
- MeasurementsUtil - feathers.utils
- PointerToState - feathers.utils
- PointerTrigger - feathers.utils
- PopUpUtil - feathers.utils
- ScaleUtil - feathers.utils
- ScreenDensityScaleCalculator - feathers.utils
- Scroller - feathers.utils
- TextFormatUtil - feathers.utils
class TextCallout
package feathers.controls
extends Callout › FeathersControl › MeasureSprite › ValidatingSprite
implements IHTMLTextControl, ITextControl
@:directlyUsed@:build(feathers.macros.StyleContextMacro.build())@:autoBuild(feathers.macros.StyleContextMacro.build())@:build(feathers.macros.StyleMacro.build())@:autoBuild(feathers.macros.StyleMacro.build())@defaultXmlProperty("text")@:styleContextA special type of Callout
designed to display text only.
In the following example, a text callout is shown when a Button
is
triggered:
function button_triggerHandler(event:TriggerEvent):Void
{
var button = cast(event.currentTarget, Button);
TextCallout.show("Hello World", button);
}
button.addEventListener(TriggerEvent.TRIGGER, button_triggerHandler);
1.0.0
.See also:
Static variables
@:value("danger")staticfinalread onlyVARIANT_DANGER:String = "danger"
A variant used to style the callout in a style that indicates that something related to the origin is considered dangerous or in error. Variants allow themes to provide an assortment of different appearances for the same type of UI component.
The following example uses this variant:
callout.variant = TextCallout.VARIANT_DANGER;
1.0.0
.See also:
Static methods
@:value({ modal : true })staticshow(text:String, origin:DisplayObject, ?supportedPositions:RelativePositions, modal:Bool = true):TextCallout
Creates a text callout, and then positions and sizes it automatically based based on an origin component and an optional set of positions.
In the following example, a text callout is shown when a Button
is
triggered:
function button_triggerHandler(event:TriggerEvent):Void
{
var button = cast(event.currentTarget, Button);
TextCallout.show("Hello World", button);
}
button.addEventListener(TriggerEvent.TRIGGER, button_triggerHandler);
1.0.0
.Constructor
@:value({ text : "" })new(text:String = "")
Creates a new TextCallout
object.
In general, a TextCallout
shouldn't be instantiated directly with the
constructor. Instead, use the static function TextCallout.show()
to
create a TextCallout
, as this often requires less pop-up management
code.
1.0.0
.See also:
Variables
@:style@:flash.propertydisabledTextFormat:AbstractTextFormat
The font styles used to render the text callout's text when the text callout is disabled.
In the following example, the text callout's disabled text formatting is customized:
callout.enabled = false;
callout.disabledTextFormat = new TextFormat("Helvetica", 20, 0xee0000);
1.0.0
.See also:
@:style@:flash.propertyembedFonts:Bool
Determines if an embedded font is used or not.
In the following example, the callout uses embedded fonts:
callout.embedFonts = true;
1.0.0
.See also:
htmlText:String
Text displayed by the callout that is parsed as a simple form of HTML.
The following example sets the callout's HTML text:
callout.htmlText = "<b>Hello</b> <i>World</i>";
1.0.0
.See also:
@:inspectabletext:String
The text displayed by the text callout.
The following example creates a text callout and changes its text:
var callout = TextCallout.show("Good morning!", origin);
callout.text = "Good afternoon!";
1.0.0
.See also:
@:style@:flash.propertytextFormat:AbstractTextFormat
The font styles used to render the text callout's text.
In the following example, the text callout's formatting is customized:
callout.textFormat = new TextFormat("Helvetica", 20, 0xcc0000);
1.0.0
.See also:
@:style@:flash.propertywordWrap:Bool
Determines if the text is displayed on a single line, or if it wraps.
In the following example, the callout's text wraps at 150 pixels:
callout.width = 150.0;
callout.wordWrap = true;
1.0.0
.Inherited Variables
Defined by Callout
@:style@:flash.propertyarrowPosition:RelativePosition
The edge of the callout where the arrow is positioned.
When calling Callout.show()
, the arrowPosition
property will be
managed automatically and should not be modified.
1.0.0
.@:style@:flash.propertybackgroundSkin:DisplayObject
The primary background to display behind the callout's content.
In the following example, the callout's background is set to a bitmap:
callout.backgroundSkin = new Bitmap(bitmapData);
1.0.0
.@:style@:flash.propertybottomArrowGap:Float
The gap, in pixels, between the callout and the bottomArrowSkin
.
In the following example, the callout's bottom arrow gap is set to -1.0 pixels:
callout.bottomArrowGap = -1.0;
1.0.0
.@:style@:flash.propertybottomArrowSkin:DisplayObject
The arrow skin to display when the arrow is positioned on the bottom of the callout.
In the following example, the callout's bottom arrow skin is set to a bitmap:
callout.bottomArrowSkin = new Bitmap(bitmapData);
1.0.0
.content:DisplayObject
The display object that will be displayed by the callout.
This object may be resized to fit the callout's bounds. If the content
needs to be scrolled when placed into a smaller region than its ideal
size, it should be added to a ScrollContainer
, and the
ScrollContainer
should be passed in as the content.
In the following example, the callout's content is a bitmap:
callout.content = new Bitmap(bitmapData);
1.0.0
.See also:
@:style@:flash.propertygap:Float
The space, in pixels, between the callout and its origin.
In the following example, the callout's gap is set to 20 pixels:
callout.gap = 20.0;
1.0.0
.@:style@:flash.propertyhorizontalAlign:HorizontalAlign
The horizontal alignment of the callout, relative to the origin, if the callout is positioned on the top or bottom side of the origin.
The following example aligns the callout to the right:
callout.horizontalAlign = RIGHT;
Note: The HorizontalAlign.JUSTIFY
constant is not supported by this
component.
1.0.0
.See also:
@:style@:flash.propertyleftArrowGap:Float
The gap, in pixels, between the callout and the leftArrowSkin
.
In the following example, the callout's left arrow gap is set to -1.0 pixels:
callout.leftArrowGap = -1.0;
1.0.0
.@:style@:flash.propertyleftArrowSkin:DisplayObject
The arrow skin to display when the arrow is positioned on the left side of the callout.
In the following example, the callout's left arrow skin is set to a bitmap:
callout.leftArrowSkin = new Bitmap(bitmapData);
1.0.0
.@:style@:flash.propertymarginBottom:Float
The minimum space, in pixels, between the callout and the stage's bottom edge.
In the following example, the callout's bottom margin is set to 20 pixels:
callout.marginBottom = 20.0;
1.0.0
.@:style@:flash.propertymarginLeft:Float
The minimum space, in pixels, between the callout and the stage's left edge.
In the following example, the callout's left margin is set to 20 pixels:
callout.marginLeft = 20.0;
1.0.0
.@:style@:flash.propertymarginRight:Float
The minimum space, in pixels, between the callout and the stage's right edge.
In the following example, the callout's right margin is set to 20 pixels:
callout.marginRight = 20.0;
1.0.0
.@:style@:flash.propertymarginTop:Float
The minimum space, in pixels, between the callout and the stage's top edge.
In the following example, the callout's top margin is set to 20 pixels:
callout.marginTop = 20.0;
1.0.0
.origin:DisplayObject
A callout may be positioned relative to another display object, known as the origin. Even if the position of the origin changes, the callout will be re-positioned automatically to always point at the origin.
1.0.0
.See also:
@:style@:flash.propertypaddingBottom:Float
The minimum space, in pixels, between the callout's bottom edge and the callout's content.
In the following example, the callout's bottom padding is set to 20 pixels:
callout.paddingBottom = 20.0;
1.0.0
.@:style@:flash.propertypaddingLeft:Float
The minimum space, in pixels, between the callout's left edge and the callout's content.
In the following example, the callout's left padding is set to 20 pixels:
callout.paddingLeft = 20.0;
1.0.0
.@:style@:flash.propertypaddingRight:Float
The minimum space, in pixels, between the callout's right edge and the button's content.
In the following example, the callout's right padding is set to 20 pixels:
callout.paddingRight = 20.0;
1.0.0
.@:style@:flash.propertypaddingTop:Float
The minimum space, in pixels, between the callout's top edge and the callout's content.
In the following example, the callout's top padding is set to 20 pixels:
callout.paddingTop = 20.0;
1.0.0
.@:style@:flash.propertyrightArrowGap:Float
The gap, in pixels, between the callout and the rightArrowSkin
.
In the following example, the callout's right arrow gap is set to -1.0 pixels:
callout.rightArrowGap = -1.0;
1.0.0
.@:style@:flash.propertyrightArrowSkin:DisplayObject
The arrow skin to display when the arrow is positioned on the right side of the callout.
In the following example, the callout's right arrow skin is set to a bitmap:
callout.rightArrowSkin = new Bitmap(bitmapData);
1.0.0
.supportedPositions:Array<RelativePosition>
The set of positions that the callout may appear at, relative to its origin. Positioning of the callout is attempted in order, and if the callout does not fit between the origin and the edge of the stage, the next position is attempted. If the callout is too large for all positions, the position with the most space will be used.
1.0.0
.See also:
@:style@:flash.propertytopArrowGap:Float
The gap, in pixels, between the callout and the topArrowSkin
.
In the following example, the callout's top arrow gap is set to -1.0 pixels:
callout.topArrowGap = -1.0;
1.0.0
.@:style@:flash.propertytopArrowSkin:DisplayObject
The arrow skin to display when the arrow is positioned on the top of the callout.
In the following example, the callout's top arrow skin is set to a bitmap:
callout.topArrowSkin = new Bitmap(bitmapData);
1.0.0
.@:style@:flash.propertyverticalAlign:VerticalAlign
The vertical alignment of the callout, relative to the origin, if the callout is positioned on the left or right side of the origin.
The following example aligns the callout to the top:
callout.verticalAlign = TOP;
Note: The VerticalAlign.JUSTIFY
constant is not supported by this
component.
1.0.0
.See also:
Defined by FeathersControl
@:stylealwaysShowFocus:Bool
Indicates if the focusRectSkin
should always be displayed when the
component is focused, or only after keyboard focus changes.
1.3.0
.@:bindable("creationComplete")read onlycreated:Bool
Determines if the component has been initialized and validated for the first time.
In the following example, we check if the component is created or not, and we listen for an event if it isn't:
if(!control.created)
{
control.addEventListener(FeathersEventType.CREATION_COMPLETE, creationCompleteHandler);
}
1.0.0
.See also:
@styledisabledAlpha:Null<Float>
When disabledAlpha
is not null
, sets the alpha
property to this
value when the the enabled
property is set to false
.
1.0.0
.@stylefocusPaddingBottom:Float
Optional padding outside the bottom edge of this UI component when the
focusRectSkin
is visible.
1.0.0
.@stylefocusPaddingLeft:Float
Optional padding outside the left edge of this UI component when the
focusRectSkin
is visible.
1.0.0
.@stylefocusPaddingRight:Float
Optional padding outside the right edge of this UI component when the
focusRectSkin
is visible.
1.0.0
.@stylefocusPaddingTop:Float
Optional padding outside the top edge of this UI component when the
focusRectSkin
is visible.
1.0.0
.@stylefocusRectSkin:DisplayObject
An optional skin to display when an IFocusObject
component receives
focus.
1.0.0
.@:bindable("layoutDataChange")includeInLayout:Bool
@:bindable("initialize")read onlyinitialized:Bool
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.
In the following example, we check if the component is initialized or not, and we listen for an event if it isn't initialized:
if(!control.initialized)
{
control.addEventListener(FeathersEvent.INITIALIZE, initializeHandler);
}
1.0.0
.See also:
@style@:bindable("layoutDataChange")layoutData:ILayoutData
read onlystyleContext:Class<IStyleObject>
The class used as the context for styling the component. If a subclass
of a component should have different styles than its superclass, it
should override the get_styleContext
getter. However, if a subclass
should continue using the same styles as its superclass, it happens
automatically.
1.0.0
.styleProvider:IStyleProvider
Typically used by the theme to provide styles to each component, but a custom style provider may be provided that will take precedence over the theme's style provider.
When a component initializes, its style provider sets properties that
affect the component's visual appearance. If the style provider
dispatches StyleProviderEvent.STYLES_CHANGE
after the component has
initialized, the original properties set by the style provider will be
reset to their default values and before applying the new property
values.
Setting the style provider or replacing an existing style provider
before a component initializes will queue up the style changes until after
initialization. Once a component initializes, the style provider
may be changed, but the changes will be applied immediately. Similarly
to when a style provider dispatcches StyleProviderEvent.STYLES_CHANGE
,
any properties that were set by the previous style provider will be
reset to their default values before applying the new style provider.
If the themeEnabled
property is false
, the current theme's style
provider will be ignored. However, if a custom style provider was
provided from outside of the theme, it will still be used.
1.0.0
.See also:
@:inspectablevariant:String
May be used to provide multiple different variations of the same UI component, each with a different appearance.
1.0.0
.Defined by MeasureSprite
Defined by ValidatingSprite
read onlyvalidating:Bool
Indicates if the display object is currently validating.
1.0.0
.Inherited Methods
Defined by Callout
close():Void
Closes the callout, if opened.
When the callout closes, it will dispatch an event of type
Event.CLOSE
.
1.0.0
.See also:
setPadding(value:Float):Void
Sets all four padding properties to the same value.
1.0.0
.See also:
Defined by FeathersControl
private@:dox(show)initialize():Void
Called the first time that the UI control is added to the stage, and you should override this function to customize the initialization process. Do things like create children and set up event listeners. After this function is called, `FeathersEvent.INITIALIZE is dispatched.
The following example overrides initialization:
override private function initialize():Void {
super.initialize();
}
1.0.0
.See also:
move(x:Float, y:Float):Void
Sets both the x
and y
positions of the control in a single function
call.
1.0.0
.See also:
DisplayObject.x
DisplayObject.y
setFocusPadding(value:Float):Void
Sets all four padding properties to the same value.
1.0.0
.See also:
setSize(width:Float, height:Float):Void
Sets both the width
and height
dimensions of the control in a single
function call.
1.0.0
.See also:
DisplayObject.width
DisplayObject.height
private@:dox(show)setStyle(styleName:String, ?state:EnumValue):Bool
Determines if a style may be changed, and restricts the style from being changed in the future, if necessary.
1.0.0
.Defined by MeasureSprite
private@:value({ minHeight : 0.0, minWidth : 0.0 })@:dox(show)saveMeasurements(width:Float, height:Float, minWidth:Float = 0.0, minHeight:Float = 0.0, ?maxWidth:Float, ?maxHeight:Float):Bool
Saves the calculated dimensions for the component, replacing any values
that haven't been set explicitly. Returns true
if the reported values
have changed and Event.RESIZE
was dispatched.
1.0.0
.Defined by ValidatingSprite
isInvalid(?flag:InvalidationFlag):Bool
Indicates whether the control is pending validation or not. By default,
returns true
if any invalidation flag has been set. If you pass in a
specific flag, returns true
only if that flag has been set (others may
be set too, but it checks the specific flag only. If all flags have been
marked as invalid, always returns true
.
The following example invalidates a component:
component.setInvalid();
trace(component.isInvalid()); // true
1.0.0
.runWithInvalidationFlagsOnly(callback:() ‑> Void):Void
Calls a function that temporarily limits setInvalid()
calls to
setting invalidation flags only, and the control will not be added to
the validation queue. In other words, setInvalid()
calls will work
similarly to setInvalidationFlag()
instead.
Typically, this method should be called only during validation. If
called outside of update()
, the component's validation may be delayed
until a future call to setInvalid()
.
1.2.0
.runWithoutInvalidation(callback:() ‑> Void):Void
Calls a function that temporarily disables invalidation. In other words,
calls to setInvalid()
will be ignored until the function returns.
1.0.0
.setInvalid(?flag:InvalidationFlag):Void
Call this function to tell the UI control that a redraw is pending. The redraw will happen immediately before OpenFL renders the UI control to the screen. The validation system exists to ensure that multiple properties can be set together without redrawing multiple times in between each property change.
If you cannot wait until later for the validation to happen, you
can call validate()
to redraw immediately. As an example,
you might want to validate immediately if you need to access the
correct width
or height
values of the UI
control, since these values are calculated during validation.
The following example invalidates a component:
component.setInvalid();
trace(component.isInvalid()); // true
1.0.0
.private@:dox(show)setInvalidationFlag(flag:InvalidationFlag):Void
Sets an invalidation flag. This will not add the component to the
validation queue. It only sets the flag. A subclass might use
this function during draw()
to manipulate the flags that
its superclass sees.
1.0.0
.See also:
private@:dox(show)update():Void
Override to customize layout and to adjust properties of children. Called when the component validates, if any flags have been marked to indicate that validation is pending.
The following example overrides updating after invalidation:
override private function update():Void {
super.update();
}
1.0.0
.