info.magnolia.ui.framework.app.embedded
Class EmbeddedPageSubApp

java.lang.Object
  extended by info.magnolia.ui.framework.app.BaseSubApp<EmbeddedPageView>
      extended by info.magnolia.ui.framework.app.embedded.EmbeddedPageSubApp
All Implemented Interfaces:
info.magnolia.ui.api.app.SubApp

public class EmbeddedPageSubApp
extends BaseSubApp<EmbeddedPageView>

Sub app for the main tab in an embedded page app.


Constructor Summary
EmbeddedPageSubApp(info.magnolia.ui.api.app.SubAppContext subAppContext, EmbeddedPageView pageView)
           
 
Method Summary
 void locationChanged(info.magnolia.ui.api.location.Location location)
          Check whether the url has changed, if so update the view to display the new location.
 EmbeddedPageView start(info.magnolia.ui.api.location.Location location)
           
protected  String updateUrl(String url)
          Add the context path to internal urls.
 
Methods inherited from class info.magnolia.ui.framework.app.BaseSubApp
getAppContext, getCaption, getCurrentLocation, getSubAppContext, getSubAppId, getView, isCloseable, onSubAppStart, onSubAppStop, stop, supportsLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedPageSubApp

@Inject
public EmbeddedPageSubApp(info.magnolia.ui.api.app.SubAppContext subAppContext,
                                 EmbeddedPageView pageView)
Method Detail

start

public EmbeddedPageView start(info.magnolia.ui.api.location.Location location)
Specified by:
start in interface info.magnolia.ui.api.app.SubApp
Overrides:
start in class BaseSubApp<EmbeddedPageView>

locationChanged

public void locationChanged(info.magnolia.ui.api.location.Location location)
Check whether the url has changed, if so update the view to display the new location.

Specified by:
locationChanged in interface info.magnolia.ui.api.app.SubApp
Overrides:
locationChanged in class BaseSubApp<EmbeddedPageView>

updateUrl

protected String updateUrl(String url)
Add the context path to internal urls.



Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.