/*----------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (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.mozilla.org/MPL/MPL-1.1.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is Fever Framework code. The Initial Developer of the Original Code is Romain Ecarnot. Portions created by Initial Developer are Copyright (C) 2006 the Initial Developer. All Rights Reserved. Contributor(s): 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. -----------------------------------------------------------------------------*/ import com.bourre.events.EventType; import fever.app.menu.FvContextMenu; import fever.app.menu.FvContextMenuEvent; import fever.app.menu.FvContextMenuItem; /** * Event structure for {@link fever.app.menu.FvContextMenu} broadcasted * throw a {@link fvaswing.cells.FvAbstractContextMenuCell} cell. * * @see fever.events.AbstractEvent * @see fever.app.menu.FvContextMenu * @see fever.app.menu.FvContextMenuItem * * @author Romain Ecarnot */ class fvaswing.cells.FvContextMenuCellEvent extends FvContextMenuEvent { //------------------------------------------------------------------------- // Events definition //------------------------------------------------------------------------- /** * Triggered when user click on context menu item over a cell. */ public static var onContextCellItemEVENT : EventType = new EventType( "onContextCellItem" ); /** * Triggered when user right-click over a cell to display the associated * contextual menu. */ public static var onContextCellMenuEVENT : EventType = new EventType( "onContextCellMenu" ); //------------------------------------------------------------------------- // Public API //------------------------------------------------------------------------- /** * Creates an event object that contains information about context menu * events. */ public function FvContextMenuCellEvent( type : EventType, source : FvContextMenu, item : FvContextMenuItem ) { super( type, source, item ); } /** * Creates a copy of the FvContextMenuCellEvent instance. * * @return {@link FvContextMenuCellEvent} instance */ public function clone() : FvContextMenuCellEvent { return new FvContextMenuCellEvent( _e, _oT, _menuItem ); } }