org.springframework.richclient.application.support
Class DefaultApplicationPage
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.factory.AbstractControlFactory
org.springframework.richclient.application.support.AbstractApplicationPage
org.springframework.richclient.application.support.DefaultApplicationPage
- All Implemented Interfaces:
- ApplicationPage, PageLayoutBuilder, ControlFactory
public class DefaultApplicationPage
- extends AbstractApplicationPage
- implements PageLayoutBuilder
Provides a standard implementation of ApplicationPage
Methods inherited from class org.springframework.richclient.application.support.AbstractApplicationPage |
addPageComponent, addPageComponentListener, close, close, closeAllEditors, createPageComponent, createPageComponentPane, findPageComponent, fireClosed, fireFocusGained, fireFocusLost, fireOpened, getActiveComponent, getApplicationEventMulticaster, getId, getPageComponents, getPageDescriptor, getViewDescriptor, getWindow, openEditor, removePageComponentListener, setActiveComponent, setActiveComponent, setApplicationWindow, setDescriptor, showView, showView, updatePageComponentProperties |
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultApplicationPage
public DefaultApplicationPage()
DefaultApplicationPage
public DefaultApplicationPage(ApplicationWindow window,
PageDescriptor pageDescriptor)
addView
public void addView(String viewDescriptorId)
- Specified by:
addView
in interface PageLayoutBuilder
doAddPageComponent
protected void doAddPageComponent(PageComponent pageComponent)
- Description copied from class:
AbstractApplicationPage
- This method must add the given
PageComponent
in the ui.
Implementors may choose to add the PageComponent
's
control directly, or add the PageComponentPane
's control.
- Specified by:
doAddPageComponent
in class AbstractApplicationPage
- Parameters:
pageComponent
- the PageComponent
to add
doRemovePageComponent
protected void doRemovePageComponent(PageComponent pageComponent)
- This method must remove the given
PageComponent
from the
ui.
Only one pageComponent is shown at a time, so if it's the active one,
remove all components from this page.
- Specified by:
doRemovePageComponent
in class AbstractApplicationPage
- Parameters:
pageComponent
- the PageComponent
to remove
giveFocusTo
protected boolean giveFocusTo(PageComponent pageComponent)
- Description copied from class:
AbstractApplicationPage
- This method must transfer the focus to the given
PageComponent
. This could involve making an internal
frame visible, selecting a tab in a tabbed pane, ...
- Specified by:
giveFocusTo
in class AbstractApplicationPage
- Parameters:
pageComponent
- the PageComponent
- Returns:
true
if the operation was successful,
false
otherwise
createControl
protected JComponent createControl()
- Description copied from class:
AbstractControlFactory
- Subclasses must override this method to create a new instance of the
control that this factory produces.
- Specified by:
createControl
in class AbstractControlFactory
- Returns:
- The newly created control, never null.
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.