| Package | net.guttershark.display |
| Class | public class BaseErrorView |
| Inheritance | BaseErrorView BaseFormView BaseView CoreClip flash.display.MovieClip |
| Property | Defined by | ||
|---|---|---|---|
![]() | cancelButton : MovieClip
A cancel button.
| BaseFormView | |
![]() | confirmButton : MovieClip
A confirm button.
| BaseFormView | |
![]() | controller : *
A controller for this view.
| BaseView | |
![]() | deleteButton : MovieClip
A delete button.
| BaseFormView | |
| errorField : TextField
An error message text field.
| BaseErrorView | ||
![]() | errorViews : MovieClip
A container for BaseErrorView's to show and hide
during validation.
| BaseFormView | |
| message : String [write-only]
Set an error message.
| BaseErrorView | ||
![]() | noButton : MovieClip
A no button.
| BaseFormView | |
![]() | okButton : MovieClip
An ok button.
| BaseFormView | |
![]() | onCancel : Function
A function delegate you should use and call
when the user cancels the form operation and
any validation has passed.
| BaseFormView | |
![]() | onConfirm : Function
A function delegate you should use and call
when the user confirms the form operation and
any validation has passed.
| BaseFormView | |
![]() | onDelete : Function
A function delegate you should use and call
when the user agrees to delete (something) and
any validation has passed.
| BaseFormView | |
![]() | onNo : Function
A function delegate you should use and call
when the user declines the form operation and
any validation has passed.
| BaseFormView | |
![]() | onOK : Function
A function delegate you should use and
call when the user ok's a form operatoin
and any validation has passed.
| BaseFormView | |
![]() | onYes : Function
A function delegate you should use and call
when the user agrees to the form operation and
any validation has passed.
| BaseFormView | |
![]() | yesButton : MovieClip
A yes button.
| BaseFormView | |
| Method | Defined by | ||
|---|---|---|---|
|
Constructor for BaseErrorView instances.
| BaseErrorView | ||
![]() |
dispose():void
Override this method and write your own dispose logic.
| BaseView | |
![]() |
hide():void
Hide this form view - this calls removeKeyMappings()
and deselectField().
| BaseFormView | |
![]() |
hideButtons():void
Hide's any form buttons that are currently visible.
| BaseFormView | |
![]() |
onConfirmClick():void
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 | |
![]() |
onDeleteClick():void
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 | |
![]() |
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 | |
![]() |
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 | |
![]() |
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 | |
![]() |
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 | ||
![]() |
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 | |
| errorField | property |
public var errorField:TextFieldAn error message text field.
| message | property |
message:String [write-only]Set an error message.
Implementation public function set message(value:String):void
| BaseErrorView | () | constructor |
public function BaseErrorView()Constructor for BaseErrorView instances.
| showAndHide | () | method |
public function showAndHide(autoHideTimeout:int = 2000):voidThis is an alternative to the default method (show), which autoHide's this error view, after a specified amount of time.
ParametersautoHideTimeout:int (default = 2000) — The time the error view is shown before it auto hides.
|