# com.bea.ide.control
IDesignView Interface

public interface IDesignView
extends `IDocumentView`

All Superinterfaces
  `ICookieSupport`, `IDocumentView`, `IDriverSupport`, `IPropertySupport`

## Field Summary

`public static final `String`` | `VIEW_NAME` Name for this view.

Fields from interface com.bea.ide.document`.`IDocumentView``
``PROP_SelectedElement`, `SOURCE_VIEW``

## Method Summary

`public boolean` | `isCollapsed`(`IElement` element) Determine if the given element is currently collapsed.
`public boolean` | `needsRename`(`IElement` element) Determine if the element is going to be renamed.
`public void` | `setAllCollapsed`(boolean collapse) Set the collapsed state of all collapsible items.
`public void` | `setCollapsed`(`IElement` element, boolean collapse) Specify that the given element should be collapsed in the designview.
`public void` | `setNeedsRename`(`IElement` element, boolean rename) Specify that the element is new and the designview should ask the user to rename it.

Methods from interface `com.bea.ide.core.`ICookieSupport``
``addCookie`, `getCookie`, `removeCookie``

Methods from interface `com.bea.ide.document.`IDocumentView``
``getDocument`, `getDocumentElement`, `getNavigationPoint`, `onActivate`, `onClose`, `onDeactivate`, `requestViewFocus`, `setCurrentPoint``

Methods from interface `com.bea.ide.core.`IDriverSupport``
``getDriver``

Methods from interface `com.bea.ide.core.`IPropertySupport``
``addPropertyChangeListener`, `addPropertyChangeListener`, `getProperty`, `removePropertyChangeListener`, `removePropertyChangeListener`, `setProperty``

## Field Detail

### VIEW_NAME

    public static final String VIEW_NAME

  Name for this view.

## Method Detail

### isCollapsed(IElement) Method

    public boolean isCollapsed(IElement element)

Determine if the given element is currently collapsed.

#### Parameters

element
  The element to query.

#### Returns

true if the drawing for this element is collapsed.

### needsRename(IElement) Method

    public boolean needsRename(IElement element)

Determine if the element is going to be renamed.

#### Parameters

element
  The element whose status is being queried.

#### Returns

true if this method is flagged as needing a rename.

### setAllCollapsed(boolean) Method

    public void setAllCollapsed(boolean collapse)

Set the collapsed state of all collapsible items.

#### Parameters

collapse
  True to collapse all, false to expand all.

### setCollapsed(IElement, boolean) Method

    public void setCollapsed(IElement element,
                             boolean collapse)

Specify that the given element should be collapsed in the designview.

#### Parameters

element
  The element whose representation should be collapsed.

collapse
  True to collapse, false to expand.

### setNeedsRename(IElement, boolean) Method

    public void setNeedsRename(IElement element,
                               boolean rename)

Specify that the element is new and the designview should ask the user to rename it.

#### Parameters

element
  The element which should be renamed.

rename
  Whether or not to rename the method at first chance.