antsnest.level
Interface Level

All Known Implementing Classes:
AntBeanLevel, LevelImpl, ModelLevel, RunnerLevel, XMLLevel

public interface Level

Defines operations a level must implement to be plugged into Ant's Nest

Author:
Chris Clohosy

Method Summary
 void antInfoChanged(AntInfo newInfo)
          Notifies the level the Ant information object has changed
 String getClassname()
          Gets the name of the class behind this level
 String getDescription()
          Gets a description of this level
 long getID()
          Gets the ID of the level
 boolean isUtility()
          Gets whether this level is a utility rather than an editor
 String performCopy()
          Notifies the level a copy operation has been performed
 String performCut()
          Notifies the level a cut operation has been performed
 void performPaste(String data)
          Notifies the level a paste operation has been performed
 void prepareForDisplay()
          Notifies the level that it's about to be displayed
 void prepareToBeHidden()
          Notifies the level that it's about to be hidden
 void projectChanged(AntProject newProject)
          Notifies the level the Ant project has changed
 void setAppTasks(ApplicationTasks appTasks)
          Sets the object that can perform application tasks
 void setID(long id)
          Sets the ID of the level
 

Method Detail

getID

long getID()
Gets the ID of the level

Returns:
a long, the level's ID

setID

void setID(long id)
Sets the ID of the level

Parameters:
id - the level's ID

getClassname

String getClassname()
Gets the name of the class behind this level

Returns:
a String, the class name

setAppTasks

void setAppTasks(ApplicationTasks appTasks)
Sets the object that can perform application tasks

Parameters:
appTasks - the object that can perform application tasks

getDescription

String getDescription()
Gets a description of this level

Returns:
a String, the description

performPaste

void performPaste(String data)
Notifies the level a paste operation has been performed

Parameters:
data - the data that was stored in the clipboard

performCopy

String performCopy()
Notifies the level a copy operation has been performed

Returns:
a String, the data that must be stored in the clipboard

performCut

String performCut()
Notifies the level a cut operation has been performed

Returns:
a String, the data that must be stored in the clipboard

projectChanged

void projectChanged(AntProject newProject)
Notifies the level the Ant project has changed

Parameters:
newProject - the newly changed project

antInfoChanged

void antInfoChanged(AntInfo newInfo)
Notifies the level the Ant information object has changed

Parameters:
newInfo - the newly changed information object

prepareForDisplay

void prepareForDisplay()
Notifies the level that it's about to be displayed


prepareToBeHidden

void prepareToBeHidden()
Notifies the level that it's about to be hidden


isUtility

boolean isUtility()
Gets whether this level is a utility rather than an editor