/*
 * Copyright 2002-2006 the original author or authors.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.springframework.richclient.application;

import org.springframework.richclient.factory.ControlFactory;

/**
 * An <code>ApplicationPage</code> is a container for <code>PageComponent</code>s.
 */
public interface ApplicationPage extends ControlFactory {
    String getId();

    ApplicationWindow getWindow();

    void addPageComponentListener(PageComponentListener listener);

    void removePageComponentListener(PageComponentListener listener);

    PageComponent getActiveComponent();

    void setActiveComponent(PageComponent pageComponent);

    void showView(String viewDescriptorId);

    void showView(ViewDescriptor viewDescriptor);

    void openEditor(Object editorInput);

    boolean closeAllEditors();

    boolean close();
    
    boolean close(PageComponent pageComponent);
}
@@ -665,16 +665,39 @@
 ation;%0A%0A
+import java.util.Set;%0A%0A
 import o
@@ -1440,9 +1440,171 @@
 onent);%0A
+%0A    /**%0A     * Returns the Set of %7B@link PageComponent%7Ds on this ApplicationPage%0A     * @return the page components%0A     */%0A    public Set getPageComponents();%0A%0A
 %7D

add getPageComponents() method to ApplicationPage interface