Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.functions.inspire
Class GeographicalNamePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by eu.esdihumboldt.hale.ui.HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
              extended by eu.esdihumboldt.hale.ui.functions.inspire.GeographicalNamePage
All Implemented Interfaces:
GeographicalNameFunction, ParameterPage, GeographicalNamePageConstants, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class GeographicalNamePage
extends HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
implements GeographicalNameFunction, ParameterPage, GeographicalNamePageConstants

Wizard page for the inspire geographical name function

Author:
Anna Pitaev, Kevin Mais

Field Summary
 
Fields inherited from interface eu.esdihumboldt.cst.functions.inspire.GeographicalNameFunction
ID, INSPIRE_IDENTIFIER_PREFIX, PROPERTY_GRAMMA_GENDER, PROPERTY_GRAMMA_NUMBER, PROPERTY_LANGUAGE, PROPERTY_NAMESTATUS, PROPERTY_NATIVENESS, PROPERTY_PRONUNCIATIONIPA, PROPERTY_PRONUNCIATIONSOUNDLINK, PROPERTY_SCRIPT, PROPERTY_SOURCEOFNAME, PROPERTY_TEXT, PROPERTY_TRANSLITERATION
 
Fields inherited from interface eu.esdihumboldt.hale.ui.functions.inspire.internal.GeographicalNamePageConstants
GENDER_NULL_VAUE_MENU_ENTRY, GRAMMATICAL_GENDER_LABEL_TEXT, GRAMMATICAL_NUMBER_LABEL_TEXT, IPA_LABEL_TEXT, ISO_CODE_ENG, LANGUAGE_LABEL_TEXT, NAME_STATUS_LABEL_TEXT, NATIVENESS_LABEL_TEXT, NUMBER_NULL_VALUE_MENU_ENTRY, PRONOUNCIATION_GRPOUP_TEXT, SCRIPT_LABEL_TEXT, SOUNDLINK_LABEL_TEXT, SOURCE_OF_NAME_LABEL_TEXT, SOURCE_OF_NAME_PROMT, SPELLING_GROUP_TEXT, SPELLING_TEXT_LABEL_TEXT, TRANSLITERATION_LABEL_TEXT
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
GeographicalNamePage()
          Default Constructor
 
Method Summary
protected  void createContent(org.eclipse.swt.widgets.Composite parent)
          Create the page content
protected  SpellingType getActiveSpelling(PropertyDefinition property)
          Returns a spelling assigned to source attribute name
 com.google.common.collect.ListMultimap<String,String> getConfiguration()
          Returns the configuration of the parameters this page is responsible for.
 String getGender()
           
 String getIpa()
           
 String getLanguage()
           
 String getNameStatus()
           
 String getNativeness()
           
 String getNumber()
           
 String getSound()
           
 String getSourceOfName()
           
 ArrayList<SpellingType> getSpellings()
           
protected  void onShowPage(boolean firstShow)
          Called when this page is shown
 void setGender(String gender)
           
 void setIpa(String ipa)
           
 void setLanguage(String language)
           
 void setNameStatus(String nameStatus)
           
 void setNativeness(String nativeness)
           
 void setNumber(String number)
           
 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.
 void setSound(String sound)
           
 void setSourceOfName(String sourceOfName)
           
 void setSpellings(ArrayList<SpellingType> spellings)
           
 
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

GeographicalNamePage

public GeographicalNamePage()
Default Constructor

Method Detail

onShowPage

protected void onShowPage(boolean firstShow)
Description copied from class: HaleWizardPage
Called when this page is shown

Overrides:
onShowPage in class HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
Parameters:
firstShow - specifies if it is the first time the page is shown since its creation
See Also:
HaleWizardPage.onShowPage(boolean)

setParameter

public void setParameter(Set<FunctionParameter> params,
                         com.google.common.collect.ListMultimap<String,String> initialValues)
Description copied from interface: ParameterPage
Sets the parameters this page is responsible for and their initial values. This method is called before creating the page content.
It should only handle the parameters in the given set, even if it could handle more.

Specified by:
setParameter in interface ParameterPage
Parameters:
params - the parameters this page is responsible for
initialValues - initial values of those parameters, may be null, should not be changed
See Also:
ParameterPage.setParameter(Set, ListMultimap)

getConfiguration

public com.google.common.collect.ListMultimap<String,String> getConfiguration()
Description copied from interface: ParameterPage
Returns the configuration of the parameters this page is responsible for.
It should only contain key value pairs, where key is the name of one of the parameters this page is responsible for.

Specified by:
getConfiguration in interface ParameterPage
Returns:
the configuration of the parameters
See Also:
ParameterPage.getConfiguration()

createContent

protected void createContent(org.eclipse.swt.widgets.Composite parent)
Description copied from class: HaleWizardPage
Create the page content

Specified by:
createContent in class HaleWizardPage<AbstractGenericFunctionWizard<?,?>>
Parameters:
parent - the page composite, implementors may assign a custom layout to this composite
See Also:
HaleWizardPage.createContent(org.eclipse.swt.widgets.Composite)

getActiveSpelling

protected SpellingType getActiveSpelling(PropertyDefinition property)
Returns a spelling assigned to source attribute name

Parameters:
property - the assigned source property definition
Returns:
the spelling assigned to property

getIpa

public String getIpa()
Returns:
the ipa

setIpa

public void setIpa(String ipa)
Parameters:
ipa - the ipa to set

getLanguage

public String getLanguage()
Returns:
the language

setLanguage

public void setLanguage(String language)
Parameters:
language - the language to set

getSourceOfName

public String getSourceOfName()
Returns:
the sourceOfName

setSourceOfName

public void setSourceOfName(String sourceOfName)
Parameters:
sourceOfName - the sourceOfName to set

getNameStatus

public String getNameStatus()
Returns:
the nameStatus

setNameStatus

public void setNameStatus(String nameStatus)
Parameters:
nameStatus - the nameStatus to set

getNativeness

public String getNativeness()
Returns:
the nativeness

setNativeness

public void setNativeness(String nativeness)
Parameters:
nativeness - the nativeness to set

getGender

public String getGender()
Returns:
the gender

setGender

public void setGender(String gender)
Parameters:
gender - the gender to set

getNumber

public String getNumber()
Returns:
the number

setNumber

public void setNumber(String number)
Parameters:
number - the number to set

getSound

public String getSound()
Returns:
the sound

setSound

public void setSound(String sound)
Parameters:
sound - the sound to set

getSpellings

public ArrayList<SpellingType> getSpellings()
Returns:
the spellings

setSpellings

public void setSpellings(ArrayList<SpellingType> spellings)
Parameters:
spellings - the spellings to set

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d