public final class MultiViewHandler extends Object
TopComponent, obtainable via
MultiViewFactory, that allows
examination of Component's content and programatic changes in visible/activated elements.| Modifier and Type | Method and Description |
|---|---|
void |
addMultiViewDescription(MultiViewDescription descr,
int position)
Adds another multiview element to an existing multiview TopComponent.
|
MultiViewPerspective[] |
getPerspectives()
Returns the array of
MultiViewPerspectives that the TopComponent is composed of. |
MultiViewPerspective |
getSelectedPerspective()
Returns the currently selected
MultiViewPerspective in the TopComponent. |
void |
removeMultiViewDescription(MultiViewDescription descr)
Removes multiview element that was added at runtime.
|
void |
requestActive(MultiViewPerspective desc)
Requests focus for the
MultiViewPerspective passed as parameter, if necessary
will switch from previously selected MultiViewPerspective |
void |
requestVisible(MultiViewPerspective desc)
Changes the visible
MultiViewPerspective to the one passed as parameter. |
public MultiViewPerspective[] getPerspectives()
MultiViewPerspectives that the TopComponent is composed of.public MultiViewPerspective getSelectedPerspective()
MultiViewPerspective in the TopComponent.
It's element can be either visible or activated.public void requestActive(MultiViewPerspective desc)
MultiViewPerspective passed as parameter, if necessary
will switch from previously selected MultiViewPerspectivedesc - the new active selectionpublic void requestVisible(MultiViewPerspective desc)
MultiViewPerspective to the one passed as parameter.desc - the new selectionpublic void addMultiViewDescription(MultiViewDescription descr, int position)
descr - The description of the element to be added.position - Position of the new element or -1 to append the element to the end.public void removeMultiViewDescription(MultiViewDescription descr)
descr - The description of the element that was previously passed to
addMultiViewDescription method.addMultiViewDescription(org.netbeans.core.spi.multiview.MultiViewDescription, int)Built on February 21 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.