|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
eu.esdihumboldt.hale.ui.HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
eu.esdihumboldt.hale.ui.functions.core.SourceListParameterPage<T>
T
- the type of the text field/editorpublic abstract class SourceListParameterPage<T>
Base parameter page for parameter pages that contain a listing of source types which can be put together to a target value.
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
protected |
SourceListParameterPage(String pageName)
|
protected |
SourceListParameterPage(String pageName,
String title,
org.eclipse.jface.resource.ImageDescriptor titleImage)
|
Method Summary | |
---|---|
protected void |
configure(T textField)
Subclasses can configure the text field to for example add some validation mechanism. |
protected abstract T |
createAndLayoutTextField(org.eclipse.swt.widgets.Composite parent)
Create and text field and layout it. |
protected void |
createContent(org.eclipse.swt.widgets.Composite page)
Create the page content |
com.google.common.collect.ListMultimap<String,String> |
getConfiguration()
Returns the configuration of the parameters this page is responsible for. |
protected abstract String |
getParameterName()
Should return the parameter which should be configured using all source properties. |
protected abstract String |
getSourcePropertyName()
Should return the name of the source property which should be used. |
protected abstract String |
getText(T textField)
Get the current text of the text field. |
protected T |
getTextField()
Get the text editor/field. |
protected String |
getVariableName(EntityDefinition variable)
This gets called for all variables. Subclasses can change how they are displayed here. The default format is like "part1.part2.name". |
protected abstract void |
insertTextAtCurrentPos(T textField,
String insert)
Insert a given text at the current position of the given text field. |
protected void |
onShowPage(boolean firstShow)
Called when this page is shown |
void |
setParameter(Set<FunctionParameter> params,
com.google.common.collect.ListMultimap<String,String> initialValues)
Sets the parameters this page is responsible for and their initial values. |
protected abstract void |
setText(T textField,
String value)
Set the text of the text field to the given value. |
protected void |
sourcePropertiesChanged(EntityDefinition[] variables)
This gets called, when the user chose other source properties. |
Methods inherited from class eu.esdihumboldt.hale.ui.HaleWizardPage |
---|
createControl, dispose, getWizard |
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
Constructor Detail |
---|
protected SourceListParameterPage(String pageName, String title, org.eclipse.jface.resource.ImageDescriptor titleImage)
HaleWizardPage.HaleWizardPage(String, String, ImageDescriptor)
protected SourceListParameterPage(String pageName)
HaleWizardPage.HaleWizardPage(String)
Method Detail |
---|
protected abstract String getParameterName()
protected abstract String getSourcePropertyName()
protected void configure(T textField)
textField
- the text field to configureprotected String getVariableName(EntityDefinition variable)
variable
- the variable
protected void sourcePropertiesChanged(EntityDefinition[] variables)
variables
- the new source propertiespublic void setParameter(Set<FunctionParameter> params, com.google.common.collect.ListMultimap<String,String> initialValues)
ParameterPage
setParameter
in interface ParameterPage
params
- the parameters this page is responsible forinitialValues
- initial values of those parameters, may be
null
, should not be changedParameterPage.setParameter(Set, ListMultimap)
public com.google.common.collect.ListMultimap<String,String> getConfiguration()
ParameterPage
getConfiguration
in interface ParameterPage
ParameterPage.getConfiguration()
protected void onShowPage(boolean firstShow)
HaleWizardPage
onShowPage
in class HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
firstShow
- specifies if it is the first time the page is shown
since its creationHaleWizardPage.onShowPage(boolean)
protected void createContent(org.eclipse.swt.widgets.Composite page)
HaleWizardPage
createContent
in class HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
page
- the page composite, implementors may assign a custom layout
to this compositeHaleWizardPage.createContent(Composite)
protected abstract void setText(T textField, String value)
textField
- the text fieldvalue
- the value to set as textprotected abstract String getText(T textField)
textField
- the text field
protected abstract void insertTextAtCurrentPos(T textField, String insert)
textField
- the text fieldinsert
- the text to insertprotected abstract T createAndLayoutTextField(org.eclipse.swt.widgets.Composite parent)
parent
- the parent composite, it has a one-column grid layout
protected T getTextField()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |