info.magnolia.ui.framework.app
Class DefaultAppView

java.lang.Object
  extended by info.magnolia.ui.framework.app.DefaultAppView
All Implemented Interfaces:
AppView, View, Serializable

public class DefaultAppView
extends Object
implements AppView

View used to give all apps a uniform look-and-feel.

See Also:
AppView, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.ui.api.app.AppView
AppView.Listener
 
Constructor Summary
DefaultAppView()
           
 
Method Summary
 String addSubAppView(View view, String caption, boolean closable)
           
 MagnoliaTabSheet asVaadinComponent()
          Returns the Vaadin component managed by this view.
 void closeSubAppView(String instanceId)
           
 String getActiveSubAppView()
           
 View getSubAppViewContainer(String instanceId)
          Get the view of the container of a SubApp.
 void setActiveSubAppView(String instanceId)
           
 void setAppLogo(String logo, String bgcolor)
           
 void setAppName(String name)
           
 void setListener(AppView.Listener listener)
           
 void setTheme(String themeName)
           
 void updateCaption(String instanceId, String caption)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAppView

public DefaultAppView()
Method Detail

addSubAppView

public String addSubAppView(View view,
                            String caption,
                            boolean closable)
Specified by:
addSubAppView in interface AppView

setActiveSubAppView

public void setActiveSubAppView(String instanceId)
Specified by:
setActiveSubAppView in interface AppView

getActiveSubAppView

public String getActiveSubAppView()
Specified by:
getActiveSubAppView in interface AppView

updateCaption

public void updateCaption(String instanceId,
                          String caption)
Specified by:
updateCaption in interface AppView

setTheme

public void setTheme(String themeName)
Specified by:
setTheme in interface AppView

setListener

public void setListener(AppView.Listener listener)
Specified by:
setListener in interface AppView

asVaadinComponent

public MagnoliaTabSheet asVaadinComponent()
Description copied from interface: View
Returns the Vaadin component managed by this view.

Specified by:
asVaadinComponent in interface View

getSubAppViewContainer

public View getSubAppViewContainer(String instanceId)
Description copied from interface: AppView
Get the view of the container of a SubApp. Enables working with the Tab component for example, which is necessary for attaching dialogs.

Specified by:
getSubAppViewContainer in interface AppView

closeSubAppView

public void closeSubAppView(String instanceId)
Specified by:
closeSubAppView in interface AppView

setAppLogo

public void setAppLogo(String logo,
                       String bgcolor)
Specified by:
setAppLogo in interface AppView

setAppName

public void setAppName(String name)
Specified by:
setAppName in interface AppView


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