/*
Copyright (c) 2009 Yahoo! Inc. All rights reserved.
The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license
*/
package com.yahoo.astra.events {
import flash.events.Event;
/**
* Events definitions for Form
and FormItem
.
*
* @author kayoh
*/
public class FormLayoutEvent extends Event {
//--------------------------------------------------------------------------
//
// Constants
//
//--------------------------------------------------------------------------
/**
* Defines the value of the type
property of a
* formBuildFinished
event object.
* @eventType formBuildFinished
*/
public static const FORM_BUILD_FINISHED : String = "formBuildFinished";
/**
* The FormLayoutEvent.UPDATE_GOT_REQUIRED_ITEM
constant defines the property type of update
methods.
*
* @eventType updateGotRequiredItem
*/
public static const UPDATE_GOT_REQUIRED_ITEM : String = "updateGotRequiredItem";
/**
* The FormLayoutEvent.UPDATE_LABEL_FONT_CHG
constant defines the property type of update
methods.
*
* @eventType updateLabelFont
*/
public static const UPDATE_LABEL_FONT_CHANGE : String = "updateLabelFont";
/**
* The FormLayoutEvent.UPDATE_INSTRUCTION_FONT_CHG
constant defines the property type of update
methods.
*
* @eventType updateInstructionFont
*/
public static const UPDATE_INSTRUCTION_FONT_CHANGE : String = "updateInstructionFont";
/**
* The FormLayoutEvent.UPDATE_ERROR_MSG_TEXT
constant defines the property type of update
methods.
*
* @eventType updateErrorMsgText
*/
public static const UPDATE_ERROR_MSG_TEXT : String = "updateErrorMsgText";
/**
* The FormLayoutEvent.UPDATE_ERROR_MSG_BOX
constant defines the property type of update
methods.
*
* @eventType updateErrorMsgBox
*/
public static const UPDATE_ERROR_MSG_BOX : String = "updateErrorMsgBox";
/**
* The FormLayoutEvent.UPDATE_HORIZONTAL_GAP
constant defines the property type of update
methods.
*
* @eventType updateHorizontalGap
*/
public static const UPDATE_HORIZONTAL_GAP : String = "updateHorizontalGap";
/**
* The FormLayoutEvent.UPDATE_ITEM_HORIZONTAL_GAP
constant defines the property type of update
methods.
*
* @eventType updateItemHorizontalGap
*/
public static const UPDATE_ITEM_HORIZONTAL_GAP : String = "updateItemHorizontalGap";
/**
* The FormLayoutEvent.UPDATE_ITEM_VERTICAL_GAP
constant defines the property type of update
methods.
*
* @eventType updateItemVeticalGap
*/
public static const UPDATE_ITEM_VERTICAL_GAP : String = "updateItemVeticalGap";
/**
* The FormLayoutEvent.UPDATE_LABEL_ALIGN
constant defines the property type of update
methods.
*
* @eventType updateLableAlign
*/
public static const UPDATE_LABEL_ALIGN : String = "updateLableAlign";
/**
* The FormLayoutEvent.UPDATE_REQUIRED_ITEM
constant defines the property type of update
methods.
*
* @eventType updateRequiredItem
*/
public static const UPDATE_REQUIRED_ITEM : String = "updateRequiredItem";
/**
* The FormLayoutEvent.UPDATE_INDICATOR_LOCATION
constant defines the property type of update
methods.
*
* @eventType updateIndicatiorLocation
*/
public static const UPDATE_INDICATOR_LOCATION : String = "updateIndicatiorLocation";
/**
* The FormLayoutEvent.UPDATE_LABEL_WIDTH
constant defines the property type of update
methods.
*
* @eventType updateLabelWidth
*/
public static const UPDATE_LABEL_WIDTH : String = "updateLabelWidth";
/**
* The FormLayoutEvent.UPDATED_PADDING_RIGHT
constant defines the property type of update
methods.
*
* @eventType updatePaddingRight
*/
public static const UPDATED_PADDING_RIGHT : String = "updatePaddingRight";
/**
* Defines the value of the type
property of a
* labelAdded
event object.
*
* @eventType labelAdded
*/
public static const LABEL_ADDED : String = "labelAdded";
/**
* Defines the value of the type
property of a
* indicatorSizeChange
event object.
*
* @eventType indicatorSizeChange
*/
public static const INDICATOR_SIZE_CHAGE : String = "indicatorSizeChange";
//--------------------------------------------------------------------------
//
// Constructor
//
//--------------------------------------------------------------------------
/**
* Constructor.
*
* @param type The event type; indicates the action that caused the event.
*
* @param bubbles Specifies whether the event can bubble up the display list hierarchy.
*
* @param cancelable Specifies whether the behavior associated with the event can be prevented.
*
*/
public function FormLayoutEvent(type : String, bubbles : Boolean = false, cancelable : Boolean = false) {
super(type, bubbles, cancelable);
}
/**
* @private
*/
override public function clone() : Event {
return new FormLayoutEvent(this.type, this.bubbles, this.cancelable);
}
}
}