Packagecom.soma.model
Classpublic class MenuContext

Author: Romuald Quantin - www.soundstep.com

Information:
Blog page - SomaUI
How does it work - Soma Protest
Project Host - Google Code
Documentation - Soma ASDOC
Class version: 2.0
Actionscript version: 3.0

Copyright:

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/

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 Soma.
The Initial Developer of the Original Code is Romuald Quantin.
Initial Developer are Copyright (C) 2008-2009 Soundstep. All Rights Reserved.

Usage:
The MenuContext class is a Singleton that is creating the right-click menu. The menu is built with the first level of pages from the XML Site Definition.

The process can be disabled by setting the static variable MenuContext.CONTEXTUAL_MENU_ENABLED to false before Soma starts.

See also

Soma


Public Properties
 PropertyDefined by
  CONTEXTUAL_MENU_ENABLED : Boolean = true
[static] Enable or disable the process to build the contextual menu (must be set before Soma starts).
MenuContext
Public Methods
 MethodDefined by
  
MenuContext is not meant to be accessed or instantiated.
MenuContext
  
start():void
[static] Build the contextual menu.
MenuContext
Property detail
CONTEXTUAL_MENU_ENABLEDproperty
public static var CONTEXTUAL_MENU_ENABLED:Boolean = true

Enable or disable the process to build the contextual menu (must be set before Soma starts).

Constructor detail
MenuContext()constructor
public function MenuContext()

MenuContext is not meant to be accessed or instantiated.

Method detail
start()method
public static function start():void

Build the contextual menu.