|
org.netbeans.core.multiview/1 1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.core.spi.multiview.CloseOperationState
public final class CloseOperationState
instances of this class describe the MultiViewElement's state when the component is
about to be closed. (See MultiViewElement.canCloseElement())
New instances are created by MultiViewFactory.createUnsafeCloseState(java.lang.String, javax.swing.Action, javax.swing.Action) factory method.
| Field Summary | |
|---|---|
static CloseOperationState |
STATE_OK
Singleton instance of a close operation state, to be used whenever MultiViewElement is in consistent state
and can be safely closed. |
| Method Summary | |
|---|---|
boolean |
canClose()
The return value denotes wheather the MultiViewElement can be closed or not. |
String |
getCloseWarningID()
A preferably unique id of the reason why the element cannot be closed. |
Action |
getDiscardAction()
Action is used when user wants to complete the closing of the component and discard any changes. |
Action |
getProceedAction()
Action is used when user wants to complete the closing of the component without loosing changed data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CloseOperationState STATE_OK
MultiViewElement is in consistent state
and can be safely closed.
| Method Detail |
|---|
public boolean canClose()
MultiViewElement can be closed or not.
public String getCloseWarningID()
CloseOperationHandler implementation can use it when deciding about UI shown or action taken.
public Action getProceedAction()
CloseOperationHandler.
public Action getDiscardAction()
CloseOperationHandler.
|
org.netbeans.core.multiview/1 1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||