org.springframework.richclient.application.support
Class DefaultViewContext
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultViewContext
public DefaultViewContext(ApplicationPage page,
PageComponentPane pane)
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 idexecutor
- the local handler
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.