blob: 68b252819c89ff7ac0dbfba5ed3355b29c421cb9 [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.html.common.beads.models
{
import org.apache.flex.core.IAlertModel;
import org.apache.flex.core.IBead;
import org.apache.flex.core.IStrand;
import org.apache.flex.events.Event;
import org.apache.flex.events.EventDispatcher;
public class AlertModel extends EventDispatcher implements IAlertModel, IBead
{
public function AlertModel()
{
super();
}
private var _strand:IStrand;
public function set strand(value:IStrand):void
{
_strand = value;
}
private var _title:String;
public function get title():String
{
return _title;
}
public function set title(value:String):void
{
if( value != _title ) {
_title = value;
dispatchEvent( new Event("titleChange") );
}
}
private var _htmlTitle:String;
public function get htmlTitle():String
{
return _htmlTitle;
}
public function set htmlTitle(value:String):void
{
if( value != _htmlTitle ) {
_htmlTitle = value;
dispatchEvent( new Event("htmlTitleChange") );
}
}
private var _message:String;
public function get message():String
{
return _message;
}
public function set message(value:String):void
{
if( value != _message ) {
_message = value;
dispatchEvent( new Event("messageChange") );
}
}
private var _htmlMessage:String;
public function get htmlMessage():String
{
return _htmlMessage;
}
public function set htmlMessage(value:String):void
{
if( value != _htmlMessage )
{
_htmlMessage = value;
dispatchEvent( new Event("htmlMessageChange") );
}
}
private var _flags:uint;
public function get flags():uint
{
return _flags;
}
public function set flags(value:uint):void
{
if( value != _flags )
{
_flags = value;
dispatchEvent( new Event("flagsChange") );
}
}
private var _okLabel:String = "OK";
public function get okLabel():String
{
return _okLabel;
}
public function set okLabel(value:String):void
{
if( value != _okLabel )
{
_okLabel = value;
dispatchEvent( new Event("okLabelChange") );
}
}
private var _cancelLabel:String = "Cancel";
public function get cancelLabel():String
{
return _cancelLabel;
}
public function set cancelLabel(value:String):void
{
if( value != _cancelLabel )
{
_cancelLabel = value;
dispatchEvent( new Event("cancelLabelChange") );
}
}
private var _yesLabel:String = "YES";
public function get yesLabel():String
{
return _yesLabel;
}
public function set yesLabel(value:String):void
{
if( value != _yesLabel )
{
_yesLabel = value;
dispatchEvent( new Event("yesLabelChange") );
}
}
private var _noLabel:String = "NO";
public function get noLabel():String
{
return _noLabel;
}
public function set noLabel(value:String):void
{
if( value != _noLabel )
{
_noLabel = value;
dispatchEvent( new Event("noLabelChange") );
}
}
}
}