public class MetadataPage extends WizardPage implements ITextGridWizardPage
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
MetadataPage(String pageName) |
MetadataPage(String pageName,
String title,
ImageDescriptor titleImage) |
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent) |
void |
finishPage()
Finish whatever is needed to finish for this page.
|
void |
init(ITextGridWizard wizard,
INewObjectPreparator preparator)
This method is called once for every page, before the page is added.
|
boolean |
isNeedsCompleteMetadata() |
boolean |
isPageComplete() |
void |
loadObject(TextGridObject textGridObject)
Using this method the page is asked to load the data / initialize itself
from the given
TextGridObject . |
void |
setNeedsCompleteMetadata(boolean needsCompleteMetadata) |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, setPreviousPage, setWizard
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
public MetadataPage(String pageName)
pageName
- public MetadataPage(String pageName, String title, ImageDescriptor titleImage)
pageName
- title
- titleImage
- public boolean isPageComplete()
isPageComplete
in interface IWizardPage
isPageComplete
in class WizardPage
public void createControl(Composite parent)
createControl
in interface IDialogPage
public void finishPage()
ITextGridWizardPage
Implementors should be aware that this may be called multiple times. In the default implementation, it will be called whenever the page is left for the next page or when the finish button is pressed on the current page.
finishPage
in interface ITextGridWizardPage
public void init(ITextGridWizard wizard, INewObjectPreparator preparator)
ITextGridWizardPage
init
in interface ITextGridWizardPage
wizard
- The wizard this page has been added to.preparator
- The preparator class as defined in the extension point.public void loadObject(TextGridObject textGridObject)
ITextGridWizardPage
TextGridObject
. It is usually called when the page
is activated.loadObject
in interface ITextGridWizardPage
textGridObject
- The TextGridObject
for this page. If null
, the wizard page creates a new TextGridObject
.public void setNeedsCompleteMetadata(boolean needsCompleteMetadata)
public boolean isNeedsCompleteMetadata()