Packagecom.soma.commands
Classpublic class PageCommand
ImplementsICommand

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:
PageCommand is executed by the SomaController instance and can be used to command the PageManager instance to display a page.

Some commands are internally used in the PageManager and shouldn't be used by the user.

Here is the command to show a page, the parameter should the ID of the page (id attribute in the XML Site Definition):

new PageEvent(PageEvent.SHOW, "myPageID").dispatch();


The command to show an external page is:

new PageEvent(PageEvent.SHOW_EXTERNAL_LINK, null, "http://www.soundstep.com/").dispatch();
new PageEvent(PageEvent.SHOW_EXTERNAL_LINK, myPage.@id, myPage.@externalLink).dispatch();

See also

Soma
PageEvent
PageManager


Public Methods
 MethodDefined by
  
Creates a PageCommand instance
PageCommand
  
execute(event:CairngormEvent):void
Executes a command.
PageCommand
Constructor detail
PageCommand()constructor
public function PageCommand()

Creates a PageCommand instance

Method detail
execute()method
public function execute(event:CairngormEvent):void

Executes a command.

Parameters
event:CairngormEvent — Cairngorm event.