package com.onaro.sanscreen.client.view; import com.onaro.client.leekui.jface.operation.IRunnableContext; import com.onaro.sanscreen.client.MessageManager; import com.onaro.sanscreen.server.interfaces.data.Context; public interface IViewDirectorSite { /** * Get the parent site, if any. Can be used to get the site of * a {@link CompositeDirector} or {@link CardViewDirector} from * a child view. * * @return parent site */ public IViewDirectorSite getParentSite(); public IRunnableContext getRunnableContext(); public void setDisplayedContext(Context displayedContext); /** * Get the {@link MessageManager}, if any, used to display status for the view. * @return the MessageManager or {@code null} if there is no MessageManager * (for example, because the view is in dialog that doesn't have a status bar). */ public MessageManager getMessageManager(); /** * Indicates if the view should always be open, with no close button. * @return {@code true} if view should always be open, {@code false} if view should have a close button */ public boolean isViewAlwaysOpen(); }