T
- the function typeF
- the field typeD
- the field definitionpublic abstract class EntitiesPage<T extends AbstractFunction<D>,D extends AbstractParameter,F extends Field<D,?>> extends HaleWizardPage<AbstractGenericFunctionWizard<D,T>> implements FunctionWizardPage
Constructor and Description |
---|
EntitiesPage(SchemaSelection initialSelection,
Cell initialCell)
Create the entities page
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptCandidate(EntityDefinition candidate)
Determines if a candidate from a selection should be accepted.
|
void |
configureCell(MutableCell cell)
Configure the given cell
|
protected void |
createContent(org.eclipse.swt.widgets.Composite page)
Create the page content
|
protected org.eclipse.swt.widgets.Control |
createEntityGroup(SchemaSpaceID ssid,
org.eclipse.swt.widgets.Composite parent)
Create an entity group
|
protected abstract F |
createField(D field,
SchemaSpaceID ssid,
org.eclipse.swt.widgets.Composite parent,
Set<EntityDefinition> candidates,
Cell initialCell)
Create entity assignment fields for the given field definition
|
protected org.eclipse.swt.widgets.Control |
createHeader(org.eclipse.swt.widgets.Composite parent)
Create the header control.
|
protected Set<EntityDefinition> |
getCandidates(SchemaSpaceID ssid)
Get the entity candidates for the given schema space
|
protected Set<F> |
getFunctionFields()
Get the function fields associated with the page
|
protected Cell |
getInitialCell() |
protected SchemaSelection |
getInitialSelection() |
protected void |
onShowPage(boolean firstShow)
Called when this page is shown
|
createControl, dispose, getHelpContext, getWizard, performHelp
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setMessage, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public EntitiesPage(SchemaSelection initialSelection, Cell initialCell)
initialSelection
- the initial schema selection, may be
null
initialCell
- the initial cell, may be null
protected boolean acceptCandidate(EntityDefinition candidate)
true
and therefore accepts any
EntityDefinition
, override to change behavior.candidate
- the candidateprotected void createContent(org.eclipse.swt.widgets.Composite page)
HaleWizardPage
createContent
in class HaleWizardPage<AbstractGenericFunctionWizard<D extends AbstractParameter,T extends AbstractFunction<D>>>
page
- the page composite, implementors may assign a custom layout
to this compositeHaleWizardPage.createContent(Composite)
protected void onShowPage(boolean firstShow)
HaleWizardPage
onShowPage
in class HaleWizardPage<AbstractGenericFunctionWizard<D extends AbstractParameter,T extends AbstractFunction<D>>>
firstShow
- specifies if it is the first time the page is shown
since its creationHaleWizardPage.onShowPage(boolean)
protected Cell getInitialCell()
protected SchemaSelection getInitialSelection()
protected Set<F> getFunctionFields()
protected org.eclipse.swt.widgets.Control createHeader(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositenull
protected Set<EntityDefinition> getCandidates(SchemaSpaceID ssid)
ssid
- the schema space IDprotected org.eclipse.swt.widgets.Control createEntityGroup(SchemaSpaceID ssid, org.eclipse.swt.widgets.Composite parent)
ssid
- the schema space idparent
- the parent compositeprotected abstract F createField(D field, SchemaSpaceID ssid, org.eclipse.swt.widgets.Composite parent, Set<EntityDefinition> candidates, Cell initialCell)
ssid
- the schema space identifierfield
- the field definition, may be a PropertyParameter
or
a TypeParameter
parent
- the parent compositecandidates
- the entity candidatesinitialCell
- the initial cellnull
public void configureCell(MutableCell cell)
FunctionWizardPage
configureCell
in interface FunctionWizardPage
cell
- the cellFunctionWizardPage.configureCell(MutableCell)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a