org.progeeks.meta.swing.editor
Class FileEditorFactory

java.lang.Object
  extended by org.progeeks.meta.swing.editor.FileEditorFactory
All Implemented Interfaces:
EditorFactory

public class FileEditorFactory
extends java.lang.Object
implements EditorFactory

Factory for FileEditors.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Constructor Summary
FileEditorFactory()
           
 
Method Summary
 MetaPropertyEditor createPropertyEditor(MetaPropertyContext viewContext)
          Creates an editor for a specific set of property types.
 java.lang.String getExtension()
           
 java.lang.String getTypeDescription()
           
 void setExtension(java.lang.String e)
          Sets the comma delimited list of file extensions.
 void setTypeDescription(java.lang.String d)
          Sets the description of the file format that will appear in any file choosers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEditorFactory

public FileEditorFactory()
Method Detail

setTypeDescription

public void setTypeDescription(java.lang.String d)
Sets the description of the file format that will appear in any file choosers.


getTypeDescription

public java.lang.String getTypeDescription()

setExtension

public void setExtension(java.lang.String e)
Sets the comma delimited list of file extensions.


getExtension

public java.lang.String getExtension()

createPropertyEditor

public MetaPropertyEditor createPropertyEditor(MetaPropertyContext viewContext)
Creates an editor for a specific set of property types.

Specified by:
createPropertyEditor in interface EditorFactory
Parameters:
viewContext - The context within which this editor will be operating. It is up to the caller (usually the FactoryRegistry) to initialize the view with this view context. It is merely provide in case context information is necessary to decide which renderer to create.


Copyright © 2002-2003 Paul Speed. All Rights Reserved.