edu.jhu.ece.iacl.jist.pipeline.parameter
Class ParamMipavDialog

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.PipePort<T>
      extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<java.lang.Class>
          extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamMipavDialog
All Implemented Interfaces:
JISTInternalParam, java.lang.Cloneable, java.lang.Comparable<ParamModel>

public class ParamMipavDialog
extends ParamModel<java.lang.Class>
implements JISTInternalParam

Parameter for storing reference to mipav dialog.

Author:
Blake Lucas (bclucas@jhu.edu)

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
PipePort.PortListener, PipePort.type
 
Field Summary
protected  JDialogScriptableBase dialog
          The dialog.
protected  java.lang.Class dialogClass
          The dialog class.
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel
cliTag, description, factory, hidden, label, loadAndSaveOnValidate, mandatory, shortLabel
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire
 
Constructor Summary
ParamMipavDialog(java.lang.Class c)
          Constructor.
ParamMipavDialog(java.lang.String name)
          Constructor.
ParamMipavDialog(java.lang.String name, java.lang.Class c)
          Constructor.
 
Method Summary
 ParamMipavDialog clone()
          Clone object.
 JDialogScriptableBase getDialog()
          Create dialog from class.
 java.lang.String getHumanReadableDataType()
           
 java.lang.Class getValue()
          Get mipav dialog class.
 java.lang.String getXMLValue()
           
 void init()
          Initialize parameter.
 java.lang.String probeDefaultValue()
           
 void setValue(java.lang.Class c)
          Set mipav dialog class.
 void setXMLValue(java.lang.String arg)
           
 java.lang.String toString()
          get description of parameter.
 void validate()
          Validate class parameter.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel
clean, compareTo, createMipavParameter, createTreeNode, dispose, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isCompatible, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, replacePath, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setMandatory, setName, setOutputView, setShortLabel, toXML, write, write, writeAndFreeNow
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
addListener, disconnect, disconnect, disconnect, disconnect, getGraphPort, getIncomingConnector, getIncomingConnectors, getIncomingPorts, getListeners, getMaxIncoming, getMaxOutgoing, getOutgoingConnector, getOutgoingConnectors, getOutgoingPorts, getOwner, getPortType, isConnected, isConnectedTo, isInputPort, isOutputPort, notifyListenersOfConnection, notifyListenersOfDisconnection, removeAllListeners, removeListener, setConnectable, setGraphPort, setMaxIncoming, setMaxOutgoing, setOwner, setPortType, setUseConnector, usingConnector
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dialogClass

protected java.lang.Class dialogClass
The dialog class.


dialog

protected transient JDialogScriptableBase dialog
The dialog.

Constructor Detail

ParamMipavDialog

public ParamMipavDialog(java.lang.Class c)
Constructor.

Parameters:
c - mipav dialog class

ParamMipavDialog

public ParamMipavDialog(java.lang.String name)
Constructor.

Parameters:
name - parameter name

ParamMipavDialog

public ParamMipavDialog(java.lang.String name,
                        java.lang.Class c)
Constructor.

Parameters:
name - parameter
c - mipav dialog class
Method Detail

clone

public ParamMipavDialog clone()
Clone object.

Specified by:
clone in class ParamModel<java.lang.Class>
Returns:
the param mipav dialog

getDialog

public JDialogScriptableBase getDialog()
Create dialog from class.

Returns:
the dialog

getValue

public java.lang.Class getValue()
Get mipav dialog class.

Specified by:
getValue in class ParamModel<java.lang.Class>
Returns:
the value

init

public void init()
Initialize parameter.

Specified by:
init in class PipePort<java.lang.Class>

setValue

public void setValue(java.lang.Class c)
              throws InvalidParameterValueException
Set mipav dialog class.

Specified by:
setValue in class ParamModel<java.lang.Class>
Parameters:
c - the c
Throws:
InvalidParameterValueException - the invalid parameter value exception

toString

public java.lang.String toString()
get description of parameter.

Specified by:
toString in class ParamModel<java.lang.Class>
Returns:
the string

validate

public void validate()
              throws InvalidParameterException
Validate class parameter.

Specified by:
validate in class ParamModel<java.lang.Class>
Throws:
InvalidParameterException - the invalid parameter exception

getHumanReadableDataType

public java.lang.String getHumanReadableDataType()
Specified by:
getHumanReadableDataType in class ParamModel<java.lang.Class>

getXMLValue

public java.lang.String getXMLValue()
Specified by:
getXMLValue in class ParamModel<java.lang.Class>

setXMLValue

public void setXMLValue(java.lang.String arg)
Specified by:
setXMLValue in class ParamModel<java.lang.Class>

probeDefaultValue

public java.lang.String probeDefaultValue()
Specified by:
probeDefaultValue in class ParamModel<java.lang.Class>