edu.iu.iv.gui.load
Class LoadPlugin

java.lang.Object
  |
  +--edu.iu.iv.gui.load.LoadPlugin
All Implemented Interfaces:
Plugin

public class LoadPlugin
extends java.lang.Object
implements Plugin

Loads a model from file.

Version:
0.1
Author:
Shashikant

Constructor Summary
LoadPlugin()
           
 
Method Summary
 java.lang.String getDefaultMenuPath()
          Gets this plugin's menu path, a "/"-delimited string which describes where in the GUI menu its menu item will be inserted.
 java.lang.String getDescription()
           
 javax.swing.Icon getMenuIcon()
          Gets the menu icon to be shown on the menu for this plugin.
 PropertyMap getPropertyMap()
          No additional properties.
 javax.swing.JInternalFrame getView(java.lang.Object model)
          This implementation loads the model into memory and adds it to the IVC.
 boolean supports(java.lang.Object model)
          Determines whether a model is supported by this plugin or not.
 java.lang.String unsupportedReason(java.lang.Object model)
          Retrieves the reason why a particular model is unsupported by this plugin.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadPlugin

public LoadPlugin()
Method Detail

getPropertyMap

public PropertyMap getPropertyMap()
No additional properties.

Specified by:
getPropertyMap in interface Plugin
Returns:
a plugin property map from PluginProperty->Value
See Also:
Plugin.getPropertyMap()

getDefaultMenuPath

public java.lang.String getDefaultMenuPath()
Description copied from interface: Plugin
Gets this plugin's menu path, a "/"-delimited string which describes where in the GUI menu its menu item will be inserted. For example, "File/Save/To Database" places the menu item "To Database" in the "Save" submenu of the "File" top-level menu.

Specified by:
getDefaultMenuPath in interface Plugin
Returns:
this plugin's menu path
See Also:
edu.iu.iv.core.Plugin#getMenuPath()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Plugin
Returns:
a description of this plugin
See Also:
edu.iu.iv.core.Plugin#getDescription()

supports

public boolean supports(java.lang.Object model)
Description copied from interface: Plugin
Determines whether a model is supported by this plugin or not.

Specified by:
supports in interface Plugin
Parameters:
model - the model to check for support
Returns:
true if the given model is supported, false otherwise
See Also:
edu.iu.iv.core.Plugin#supports(java.lang.Object)

unsupportedReason

public java.lang.String unsupportedReason(java.lang.Object model)
Description copied from interface: Plugin
Retrieves the reason why a particular model is unsupported by this plugin.

Specified by:
unsupportedReason in interface Plugin
Parameters:
model - the model to look up a reason for
Returns:
the reason the given model is unsupported
See Also:
edu.iu.iv.core.Plugin#unsupportedReason(java.lang.Object)

getView

public javax.swing.JInternalFrame getView(java.lang.Object model)
This implementation loads the model into memory and adds it to the IVC. It returns null since it builds its own GUI for the file chooser.

Specified by:
getView in interface Plugin
Parameters:
model - the model to get a view of or to be acted upon.
Returns:
a swing frame that can then be added to the IVC User Interface.
See Also:
edu.iu.iv.core.Plugin#getView()

getMenuIcon

public javax.swing.Icon getMenuIcon()
Description copied from interface: Plugin
Gets the menu icon to be shown on the menu for this plugin.

Specified by:
getMenuIcon in interface Plugin
Returns:
this plugin's icon, or null if it has none
See Also:
edu.iu.iv.core.Plugin#getMenuIcon()