Extension SDK

oracle.ide.layout
Class AbstractLayoutListener

java.lang.Object
  extended byoracle.ide.layout.AbstractLayoutListener
All Implemented Interfaces:
BaseLayoutListener, LayoutListener

public abstract class AbstractLayoutListener
extends java.lang.Object
implements LayoutListener

A Class class.


Constructor Summary
AbstractLayoutListener()
          Constructor
 
Method Summary
 void addOpenedViews(Layout layout, java.util.List openedList)
          Add all of our opened views to the specified opened list.
 void addView(ViewId id, View view)
           
 void close(Layout layout)
          Close the views associated with the specified layout.
static Document getDocument(java.lang.String urlProp, Layout layout)
          Get the document whose url is stored in the specified layout under the given urlProp.
static Document getDocument(java.lang.String urlProp, Layout layout, boolean always)
          Get the document whose url is stored in the specified layout under the given urlProp.
static Project getProject(java.lang.String viewId, Layout layout)
           
static java.net.URL getURL(java.lang.String urlProp, Layout layout)
          Get the url stored in the specified layout under the given urlProp.
 View getView(ViewId id)
           
static Workspace getWorkspace(java.lang.String viewId, Layout layout)
           
protected  boolean isVisible(java.lang.String viewId, Layout layout)
           
 void removeView(View view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.ide.layout.BaseLayoutListener
init, save
 

Constructor Detail

AbstractLayoutListener

public AbstractLayoutListener()
Constructor

Method Detail

close

public void close(Layout layout)
Description copied from interface: BaseLayoutListener
Close the views associated with the specified layout. This method is called by the layout management system when a layout is being deactivated.

Specified by:
close in interface BaseLayoutListener

getView

public View getView(ViewId id)
Specified by:
getView in interface LayoutListener

addView

public void addView(ViewId id,
                    View view)
Specified by:
addView in interface LayoutListener

removeView

public void removeView(View view)
Specified by:
removeView in interface LayoutListener

addOpenedViews

public void addOpenedViews(Layout layout,
                           java.util.List openedList)
Add all of our opened views to the specified opened list.

Specified by:
addOpenedViews in interface LayoutListener
Parameters:
layout - the Layout to use
openedList - the list to add our opened views to

isVisible

protected boolean isVisible(java.lang.String viewId,
                            Layout layout)

getURL

public static java.net.URL getURL(java.lang.String urlProp,
                                  Layout layout)
Get the url stored in the specified layout under the given urlProp. Use this methods only for URLs stored after being converted to their string representation using the utility class URL2String.


getDocument

public static Document getDocument(java.lang.String urlProp,
                                   Layout layout,
                                   boolean always)
Get the document whose url is stored in the specified layout under the given urlProp. If the always flag is true the method creates the Document even when the url points to a resource that does not exists.


getDocument

public static Document getDocument(java.lang.String urlProp,
                                   Layout layout)
Get the document whose url is stored in the specified layout under the given urlProp. The method creates the Document even when the url points to a document that does not exists.


getProject

public static Project getProject(java.lang.String viewId,
                                 Layout layout)

getWorkspace

public static Workspace getWorkspace(java.lang.String viewId,
                                     Layout layout)

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.