Package uk.ac.gda.dls.client.views
Class MetadataObjectCompositeFactory
java.lang.Object
uk.ac.gda.dls.client.views.MetadataObjectCompositeFactory
- All Implemented Interfaces:
CompositeFactory,org.springframework.beans.factory.InitializingBean
public class MetadataObjectCompositeFactory
extends Object
implements CompositeFactory, org.springframework.beans.factory.InitializingBean
Create composites linked to a specific piece of metadata. Editable by user but should pick up if metadata changes.
This has a variety of styles depending on the nature of the data to be stored.
Outputformat should be a String acceptable either to String.format or DecimalFormat i.e. similar to "%s" or "###.##"
-
Field Summary
FieldsFields inherited from interface gda.rcp.views.CompositeFactory
COMPOSITE_ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.eclipse.swt.widgets.CompositecreateComposite(org.eclipse.swt.widgets.Composite parent, int style) String[]getLabel()getStyle()static voidvoidsetColumnWidth(Integer columnWidth) voidsetComboChoices(String[] comboChoices) voidvoidsetMetadataName(String metadataName) voidsetOutputFormat(String outputFormat) voidvoidsetUnitString(String unitString)
-
Field Details
-
LABEL_STYLE
- See Also:
-
TEXTAREA_STYLE
- See Also:
-
COMBOBOX_STYLE
- See Also:
-
-
Constructor Details
-
MetadataObjectCompositeFactory
public MetadataObjectCompositeFactory()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
createComposite
public org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent, int style) - Specified by:
createCompositein interfaceCompositeFactory
-
getLabel
-
setLabel
-
getMetadataName
-
setMetadataName
-
getOutputFormat
-
setOutputFormat
-
getUnitString
-
setUnitString
-
getStyle
-
setStyle
-
getComboChoices
-
setComboChoices
-
getColumnWidth
-
setColumnWidth
-
main
- Throws:
Exception
-