mx.core.UIObject |
org.silex.core.Deeplink |
This class handles the deeplinks : when to change the deeplink through javascript and when to open pages corresponding to the html deeplink value. In the repository : /trunk/core/Deeplink.as
1
Alexandre Hoyau
| org. | This class handles the deeplinks : when to change the deeplink through javascript and when to open pages corresponding to the html deeplink value. |
| Variables | |
| silex_ptr | Reference to silex main Api object (org.silex.core.Api). |
| deeplink_array | Array corresponding to the path of the currently displayed page. |
| Properties | |
| currentPath | String corresponding to the path of the currently displayed page or the page which is openning. |
| currentPath | |
| Variables | |
| currentHashValue | Reflects the hash value, i.e. |
| currentPageTitle | Reflects the html page title. |
| Functions | |
| Deeplink | Constructor. |
| checkHash | Check if javascript’s url hash need to be updated. |
| setHash | Update javascript and silex currentHashValue. |
| changeWebsite | Change the current website name. |
| getCurrentPath | Build the current path from the opened pages. |
| getLayoutPath | Parse the org.silex.core.Layout objects until a specific layout. |
| applyPath | Build the deeplink array with the section names that need to be applied (remove those which are already opened). |
| doApplyPath | Check if a deeplink has to be reached and reset deeplink_array if we reachd the target. |
function Deeplink( api: org.silex.core.Api, initialPath: String, initialPageTitle: String )
Constructor.
| param | api reference to silex main Api object (org.silex.core.Api) |
| param | initialPath string corresponding to the path of the page to be displayed at start |
| param | initialPageTitle string corresponding to the title of the page to be displayed at start |
Reference to silex main Api object (org.silex.core.Api).
private var silex_ptr: org.silex.core.Api
Array corresponding to the path of the currently displayed page.
var deeplink_array: Array
String corresponding to the path of the currently displayed page or the page which is openning.
function get currentPath():String
Reflects the hash value, i.e.
var currentHashValue: String
Reflects the html page title.
var currentPageTitle: String
Constructor.
function Deeplink( api: org.silex.core.Api, initialPath: String, initialPageTitle: String )
Check if javascript’s url hash need to be updated.
function checkHash()
Update javascript and silex currentHashValue.
function setHash( newHashValue )
Change the current website name.
function changeWebsite( id_site: String )
Build the current path from the opened pages.
function getCurrentPath():Array
Parse the org.silex.core.Layout objects until a specific layout.
function getLayoutPath( targetLayout_ptr: org.silex.core.Layout ):Array
Build the deeplink array with the section names that need to be applied (remove those which are already opened).
function applyPath( path_str: String )
Check if a deeplink has to be reached and reset deeplink_array if we reachd the target.
function doApplyPath():Boolean