info.magnolia.ui.api.app
Interface AppView

All Superinterfaces:
Serializable, View
All Known Implementing Classes:
DefaultAppView

public interface AppView
extends View

AppView interface used for displaying apps and adding and removing the subApp views. Creates an instance id when adding a new subApp view. This is used to identify the view associated with a SubAppContext.


Nested Class Summary
static interface AppView.Listener
          Listens to events coming from the TabSheet.
 
Method Summary
 String addSubAppView(View view, String caption, boolean closable)
           
 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 value)
           
 void updateCaption(String instanceId, String caption)
           
 
Methods inherited from interface info.magnolia.ui.api.view.View
asVaadinComponent
 

Method Detail

updateCaption

void updateCaption(String instanceId,
                   String caption)

setTheme

void setTheme(String value)

setAppLogo

void setAppLogo(String logo,
                String bgcolor)

setAppName

void setAppName(String name)

setListener

void setListener(AppView.Listener listener)

addSubAppView

String addSubAppView(View view,
                     String caption,
                     boolean closable)

closeSubAppView

void closeSubAppView(String instanceId)

setActiveSubAppView

void setActiveSubAppView(String instanceId)

getActiveSubAppView

String getActiveSubAppView()

getSubAppViewContainer

View getSubAppViewContainer(String instanceId)
Get the view of the container of a SubApp. Enables working with the Tab component for example, which is necessary for attaching dialogs.



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