eu.esdihumboldt.hale.ui.functions.core
Class TextSourceListParameterPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
eu.esdihumboldt.hale.ui.HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
eu.esdihumboldt.hale.ui.functions.core.SourceListParameterPage<org.eclipse.swt.widgets.Text>
eu.esdihumboldt.hale.ui.functions.core.TextSourceListParameterPage
- All Implemented Interfaces:
- ParameterPage, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
- Direct Known Subclasses:
- FormattedStringParameterPage, MathExpressionParameterPage
public abstract class TextSourceListParameterPage
- extends SourceListParameterPage<org.eclipse.swt.widgets.Text>
- implements ParameterPage
Base parameter page for parameter pages that contain a listing of source
types which can be put together to a target value.
- Author:
- Kai Schwierczek
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Method Summary |
protected org.eclipse.swt.widgets.Text |
createAndLayoutTextField(org.eclipse.swt.widgets.Composite parent)
Create and text field and layout it. |
protected String |
getText(org.eclipse.swt.widgets.Text textField)
Get the current text of the text field. |
protected void |
insertTextAtCurrentPos(org.eclipse.swt.widgets.Text textField,
String insert)
Insert a given text at the current position of the given text field. |
protected void |
setText(org.eclipse.swt.widgets.Text textField,
String value)
Set the text of the text field to the given value. |
protected boolean |
useMultilineInput()
Subclasses can override this method to specify, that the text field
should have multiple lines. |
Methods inherited from class org.eclipse.jface.wizard.WizardPage |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible |
Methods inherited from interface org.eclipse.jface.wizard.IWizardPage |
canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, isPageComplete, setPreviousPage, setWizard |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
TextSourceListParameterPage
protected TextSourceListParameterPage(String pageName,
String title,
org.eclipse.jface.resource.ImageDescriptor titleImage)
- See Also:
HaleWizardPage.HaleWizardPage(String, String, ImageDescriptor)
TextSourceListParameterPage
protected TextSourceListParameterPage(String pageName)
- See Also:
HaleWizardPage.HaleWizardPage(String)
useMultilineInput
protected boolean useMultilineInput()
- Subclasses can override this method to specify, that the text field
should have multiple lines. By default it is not.
- Returns:
- true if the text field should have multiple lines.
getText
protected String getText(org.eclipse.swt.widgets.Text textField)
- Description copied from class:
SourceListParameterPage
- Get the current text of the text field.
- Specified by:
getText
in class SourceListParameterPage<org.eclipse.swt.widgets.Text>
- Parameters:
textField
- the text field
- Returns:
- the current text of the text field
- See Also:
SourceListParameterPage.getText(Object)
insertTextAtCurrentPos
protected void insertTextAtCurrentPos(org.eclipse.swt.widgets.Text textField,
String insert)
- Description copied from class:
SourceListParameterPage
- Insert a given text at the current position of the given text field.
- Specified by:
insertTextAtCurrentPos
in class SourceListParameterPage<org.eclipse.swt.widgets.Text>
- Parameters:
textField
- the text fieldinsert
- the text to insert- See Also:
SourceListParameterPage.insertTextAtCurrentPos(Object, String)
setText
protected void setText(org.eclipse.swt.widgets.Text textField,
String value)
- Description copied from class:
SourceListParameterPage
- Set the text of the text field to the given value.
- Specified by:
setText
in class SourceListParameterPage<org.eclipse.swt.widgets.Text>
- Parameters:
textField
- the text fieldvalue
- the value to set as text- See Also:
SourceListParameterPage.setText(Object, String)
createAndLayoutTextField
protected org.eclipse.swt.widgets.Text createAndLayoutTextField(org.eclipse.swt.widgets.Composite parent)
- Description copied from class:
SourceListParameterPage
- Create and text field and layout it.
- Specified by:
createAndLayoutTextField
in class SourceListParameterPage<org.eclipse.swt.widgets.Text>
- Parameters:
parent
- the parent composite, it has a one-column grid layout
- Returns:
- the created text field
- See Also:
SourceListParameterPage.createAndLayoutTextField(Composite)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d