Class DefaultContentType

  • All Implemented Interfaces:
    ContentType

    public class DefaultContentType
    extends java.lang.Object
    implements ContentType
    Default implementation of the ContentType interface suited for the JPIC-XML language.
    Since:
    jpicedt 1.3.2
    Version:
    $Id: DefaultContentType.java,v 1.7.2.1 2007/09/02 11:56:15 reynal Exp $
    Author:
    Sylvain Reynal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String mime  
      protected java.lang.String name  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(java.util.Properties p)
      Configure the EditorKit and the FormatterFactory (as returned by factory methods), from the given Properties.
      AbstractCustomizer createCustomizer​(java.util.Properties prop)
      Returns a customizer panel for this content-type.
      FormatterFactory createFormatter()
      creates a FormatterFactory suited for the JPIC-XML content-type
      ViewFactory createViewFactory()
      Creates a ViewFactory that's suited for this content-type
      java.lang.String getPresentationName()
      Return the presentation name of the JPIC-XML content-type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • mime

        protected java.lang.String mime
    • Constructor Detail

      • DefaultContentType

        public DefaultContentType()
    • Method Detail

      • getPresentationName

        public java.lang.String getPresentationName()
        Return the presentation name of the JPIC-XML content-type
        Specified by:
        getPresentationName in interface ContentType
      • createCustomizer

        public AbstractCustomizer createCustomizer​(java.util.Properties prop)
        Returns a customizer panel for this content-type. This implementation returns null.
        Specified by:
        createCustomizer in interface ContentType
        Parameters:
        prop - used to init the component or to store preferences on-demand.
        Returns:
        null if no customizer is available for this content-type
      • configure

        public void configure​(java.util.Properties p)
        Configure the EditorKit and the FormatterFactory (as returned by factory methods), from the given Properties.
        Specified by:
        configure in interface ContentType