| java.lang.Object org.netbeans.core.spi.multiview.MultiViewFactory
MultiViewFactory | final public class MultiViewFactory (Code) | | Factory class for creating top components handling multi views.
author: Dafe Simonek, Milos Kleint |
Field Summary | |
final public static MultiViewElement | BLANK_ELEMENT A utility singleton instance of MultiViewElement that does nothing. | final public static Action | NOOP_CLOSE_ACTION a utility noop action instance to be used when no special handling is
required in createUnsafeCloseState() method. |
BLANK_ELEMENT | final public static MultiViewElement BLANK_ELEMENT(Code) | | A utility singleton instance of MultiViewElement that does nothing.
|
NOOP_CLOSE_ACTION | final public static Action NOOP_CLOSE_ACTION(Code) | | a utility noop action instance to be used when no special handling is
required in createUnsafeCloseState() method.
|
createCloneableMultiView | public static CloneableTopComponent createCloneableMultiView(MultiViewDescription[] descriptions, MultiViewDescription defaultDesc)(Code) | | Creates and returns new instance of cloneable top component with
multi views
Parameters: descriptions - array of descriptions of tabs in the multiview. Parameters: defaultDesc - the initial selection, one of the descriptions array values. |
createCloneableMultiView | public static CloneableTopComponent createCloneableMultiView(MultiViewDescription[] descriptions, MultiViewDescription defaultDesc, CloseOperationHandler closeHandler)(Code) | | Creates and returns new instance of cloneable top component with
multi views.
Parameters: descriptions - array of descriptions of tabs in the multiview. Parameters: defaultDesc - the initial selection, one of the descriptions array values. Parameters: closeHandler - handles closing of the multiview component, useful when any of the embedded elements can be in modified state and closing would cause a dataloss.. |
createMultiView | public static TopComponent createMultiView(MultiViewDescription[] descriptions, MultiViewDescription defaultDesc)(Code) | | Creates and returns new instance of top component with
multi views.
PLEASE NOTE: a non-cloneable TopComponent is not able to embed editors aka subclasses of CloneableEditor correctly.
Use createCloneableMultiView() method in such a case.
Parameters: descriptions - array of descriptions of tabs in the multiview. Parameters: defaultDesc - the initial selection, one of the descriptions array values. |
createMultiView | public static TopComponent createMultiView(MultiViewDescription[] descriptions, MultiViewDescription defaultDesc, CloseOperationHandler closeHandler)(Code) | | Creates and returns new instance of top component with
multi views.
PLEASE NOTE: a non-cloneable TopComponent is not able to embed editors aka subclasses of CloneableEditor correctly.
Use createCloneableMultiView() method in such a case.
Parameters: descriptions - array of descriptions of tabs in the multiview. Parameters: defaultDesc - the initial selection, one of the descriptions array values. Parameters: closeHandler - handles closing of the multiview component, useful when any of the embedded elements can be in modified state and closing would cause a dataloss.. |
createSafeCloseState | static CloseOperationState createSafeCloseState()(Code) | | Utility method for MultiViewElements to create a CloseOperationState instance that
informs the environment that the MVElement is ok to be closed.
|
createUnsafeCloseState | public static CloseOperationState createUnsafeCloseState(String warningId, Action proceedAction, Action discardAction)(Code) | | Utility method for MultiViewElements to create a CloseOperationState instance
that warns about possible data loss. Corrective actions can be defined.
Parameters: warningId - an id that idenfifies the problem, the CloseOperationHandler used in the component should know about the warning's meaning and handle appropriately Parameters: proceedAction - will be performed when the CloseOperationHandler decides that closing the component is ok and changes are to be saved. Parameters: discardAction - will be performed when the CloseOperationHandler decides that the nonsaved data shall be discarded |
|
|