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

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

public abstract class EditPackageModel
extends java.lang.Object

This is the model associated to CreatePackageDialog.

Author:
sylvain

Field Summary
protected  NodePackage current
          Current node (optional).
protected  NodePackage parent
          Parent node.
 
Constructor Summary
EditPackageModel(ProjectContext context, NodePackage parent)
          Create model.
 
Method Summary
 NodePackage getCurrent()
          Get optional current NodePackage (is editing an existing package).
 java.lang.String getLabel()
          Package label.
 java.util.ArrayList<PackageExtensionManager> getPlugins()
           
protected abstract  void performAction()
          Method to be implemented for handling performAction.
 void performOk()
          Method called on OK.
 void setCurrent(NodePackage current)
          Set optional current NodePackage (is editing an existing package).
 void setLabel(java.lang.String label)
          Package label.
 void setPlugins(java.util.ArrayList<PackageExtensionManager> plugins)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected NodePackage parent
Parent node.


current

protected NodePackage current
Current node (optional).

Constructor Detail

EditPackageModel

public EditPackageModel(ProjectContext context,
                        NodePackage parent)
Create model.

Parameters:
parent - Parent package.
Method Detail

getLabel

public java.lang.String getLabel()
Package label.


setLabel

public void setLabel(java.lang.String label)
Package label.


performAction

protected abstract void performAction()
Method to be implemented for handling performAction.


performOk

public void performOk()
Method called on OK.


getCurrent

public NodePackage getCurrent()
Get optional current NodePackage (is editing an existing package).


setCurrent

public void setCurrent(NodePackage current)
Set optional current NodePackage (is editing an existing package).


getPlugins

public java.util.ArrayList<PackageExtensionManager> getPlugins()
Returns:
the plugins

setPlugins

public void setPlugins(java.util.ArrayList<PackageExtensionManager> plugins)
Parameters:
plugins - the plugins to set