Packagecom.flexicious.controls
Classpublic class ExtendedPopUpButton
InheritanceExtendedPopUpButton Inheritance mx.controls.PopUpButton
Subclasses TileLayoutButton

A Popup button that positions the popups left or right edge in line with the popup buttons left or right edge on basis of edgeAlignmentMode Also, if popup is open, button will keep the state of the skin set to popupOver.



Public Properties
 PropertyDefined By
  edgeAlignmentMode : String = none
The alignment mode for the popup.
ExtendedPopUpButton
  xOffset : int = 0
On basis of whether or not you have borders on the button skin or the popup skin, you may wish to align this number.
ExtendedPopUpButton
  yOffset : int = 0
On basis of whether or not you have borders on the button skin or the popup skin, you may wish to align this number.
ExtendedPopUpButton
Public Methods
 MethodDefined By
  
ExtendedPopUpButton
Protected Methods
 MethodDefined By
  
clickHandler(event:MouseEvent):void
[override]
ExtendedPopUpButton
  
onItemClose(event:Event):void
Ensure that we set the skin state back to normal when the popup closes
ExtendedPopUpButton
  
onItemOpen(event:Event):void
To position the popup on basis of edgeAlignmentMode
ExtendedPopUpButton
  
rollOutHandler(event:MouseEvent):void
[override]
ExtendedPopUpButton
Public Constants
 ConstantDefined By
  EDGE_ALIGNMENT_BOTTOM_LEFT : String = bottomleft
[static]
ExtendedPopUpButton
  EDGE_ALIGNMENT_BOTTOM_RIGHT : String = bottomright
[static]
ExtendedPopUpButton
  EDGE_ALIGNMENT_NONE : String = none
[static]
ExtendedPopUpButton
  EDGE_ALIGNMENT_TOP_LEFT : String = topleft
[static]
ExtendedPopUpButton
  EDGE_ALIGNMENT_TOP_RIGHT : String = topright
[static]
ExtendedPopUpButton
Property Detail
edgeAlignmentModeproperty
public var edgeAlignmentMode:String = none

The alignment mode for the popup. If bottomleft, the left edge of the popup lines up with the left edge of the button and popup opens below button If bottomright, the right edge of the popup lines up with the right edge of the button and popup opens below button. If topleft, the left edge of the popup lines up with the left edge of the button and popup opens above button If tp[right, the right edge of the popup lines up with the right edge of the button and popup opens above button. IF none, the base behavior is used from the mx PopUpButton class, which is to left align and adjust for screen overruns. Defaults to none

xOffsetproperty 
public var xOffset:int = 0

On basis of whether or not you have borders on the button skin or the popup skin, you may wish to align this number.

The default value is 1.

yOffsetproperty 
public var yOffset:int = 0

On basis of whether or not you have borders on the button skin or the popup skin, you may wish to align this number.

The default value is -1.

Constructor Detail
ExtendedPopUpButton()Constructor
public function ExtendedPopUpButton()



Method Detail
clickHandler()method
override protected function clickHandler(event:MouseEvent):void

Parameters

event:MouseEvent

onItemClose()method 
protected function onItemClose(event:Event):void

Ensure that we set the skin state back to normal when the popup closes

Parameters

event:Event

onItemOpen()method 
protected function onItemOpen(event:Event):void

To position the popup on basis of edgeAlignmentMode

Parameters

event:Event

rollOutHandler()method 
override protected function rollOutHandler(event:MouseEvent):void

Parameters

event:MouseEvent

Constant Detail
EDGE_ALIGNMENT_BOTTOM_LEFTConstant
public static const EDGE_ALIGNMENT_BOTTOM_LEFT:String = bottomleft

EDGE_ALIGNMENT_BOTTOM_RIGHTConstant 
public static const EDGE_ALIGNMENT_BOTTOM_RIGHT:String = bottomright

EDGE_ALIGNMENT_NONEConstant 
public static const EDGE_ALIGNMENT_NONE:String = none

EDGE_ALIGNMENT_TOP_LEFTConstant 
public static const EDGE_ALIGNMENT_TOP_LEFT:String = topleft

EDGE_ALIGNMENT_TOP_RIGHTConstant 
public static const EDGE_ALIGNMENT_TOP_RIGHT:String = topright