org.springframework.richclient.application.support
Class DefaultViewContext

java.lang.Object
  extended by org.springframework.richclient.application.support.DefaultViewContext
All Implemented Interfaces:
PageComponentContext, ViewContext

public class DefaultViewContext
extends Object
implements ViewContext

Mediator between the application and the view. The application uses this class to get the view's local action handlers. The view uses this class to get information about how the view is displayed in the application (for example, on which window.)

Author:
Keith Donald

Constructor Summary
DefaultViewContext(ApplicationPage page, PageComponentPane pane)
           
 
Method Summary
 ActionCommandExecutor getLocalCommandExecutor(String commandId)
           
 ApplicationPage getPage()
           
 PageComponentPane getPane()
           
 ApplicationWindow getWindow()
           
 void register(String commandId, ActionCommandExecutor executor)
          Register a local handler for a global command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViewContext

public DefaultViewContext(ApplicationPage page,
                          PageComponentPane pane)
Method Detail

getWindow

public ApplicationWindow getWindow()
Specified by:
getWindow in interface PageComponentContext

getPage

public ApplicationPage getPage()
Specified by:
getPage in interface PageComponentContext

getPane

public PageComponentPane getPane()
Specified by:
getPane in interface PageComponentContext

getLocalCommandExecutor

public ActionCommandExecutor getLocalCommandExecutor(String commandId)
Specified by:
getLocalCommandExecutor in interface PageComponentContext

register

public void register(String commandId,
                     ActionCommandExecutor executor)
Description copied from interface: PageComponentContext
Register a local handler for a global command.

Specified by:
register in interface PageComponentContext
Parameters:
commandId - the global command id
executor - the local handler


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.