|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbluej.extensions.BObject
public class BObject
A wrapper for an object on the BlueJ object bench. This wraps an object so you can add and remove it from the bench.
BConstructor,
BMethod,
BField| Method Summary | |
|---|---|
void |
addToBench(java.lang.String instanceName)
Adds this object on the object bench. |
BClass |
getBClass()
Return the class of this object. |
java.lang.String |
getInstanceName()
Return the name of this object on the object bench. |
BPackage |
getPackage()
Returns the package this object belongs to. |
void |
removeFromBench()
Removes this object from the object bench. |
java.lang.String |
toString()
Returns a string representation of the Object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public BPackage getPackage()
throws ProjectNotOpenException,
PackageNotFoundException
ProjectNotOpenException - if the project to which this object belongs has been closed by the user.
PackageNotFoundException - if the package to which this object belongs has been deleted by the user.
public void removeFromBench()
throws ProjectNotOpenException,
PackageNotFoundException
ProjectNotOpenException - if the project to which this object belongs has been closed by the user.
PackageNotFoundException - if the package to which this object belongs has been deleted by the user.
public void addToBench(java.lang.String instanceName)
throws ProjectNotOpenException,
PackageNotFoundException
instanceName - The name you want this object to have on the bench.
ProjectNotOpenException - if the project to which this object belongs has been closed by the user.
PackageNotFoundException - if the package to which this object belongs has been deleted by the user.public java.lang.String getInstanceName()
public BClass getBClass()
throws ProjectNotOpenException,
PackageNotFoundException,
ClassNotFoundException
java.lang.Object.getClass()
ProjectNotOpenException - if the project to which this object belongs has been closed by the user.
ClassNotFoundException - if the class has been deleted by the user.
PackageNotFoundException - if the Package has been deleted by the user.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||