public class SimpleTask extends java.lang.Object implements ITask
| 限定符和类型 | 字段和说明 |
|---|---|
protected WizardBase |
container |
protected IWizardContext |
context |
protected org.eclipse.swt.widgets.Composite |
topControl |
| 构造器和说明 |
|---|
SimpleTask() |
SimpleTask(java.lang.String title) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addError(java.lang.String errorInfo) |
void |
createControl(org.eclipse.swt.widgets.Composite parent) |
void |
dispose() |
IWizardContext |
getContext()
Called just before the UI for the task is disposed, it will be used by
the wizard.
|
org.eclipse.swt.widgets.Control |
getControl() |
java.lang.String |
getDescription() |
java.lang.String |
getErrorMessage() |
java.lang.String[] |
getErrors()
Called by the container wizard if it follows the 'pull' mechanism for
error discovery.
|
org.eclipse.swt.graphics.Image |
getImage() |
java.lang.String |
getMessage() |
java.lang.String |
getTitle() |
void |
performHelp()
已过时。
For later use
|
protected void |
removeError(java.lang.String errorInfo) |
void |
setContext(IWizardContext context)
Called just before the UI for this Task is shown.
|
void |
setDescription(java.lang.String description) |
void |
setErrorHints(java.lang.Object[] errorHints)
Called just before the UI for this Task is shown...in case the task is
being shown in response to a request to fix an error.
|
void |
setImageDescriptor(org.eclipse.jface.resource.ImageDescriptor image)
已过时。
For later use
|
void |
setTitle(java.lang.String title) |
void |
setUIProvider(WizardBase wizard)
Called upon instantiation to allow a task to interact with the containing
wizard.
|
void |
setVisible(boolean visible) |
protected transient org.eclipse.swt.widgets.Composite topControl
protected transient IWizardContext context
protected transient WizardBase container
public void setContext(IWizardContext context)
ITasksetContext 在接口中 ITaskcontext - The context in which the Subtask UI will be shown. Its content
depend on individual wizards.public IWizardContext getContext()
ITaskgetContext 在接口中 ITaskpublic void setUIProvider(WizardBase wizard)
ITasksetUIProvider 在接口中 ITaskwizard - instance of WizardBase containing this task instance.public java.lang.String[] getErrors()
ITaskprotected void addError(java.lang.String errorInfo)
protected void removeError(java.lang.String errorInfo)
public void setErrorHints(java.lang.Object[] errorHints)
ITasksetErrorHints 在接口中 ITaskerrorHints - Object array providing additional (task-specific) information
provided by the source of the task redirection. It is expected
to contain information that the target task can use to better
guide the user to fix any error conditions.public void dispose()
dispose 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic void createControl(org.eclipse.swt.widgets.Composite parent)
createControl 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic org.eclipse.swt.widgets.Control getControl()
getControl 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic java.lang.String getDescription()
getDescription 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic java.lang.String getErrorMessage()
getErrorMessage 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic org.eclipse.swt.graphics.Image getImage()
getImage 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic java.lang.String getMessage()
getMessage 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic java.lang.String getTitle()
getTitle 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic void performHelp()
performHelp 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic void setDescription(java.lang.String description)
setDescription 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic void setImageDescriptor(org.eclipse.jface.resource.ImageDescriptor image)
setImageDescriptor 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic void setTitle(java.lang.String title)
setTitle 在接口中 org.eclipse.jface.dialogs.IDialogPagepublic void setVisible(boolean visible)
setVisible 在接口中 org.eclipse.jface.dialogs.IDialogPageCopyright © 2008 Actuate Corp. All rights reserved.