http://www.jpicedt.org

jpicedt.graphic
Class DefaultContentType

java.lang.Object
  extended by jpicedt.graphic.DefaultContentType
All Implemented Interfaces:
ContentType

public class DefaultContentType
extends 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.12 2013/03/27 07:21:59 vincentb1 Exp $
Author:
Sylvain Reynal

Field Summary
protected  String mime
           
protected  String name
           
 
Constructor Summary
DefaultContentType()
           
 
Method Summary
 void configure(Properties p)
          Configure the EditorKit and the FormatterFactory (as returned by factory methods), from the given Properties.
 AbstractCustomizer createCustomizer(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
 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 String name

mime

protected String mime
Constructor Detail

DefaultContentType

public DefaultContentType()
Method Detail

getPresentationName

public String getPresentationName()
Return the presentation name of the JPIC-XML content-type

Specified by:
getPresentationName in interface ContentType

createViewFactory

public ViewFactory createViewFactory()
Creates a ViewFactory that's suited for this content-type

Specified by:
createViewFactory in interface ContentType

createFormatter

public FormatterFactory createFormatter()
creates a FormatterFactory suited for the JPIC-XML content-type

Specified by:
createFormatter in interface ContentType

createCustomizer

public AbstractCustomizer createCustomizer(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(Properties p)
Configure the EditorKit and the FormatterFactory (as returned by factory methods), from the given Properties.

Specified by:
configure in interface ContentType

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org