com.alveole.studio.web.packager.dialogs
Class StaticFileBasicModel

java.lang.Object
  extended by com.alveole.studio.web.packager.dialogs.StaticFileBasicModel

public abstract class StaticFileBasicModel
extends java.lang.Object

This class is associated with a StaticFileBasicView. It contains all values and actions that support the associated view.

Author:
sylvain

Field Summary
protected  NodeView view
          Optional NodeView.
 
Constructor Summary
StaticFileBasicModel(ProjectContext projectContext, NodePackage currentPackage)
          Constructor.
 
Method Summary
abstract  void actionPerformed()
          Method called when OK is clicked.
 java.lang.String getLabel()
          A label to display this static file.
 NodePackage getNodePackage()
          Get parent package node.
 ProjectContext getProjectContext()
          Current project context.
 java.lang.String getStaticFilePath()
          This is the static file path.
 NodeView getView()
          Get the optional view.
 void openStaticFile()
          Open tatic file is delegated to StaticFileGenericViewManager.
 void setLabel(java.lang.String label)
          A label to display this static file.
 void setNodePackage(NodePackage nodePackage)
          Set parent package node.
 void setProjectContext(ProjectContext projectContext)
          Current project context.
 void setStaticFilePath(java.lang.String staticPath)
          This is the static file path.
 void setView(NodeView view)
          Sets the optional view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected NodeView view
Optional NodeView.

Constructor Detail

StaticFileBasicModel

public StaticFileBasicModel(ProjectContext projectContext,
                            NodePackage currentPackage)
Constructor.

Method Detail

openStaticFile

public void openStaticFile()
Open tatic file is delegated to StaticFileGenericViewManager. It opens Statif file file if it exists, or it create it.


getStaticFilePath

public java.lang.String getStaticFilePath()
This is the static file path.


setStaticFilePath

public void setStaticFilePath(java.lang.String staticPath)
This is the static file path.


getLabel

public java.lang.String getLabel()
A label to display this static file.


setLabel

public void setLabel(java.lang.String label)
A label to display this static file.


actionPerformed

public abstract void actionPerformed()
Method called when OK is clicked.


getView

public NodeView getView()
Get the optional view.


setView

public void setView(NodeView view)
Sets the optional view.


getNodePackage

public NodePackage getNodePackage()
Get parent package node.


setNodePackage

public void setNodePackage(NodePackage nodePackage)
Set parent package node.


getProjectContext

public ProjectContext getProjectContext()
Current project context.


setProjectContext

public void setProjectContext(ProjectContext projectContext)
Current project context.