Packagenet.guttershark.display
Classpublic class BaseErrorView
InheritanceBaseErrorView Inheritance BaseFormView Inheritance BaseView Inheritance CoreClip Inheritance flash.display.MovieClip

The BaseErrorView class provides some default functionality that might want to be used for an "error" state of a form.



Public Properties
 PropertyDefined by
 InheritedcancelButton : MovieClip
A cancel button.
BaseFormView
 InheritedconfirmButton : MovieClip
A confirm button.
BaseFormView
 Inheritedcontroller : *
A controller for this view.
BaseView
 InheriteddeleteButton : MovieClip
A delete button.
BaseFormView
  errorField : TextField
An error message text field.
BaseErrorView
 InheritederrorViews : MovieClip
A container for BaseErrorView's to show and hide during validation.
BaseFormView
  message : String
[write-only] Set an error message.
BaseErrorView
 InheritednoButton : MovieClip
A no button.
BaseFormView
 InheritedokButton : MovieClip
An ok button.
BaseFormView
 InheritedonCancel : Function
A function delegate you should use and call when the user cancels the form operation and any validation has passed.
BaseFormView
 InheritedonConfirm : Function
A function delegate you should use and call when the user confirms the form operation and any validation has passed.
BaseFormView
 InheritedonDelete : Function
A function delegate you should use and call when the user agrees to delete (something) and any validation has passed.
BaseFormView
 InheritedonNo : Function
A function delegate you should use and call when the user declines the form operation and any validation has passed.
BaseFormView
 InheritedonOK : Function
A function delegate you should use and call when the user ok's a form operatoin and any validation has passed.
BaseFormView
 InheritedonYes : Function
A function delegate you should use and call when the user agrees to the form operation and any validation has passed.
BaseFormView
 InheritedyesButton : MovieClip
A yes button.
BaseFormView
Protected Properties
 PropertyDefined by
 Inheritedam : AssetManager
The AssetManager singleton instance.
CoreClip
 Inheritedast : Assertions
The Assertions singleton instance.
CoreClip
 Inheritedcmm : ContextMenuManager
An instance of the context menu manager.
CoreClip
 Inheritedem : EventManager
The EventManager singleton instance.
CoreClip
 Inheritedkm : KeyManager
The KeyboardEventManager singleton instance.
CoreClip
 Inheritedlgm : LanguageManager
The LanguageManager singleton instance.
CoreClip
 Inheritedlm : LayoutManager
An instance of a layout manager.
CoreClip
 Inheritedml : Model
The Model singleton instance.
CoreClip
 Inheritedpc : PreloadController
A placeholder variable for a PreloadController instance - you should initialize this yourself.
CoreClip
 Inheritedsm : ServiceManager
The ServiceManager singleton instance.
CoreClip
 Inheritedsnm : SoundManager
The SoundManager singleton instance.
CoreClip
 Inheritedutils : Utilities
The Utilities singleton instance.
CoreClip
Public Methods
 MethodDefined by
  
Constructor for BaseErrorView instances.
BaseErrorView
 Inherited
dispose():void
Override this method and write your own dispose logic.
BaseView
 Inherited
hide():void
Hide this form view - this calls removeKeyMappings() and deselectField().
BaseFormView
 Inherited
hideButtons():void
Hide's any form buttons that are currently visible.
BaseFormView
 Inherited
Override this method, and use as the the click event handler for a "confirm" button - validate this form and then call the onConfirm delegate function.
BaseFormView
 Inherited
Override this method, and use as the the click event handler for a "delete" button - validate this form and then call the onDelete delegate function.
BaseFormView
 Inherited
onNoClick():void
Override this method, and use as the the click event handler for a "no" button - validate this form and then call the onNo delegate function.
BaseFormView
 Inherited
onOKClick():void
Override this method, and use as the click event handler for an "ok" button - validate this form and then call the onOK delegate function.
BaseFormView
 Inherited
onYesClick():void
Override this method, and use as the the click event handler for a "yes" button - validate this form and then call the onYes delegate function.
BaseFormView
 Inherited
show():void
Show this form view - this calls addKeyMappings() and selectField().
BaseFormView
  
showAndHide(autoHideTimeout:int = 2000):void
This is an alternative to the default method (show), which autoHide's this error view, after a specified amount of time.
BaseErrorView
 Inherited
showButtons(buttons:uint):void
Show any button, (yes,no,confirm,delete,ok,cancel) based off of what is or'ed (|) together - for each button that is shown, it calls the appropriate method (showOKButton, showYesButton, etc), which you could override if needed.
BaseFormView
Protected Methods
 MethodDefined by
 Inherited
Override this method, and use the event manager to add event handlers on your objects.
BaseView
 Inherited
Override this and add key event mappings with the keyboard event manager.
BaseFormView
 Inherited
Override this method and implement a modal blocker, which can then be called when a sub form view is shown and this view needs to be blocked from interaction.
BaseFormView
 Inherited
Override this and do some deselect logic for the form fields.
BaseFormView
 Inherited
Hides the cancel button.
BaseFormView
 Inherited
Hides the confirm button.
BaseFormView
 Inherited
Hides the delete button.
BaseFormView
 Inherited
hideNoButton():void
Hides the no button.
BaseFormView
 Inherited
hideOKButton():void
Hides the ok button.
BaseFormView
 Inherited
Hides the yes button.
BaseFormView
 Inherited
init():void
Initialize this view - called from the constructor.
BaseView
 Inherited
onActivate():void
Override this method to hook into the activate event.
BaseView
 Inherited
Override this method to hook into the added to stage event.
BaseView
 Inherited
onDeactive():void
Override this method to hook into the deactivate event.
BaseView
 Inherited
onMouseLeave():void
A method you can override to hook into the mouse leve event.
BaseView
 Inherited
Override this method to hook into the removed from stage event.
BaseView
 Inherited
onResize():void
Override this method to hook into resize events from the stage.
BaseView
 Inherited
Override this method, and remove events from objects that were registered with the event manager.
BaseView
 Inherited
Override this and remove key event mappings with the keyboard event manager.
BaseFormView
 Inherited
selectField():void
Override this and do some select/focus logic for the form field.
BaseFormView
 Inherited
Shows the cancel button, (sets visible to true), override to use something other than visible.
BaseFormView
 Inherited
Shows the confirm button, (sets visible to true), override to use something other than visible.
BaseFormView
 Inherited
Shows the delete button, (sets visible to true), override to use something other than visible.
BaseFormView
 Inherited
showNoButton():void
Shows the no button, (sets visible to true), override to use something other than visible.
BaseFormView
 Inherited
showOKButton():void
Shows the ok button, (sets visible to true), override to use something other than visible.
BaseFormView
 Inherited
Shows the yes button, (sets visible to true), override to use something other than visible.
BaseFormView
 Inherited
Override this method, and disable a modal blocker.
BaseFormView
 Inherited
validate():Boolean
Override this and do some form validation.
BaseFormView
Public Constants
 ConstantDefined by
 InheritedCANCEL_BTN : int = 1
[static] The byte place to turn on the cancel button.
BaseFormView
 InheritedCONFIRM_BTN : int = 4
[static] The byte place to turn on the confirm button.
BaseFormView
 InheritedDELETE_BTN : int = 32
[static] The byte place to turn on the delete button.
BaseFormView
 InheritedNO_BTN : int = 16
[static] The byte place to turn on the no button.
BaseFormView
 InheritedOK_BTN : int = 2
[static] The byte place to turn on the ok button.
BaseFormView
 InheritedYES_BTN : int = 8
[static] The byte place to turn on the yes button.
BaseFormView
Property detail
errorFieldproperty
public var errorField:TextField

An error message text field.

messageproperty 
message:String  [write-only]

Set an error message.

Implementation
    public function set message(value:String):void
Constructor detail
BaseErrorView()constructor
public function BaseErrorView()

Constructor for BaseErrorView instances.

Method detail
showAndHide()method
public function showAndHide(autoHideTimeout:int = 2000):void

This is an alternative to the default method (show), which autoHide's this error view, after a specified amount of time.

Parameters
autoHideTimeout:int (default = 2000) — The time the error view is shown before it auto hides.