| Package | com.soma.interfaces |
| Interface | public interface IMenu |
| Implementors | Menu |
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
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:
A menu class that will be used by Soma must extend com.soma.view.Menu and implements IMenu.
The only requirement is an openMenu method that will be called by the PageManager in some case (for example a URL change).
The id parameter received is the id attribute of an XML page node, you can use this id to update the state of your custom menu class.
When a menu class is registered in the Config file, the openMenu method can also be called using a Soma command:
new MenuEvent(MenuEvent.OPEN_MENU, "myPageID").dispatch();
See also
| Method | Defined by | ||
|---|---|---|---|
|
openMenu(id:String):void
Called by the PageManager or the MenuEvent.OPEN_MENU command to update a menu state.
| IMenu | ||