Package jpicedt.graphic
Class DefaultContentType
- java.lang.Object
-
- jpicedt.graphic.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
-
-
Constructor Summary
Constructors Constructor Description DefaultContentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(java.util.Properties p)Configure the EditorKit and the FormatterFactory (as returned by factory methods), from the given Properties.AbstractCustomizercreateCustomizer(java.util.Properties prop)Returns a customizer panel for this content-type.FormatterFactorycreateFormatter()creates a FormatterFactory suited for the JPIC-XML content-typeViewFactorycreateViewFactory()Creates a ViewFactory that's suited for this content-typejava.lang.StringgetPresentationName()Return the presentation name of the JPIC-XML content-type
-
-
-
Method Detail
-
getPresentationName
public java.lang.String getPresentationName()
Return the presentation name of the JPIC-XML content-type- Specified by:
getPresentationNamein interfaceContentType
-
createViewFactory
public ViewFactory createViewFactory()
Creates a ViewFactory that's suited for this content-type- Specified by:
createViewFactoryin interfaceContentType
-
createFormatter
public FormatterFactory createFormatter()
creates a FormatterFactory suited for the JPIC-XML content-type- Specified by:
createFormatterin interfaceContentType
-
createCustomizer
public AbstractCustomizer createCustomizer(java.util.Properties prop)
Returns a customizer panel for this content-type. This implementation returns null.- Specified by:
createCustomizerin interfaceContentType- 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:
configurein interfaceContentType
-
-