Class PublisherSection
- java.lang.Object
-
- org.eclipse.ui.forms.AbstractFormPart
-
- org.eclipse.ui.forms.SectionPart
-
- org.libreoffice.ide.eclipse.core.editors.utils.AbstractSection<ModelType>
-
- org.libreoffice.ide.eclipse.core.editors.utils.LocalizedSection<DescriptionModel>
-
- org.libreoffice.ide.eclipse.core.editors.description.PublisherSection
-
- All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart,ILocaleListener,IModelChangedListener
public class PublisherSection extends LocalizedSection<DescriptionModel>
Class implementing the publisher form section.
-
-
Field Summary
-
Fields inherited from class org.libreoffice.ide.eclipse.core.editors.utils.LocalizedSection
mCurrentLocale
-
-
Constructor Summary
Constructors Constructor Description PublisherSection(org.eclipse.swt.widgets.Composite pParent, DescriptionFormPage pPage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLocale(java.util.Locale pLocale)A locale has been added.protected voidcreateControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent)Create the localized controls in the given parent.voiddeleteLocale(java.util.Locale pLocale)A locale has been deleted.voidloadData()Load the non-localized data from the model into the fields.voidselectLocale(java.util.Locale pLocale)The locale selection has changed.-
Methods inherited from class org.libreoffice.ide.eclipse.core.editors.utils.AbstractSection
getModel, isDirty, modelChanged, modelSaved, setModel
-
Methods inherited from class org.eclipse.ui.forms.SectionPart
expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocus
-
-
-
-
Constructor Detail
-
PublisherSection
public PublisherSection(org.eclipse.swt.widgets.Composite pParent, DescriptionFormPage pPage)- Parameters:
pParent- the parent composite where to add the sectionpPage- the parent page
-
-
Method Detail
-
loadData
public void loadData()
Load the non-localized data from the model into the fields.- Specified by:
loadDatain classAbstractSection<DescriptionModel>
-
createControls
protected void createControls(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent)Create the localized controls in the given parent.- Specified by:
createControlsin classLocalizedSection<DescriptionModel>- Parameters:
pToolkit- the toolkit to use for the controls creationpParent- the parent to use for the new controls.
-
addLocale
public void addLocale(java.util.Locale pLocale)
A locale has been added.- Parameters:
pLocale- the added locale
-
deleteLocale
public void deleteLocale(java.util.Locale pLocale)
A locale has been deleted.- Parameters:
pLocale- the deleted locale
-
selectLocale
public void selectLocale(java.util.Locale pLocale)
The locale selection has changed.- Specified by:
selectLocalein interfaceILocaleListener- Overrides:
selectLocalein classLocalizedSection<DescriptionModel>- Parameters:
pLocale- the new locale to use.
-
-