public class StandardCloseAction extends java.lang.Object implements CloseAction, ChangeTrackerCloseAction
Screen
,
StandardEditor
, StandardLookup
.
If its isCheckForUnsavedChanges()
flag is set to true, the screen checks if it contains unsaved changes and asks the
user whether to commit or discard them.
Constructor and Description |
---|
StandardCloseAction(java.lang.String actionId)
Constructs the close action with the given id and
checkForUnsavedChanges flag set to true. |
StandardCloseAction(java.lang.String actionId,
boolean checkForUnsavedChanges)
Constructs the close action with the given id and
isCheckForUnsavedChanges() flag. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionId()
An identifier of the close action to distinguish it from other actions of the same type.
|
boolean |
isCheckForUnsavedChanges() |
java.lang.String |
toString() |
public StandardCloseAction(java.lang.String actionId)
checkForUnsavedChanges
flag set to true.actionId
- an identifier of the close action to distinguish it from other actions of the same typepublic StandardCloseAction(java.lang.String actionId, boolean checkForUnsavedChanges)
isCheckForUnsavedChanges()
flag.actionId
- an identifier of the close action to distinguish it from other actions of the same typecheckForUnsavedChanges
- indicates whether the screen using this action should check for unsaved changespublic java.lang.String getActionId()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isCheckForUnsavedChanges()
isCheckForUnsavedChanges
in interface ChangeTrackerCloseAction