Package | com.adobe.portfolio.components.supportClasses |
Class | public class ButtonBuffer |
Inheritance | ButtonBuffer ![]() |
Property | Defined By | ||
---|---|---|---|
button : IEventDispatcher
The button that should dispatch a click event when this component is clicked. | ButtonBuffer | ||
touchOnly : Boolean
True if this component should only propagate click events in environments supporting
touch interaction; false if this component should always propagate click events. | ButtonBuffer |
Property | Defined By | ||
---|---|---|---|
isTouchSupported : Boolean [static] [read-only]
Returns true if touch interaction is supported in the current environment; false otherwise. | ButtonBuffer |
Method | Defined By | ||
---|---|---|---|
handleClickListener(shouldListen:Boolean):void
A helper function to add or remove the default click event listener. | ButtonBuffer | ||
onBufferClick(event:MouseEvent):void
An event listener that responds to click events on this component and propagates
them to button. | ButtonBuffer | ||
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void [override]
| ButtonBuffer |
Constant | Defined By | ||
---|---|---|---|
DEFAULT_BUFFER_EXTENSION : Number = 10 [static] | ButtonBuffer |
button | property |
button:IEventDispatcher
The button that should dispatch a click event when this component is clicked.
public function get button():IEventDispatcher
public function set button(value:IEventDispatcher):void
isTouchSupported | property |
isTouchSupported:Boolean
[read-only] Returns true if touch interaction is supported in the current environment; false otherwise.
protected static function get isTouchSupported():Boolean
touchOnly | property |
touchOnly:Boolean
True if this component should only propagate click events in environments supporting touch interaction; false if this component should always propagate click events.
public function get touchOnly():Boolean
public function set touchOnly(value:Boolean):void
See also
handleClickListener | () | method |
protected function handleClickListener(shouldListen:Boolean):void
A helper function to add or remove the default click event listener.
Parameters
shouldListen:Boolean |
See also
onBufferClick | () | method |
protected function onBufferClick(event:MouseEvent):void
An event listener that responds to click events on this component and propagates
them to button
.
Parameters
event:MouseEvent |
updateDisplayList | () | method |
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Parameters
unscaledWidth:Number | |
unscaledHeight:Number |
DEFAULT_BUFFER_EXTENSION | Constant |
public static const DEFAULT_BUFFER_EXTENSION:Number = 10