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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionId()
An identifier of the close action to distinguish it from other actions of the same type.
|
int |
hashCode() |
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
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object