jas2.jds.module
Class BasicLocalDIM
- java.lang.Object
-
- jas2.jds.module.BasicLocalDIM
-
- All Implemented Interfaces:
- AbstractDIM, LocalDIM, LocalDIM2, java.io.Serializable
- Direct Known Subclasses:
- MultiFileLocalDIM
public abstract class BasicLocalDIM extends java.lang.Object implements LocalDIM2
An abstract implementation of LocalDIM2 suitable for DIM's which simply want to open a single file of a particular type- See Also:
MultiFileLocalDIM, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BasicLocalDIM(javax.swing.filechooser.FileFilter f)Create a BasicLocalDIM.BasicLocalDIM(java.lang.String description, java.lang.String filetype)Create a BasicLocalDIM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.swing.filechooser.FileFiltergetFileFilter()java.lang.StringgetHelpTopic()Override to provide your own help topicJASWizardPagegetSetupPage()Return a setup page for the new job wizard to use when creating a job.voidsetLocalJobBuilder(LocalJobBuilder ljb)Copy over the given object to a member field for use later.java.lang.StringtoString()Override to provide your own description of the filetype in the LocalJobWizard page.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jas2.jds.module.AbstractDIM
openDataSet
-
-
-
-
Constructor Detail
-
BasicLocalDIM
public BasicLocalDIM(javax.swing.filechooser.FileFilter f)
Create a BasicLocalDIM. Specify a FileFilter that describes the type of files you want to open.
-
BasicLocalDIM
public BasicLocalDIM(java.lang.String description, java.lang.String filetype)Create a BasicLocalDIM. Specify a description of the files, and a filetype (e.g. .hbook)- Parameters:
description- Description of the filesfiletype- The file type
-
-
Method Detail
-
getSetupPage
public JASWizardPage getSetupPage()
Description copied from interface:LocalDIMReturn a setup page for the new job wizard to use when creating a job. See the documentation on defining pages.- Specified by:
getSetupPagein interfaceLocalDIM
-
setLocalJobBuilder
public void setLocalJobBuilder(LocalJobBuilder ljb)
Description copied from interface:LocalDIMCopy over the given object to a member field for use later. When the user selects a DIM, the wizard invokes this method, thereby providing the DIM with access to the application's local job builder. That local job builder already knows which DIM to use and knows the job name, and can be used to create a new job when all setup (on the setup wizard page returned bygetSetupPage()) is complete.- Specified by:
setLocalJobBuilderin interfaceLocalDIM
-
getFileFilter
public javax.swing.filechooser.FileFilter getFileFilter()
- Specified by:
getFileFilterin interfaceLocalDIM2
-
toString
public java.lang.String toString()
Override to provide your own description of the filetype in the LocalJobWizard page. By default uses the description from the file filter.- Overrides:
toStringin classjava.lang.Object
-
getHelpTopic
public java.lang.String getHelpTopic()
Override to provide your own help topic
-
-
DataMelt 3.0 © DataMelt by jWork.ORG