blob: 17273c58aebac6cfa348ad0593d12d694a44cccd [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.dynamicControls
{
import org.apache.flex.core.IComboBoxModel;
import org.apache.flex.core.UIBase;
[Event(name="change", type="org.apache.flex.events.Event")]
public class ComboBox extends UIBase
{
public function ComboBox()
{
super();
}
public function get dataProvider():Object
{
return IComboBoxModel(model).dataProvider;
}
public function set dataProvider(value:Object):void
{
IComboBoxModel(model).dataProvider = value;
}
public function get selectedIndex():int
{
return IComboBoxModel(model).selectedIndex;
}
public function set selectedIndex(value:int):void
{
IComboBoxModel(model).selectedIndex = value;
}
public function get selectedItem():Object
{
return IComboBoxModel(model).selectedItem;
}
public function set selectedItem(value:Object):void
{
IComboBoxModel(model).selectedItem = value;
}
}
}