de.kleopatra.forms.view.builder
Class FormIOHelper

java.lang.Object
  extended byde.kleopatra.forms.view.builder.FormIOHelper

public class FormIOHelper
extends java.lang.Object

Convenience helper to ease FileChooser handling.

Version:
$Revision: 1.2 $ $Date: 2004/09/23 13:43:33 $
Author:
(C) 2003 Jeanette Winzenburg, Berlin

Field Summary
protected  FileChooserHandler customizer
           
protected  FormIO formIO
           
protected  java.awt.Frame owner
           
 
Constructor Summary
FormIOHelper()
           
 
Method Summary
 java.lang.String chooseFormDescriptionFilename(boolean read)
           
 java.lang.String chooseLayoutFilename(boolean read)
           
 java.lang.String choosePresentationFilename(boolean read)
           
 java.lang.String chooseStyleMapFilename(boolean read)
           
protected  FileChooserHandler createFileChooserHandler()
           
protected  void customizeFileChooserHandler()
           
protected  FileChooserHandler getFileChooserHandler()
           
protected  java.lang.String getFilename(int option, java.lang.Class handledClass)
           
protected  java.lang.String getFilename(int option, java.lang.String ext)
           
protected  FormIO getFormIO()
           
 FormDescription readFormDescription()
           
 LayoutDescription readLayoutFile()
           
 Presentation readPresentation()
           
 StyleMap readStyleMap()
           
 void setFormIO(FormIO formIO)
          set a custom formIO to use.
 void setOwner(java.awt.Frame frame)
           
 boolean writeFormDescription(FormDescription formDescription)
           
 boolean writeLayoutFile(LayoutDescription description)
           
 boolean writePresentation(Presentation presentation)
           
 boolean writeStyleMap(StyleMap styleMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formIO

protected FormIO formIO

owner

protected java.awt.Frame owner

customizer

protected FileChooserHandler customizer
Constructor Detail

FormIOHelper

public FormIOHelper()
Method Detail

setOwner

public void setOwner(java.awt.Frame frame)

setFormIO

public void setFormIO(FormIO formIO)
set a custom formIO to use. if null the helper uses the shared FormIO as returned by FormFactory.


chooseLayoutFilename

public java.lang.String chooseLayoutFilename(boolean read)

readLayoutFile

public LayoutDescription readLayoutFile()

writeLayoutFile

public boolean writeLayoutFile(LayoutDescription description)

choosePresentationFilename

public java.lang.String choosePresentationFilename(boolean read)

readPresentation

public Presentation readPresentation()

writePresentation

public boolean writePresentation(Presentation presentation)

chooseFormDescriptionFilename

public java.lang.String chooseFormDescriptionFilename(boolean read)

readFormDescription

public FormDescription readFormDescription()

writeFormDescription

public boolean writeFormDescription(FormDescription formDescription)

chooseStyleMapFilename

public java.lang.String chooseStyleMapFilename(boolean read)

readStyleMap

public StyleMap readStyleMap()

writeStyleMap

public boolean writeStyleMap(StyleMap styleMap)

getFilename

protected java.lang.String getFilename(int option,
                                       java.lang.String ext)

getFilename

protected java.lang.String getFilename(int option,
                                       java.lang.Class handledClass)

customizeFileChooserHandler

protected void customizeFileChooserHandler()

getFormIO

protected FormIO getFormIO()

getFileChooserHandler

protected FileChooserHandler getFileChooserHandler()

createFileChooserHandler

protected FileChooserHandler createFileChooserHandler()


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.