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 Details

  • Constructor Details

    • MetadataObjectCompositeFactory

      public MetadataObjectCompositeFactory()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • createComposite

      public org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent, int style)
      Specified by:
      createComposite in interface CompositeFactory
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getMetadataName

      public String getMetadataName()
    • setMetadataName

      public void setMetadataName(String metadataName)
    • getOutputFormat

      public String getOutputFormat()
    • setOutputFormat

      public void setOutputFormat(String outputFormat)
    • getUnitString

      public String getUnitString()
    • setUnitString

      public void setUnitString(String unitString)
    • getStyle

      public String getStyle()
    • setStyle

      public void setStyle(String style)
    • getComboChoices

      public String[] getComboChoices()
    • setComboChoices

      public void setComboChoices(String[] comboChoices)
    • getColumnWidth

      public Integer getColumnWidth()
    • setColumnWidth

      public void setColumnWidth(Integer columnWidth)
    • main

      public static void main(String... args) throws Exception
      Throws:
      Exception