com.swfm.mica.view
Class MiModelPropertiesFileWidget

java.lang.Object
  extended bycom.swfm.mica.view.MiModelPropertiesFileWidget

public class MiModelPropertiesFileWidget
extends java.lang.Object

This class reads and writes files based on a model entity container by reading/writing each model in the container from/to a single line in the file. Lines are of form:

name = X, property1=value1, proerpty2=value2, ...

This can be used for storing preferences or other configuration info.

Version:
%I% %G%
Author:
Michael L. Davis

Constructor Summary
MiModelPropertiesFileWidget()
           
MiModelPropertiesFileWidget(java.lang.String filename, java.lang.String[] defaults, java.lang.String dialogTitle)
           
 
Method Summary
 MiDialogBoxTemplate getDialogBox(MiEditor parent)
           
 MiiModelEntity getModel()
           
 java.lang.String getPropertyValue(java.lang.String propertyName)
           
 void load(java.lang.String filename, java.lang.String[] defaults, java.lang.String dialogTitle)
           
 void save()
           
 void setPropertyValue(java.lang.String propertyName, java.lang.String propertyValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiModelPropertiesFileWidget

public MiModelPropertiesFileWidget()

MiModelPropertiesFileWidget

public MiModelPropertiesFileWidget(java.lang.String filename,
                                   java.lang.String[] defaults,
                                   java.lang.String dialogTitle)
Method Detail

load

public void load(java.lang.String filename,
                 java.lang.String[] defaults,
                 java.lang.String dialogTitle)

save

public void save()

getDialogBox

public MiDialogBoxTemplate getDialogBox(MiEditor parent)

getModel

public MiiModelEntity getModel()

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String propertyName)

setPropertyValue

public void setPropertyValue(java.lang.String propertyName,
                             java.lang.String propertyValue)