Package org.eclipse.jface.dialogs
Class PageChangingEvent
java.lang.Object
java.util.EventObject
org.eclipse.jface.dialogs.PageChangingEvent
- All Implemented Interfaces:
Serializable
Event object describing an
IDialogPage
in the midst of changing.- Since:
- 3.3
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Public field that dictates if the page change will successfully change.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionPageChangingEvent
(Object source, Object currentPage, Object targetPage) Creates a new event for the given source, selected (current) page and direction. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current page from which the page change originates.Returns the target page to change to.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
doit
public boolean doitPublic field that dictates if the page change will successfully change. Set this field tofalse
to prevent the page from changing. Default value istrue
.
-
-
Constructor Details
-
PageChangingEvent
Creates a new event for the given source, selected (current) page and direction.- Parameters:
source
- the page changing provider (the source of this event)currentPage
- the current page. In the JFace provided dialogs this will be anIDialogPage
.targetPage
- the target page. In the JFace provided dialogs this will be anIDialogPage
.
-
-
Method Details
-
getCurrentPage
Returns the current page from which the page change originates.- Returns:
- the current page. In dialogs implemented by JFace,
this will be an
IDialogPage
.
-
getTargetPage
Returns the target page to change to.- Returns:
- the target page. In dialogs implemented by JFace,
this will be an
IDialogPage
.
-