info.magnolia.ui.framework.context
Class AbstractUIContext

java.lang.Object
  extended by info.magnolia.ui.framework.context.AbstractUIContext
All Implemented Interfaces:
UiContext, OverlayLayer
Direct Known Subclasses:
AppInstanceControllerImpl, ShellImpl, SubAppContextImpl

public abstract class AbstractUIContext
extends Object
implements UiContext

Abstract basic implementation of UiContext. Delegates method calls to OverlayPresenter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.ui.api.overlay.OverlayLayer
OverlayLayer.ModalityDomain, OverlayLayer.ModalityLevel
 
Constructor Summary
AbstractUIContext()
           
 
Method Summary
protected abstract  OverlayPresenter initializeOverlayPresenter()
           
 void openAlert(MessageStyleType type, String title, String body, String confirmButtonText, AlertCallback cb)
          Alert dialog is a dialog where user is given a message and confirm button no chance to cancel.
 void openAlert(MessageStyleType type, View viewToShow, String confirmButtonText, AlertCallback cb)
          Alert dialog is a dialog where user is given a message and confirm button no chance to cancel.
 void openConfirmation(MessageStyleType type, String title, String body, String confirmButtonText, String cancelButtonText, boolean cancelIsDefault, ConfirmationCallback cb)
          Confirmation dialog is a dialog where user is presented a message and chance to confirm or to cancel.
 void openConfirmation(MessageStyleType type, View viewToShow, String confirmButtonText, String cancelButtonText, boolean cancelIsDefault, ConfirmationCallback cb)
          Confirmation dialog is a dialog where user is presented a message and chance to confirm or to cancel.
 void openNotification(MessageStyleType type, boolean doesTimeout, String title)
          Notification indicator is a message banner that only shows a message to user.
 void openNotification(MessageStyleType type, boolean doesTimeout, String title, String linkText, NotificationCallback cb)
          Notification indicator is a message banner that only shows a message to user.
 void openNotification(MessageStyleType type, boolean doesTimeout, View viewToShow)
          Notification indicator is a message banner that only shows a message to user.
 OverlayCloser openOverlay(View view)
          Open an Overlay on top of the OverlayLayer implementer.
 OverlayCloser openOverlay(View view, OverlayLayer.ModalityLevel modalityLevel)
          Open an Overlay on top of the OverlayLayer implementer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUIContext

public AbstractUIContext()
Method Detail

initializeOverlayPresenter

protected abstract OverlayPresenter initializeOverlayPresenter()

openOverlay

public OverlayCloser openOverlay(View view)
Description copied from interface: OverlayLayer
Open an Overlay on top of the OverlayLayer implementer.

Specified by:
openOverlay in interface OverlayLayer
Parameters:
view - View of the component to be displayed modally.

openOverlay

public OverlayCloser openOverlay(View view,
                                 OverlayLayer.ModalityLevel modalityLevel)
Description copied from interface: OverlayLayer
Open an Overlay on top of the OverlayLayer implementer.

Specified by:
openOverlay in interface OverlayLayer
modalityLevel - Modality level

openAlert

public void openAlert(MessageStyleType type,
                      View viewToShow,
                      String confirmButtonText,
                      AlertCallback cb)
Description copied from interface: OverlayLayer
Alert dialog is a dialog where user is given a message and confirm button no chance to cancel. AlertCallback is invoked on confirm. This method takes content of this dialog as a caller defined View.

Specified by:
openAlert in interface OverlayLayer

openAlert

public void openAlert(MessageStyleType type,
                      String title,
                      String body,
                      String confirmButtonText,
                      AlertCallback cb)
Description copied from interface: OverlayLayer
Alert dialog is a dialog where user is given a message and confirm button no chance to cancel. AlertCallback is invoked on confirm. This method takes the content as a string.

Specified by:
openAlert in interface OverlayLayer

openConfirmation

public void openConfirmation(MessageStyleType type,
                             View viewToShow,
                             String confirmButtonText,
                             String cancelButtonText,
                             boolean cancelIsDefault,
                             ConfirmationCallback cb)
Description copied from interface: OverlayLayer
Confirmation dialog is a dialog where user is presented a message and chance to confirm or to cancel. ConfirmationCallback is invoked on user action. This method takes content of this dialog as a caller defined View.

Specified by:
openConfirmation in interface OverlayLayer

openConfirmation

public void openConfirmation(MessageStyleType type,
                             String title,
                             String body,
                             String confirmButtonText,
                             String cancelButtonText,
                             boolean cancelIsDefault,
                             ConfirmationCallback cb)
Description copied from interface: OverlayLayer
Confirmation dialog is a dialog where user is presented a message and chance to confirm or to cancel. ConfirmationCallback is invoked on user action. This method takes the content as a string.

Specified by:
openConfirmation in interface OverlayLayer

openNotification

public void openNotification(MessageStyleType type,
                             boolean doesTimeout,
                             View viewToShow)
Description copied from interface: OverlayLayer
Notification indicator is a message banner that only shows a message to user. Message is shown until user clicks close button or timeout expires.

Specified by:
openNotification in interface OverlayLayer
viewToShow - Content to show as View.

openNotification

public void openNotification(MessageStyleType type,
                             boolean doesTimeout,
                             String title)
Description copied from interface: OverlayLayer
Notification indicator is a message banner that only shows a message to user. Message is shown until user clicks close button or timeout expires.

Specified by:
openNotification in interface OverlayLayer
title - Content to show as string.

openNotification

public void openNotification(MessageStyleType type,
                             boolean doesTimeout,
                             String title,
                             String linkText,
                             NotificationCallback cb)
Description copied from interface: OverlayLayer
Notification indicator is a message banner that only shows a message to user. Message is shown until user clicks close button or timeout expires.

Specified by:
openNotification in interface OverlayLayer
title - Content to show as string.
linkText - Text to show in a link button.
cb - Callback for when user clicks on link.


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