org.devaki.nextobjects.workspace.models.objects
Class BaseObject

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.objects.BaseObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BaseClass, BaseLine

public abstract class BaseObject
extends java.lang.Object
implements java.io.Serializable

Objects of the models.

Author:
Emmanuel Florent
See Also:
Serialized Form

Constructor Summary
BaseObject()
          Construct a standard nextGraphicsObject
BaseObject(BaseModel pModel)
          Construct an object with a pre-defined model
BaseObject(BaseObject pObject)
          Construct a (next)Object by copying another nextGraphicsObject
 
Method Summary
 java.lang.String getCode()
          Get the code
 java.util.Vector getColumns()
          Get the columns of the object
 java.util.Vector getData()
          Return the list of fields
 boolean getDataChanged()
          Return if the data has changed or not
 java.lang.String getDescription()
          Get the description
 CustomTreeNode getDynamicTreeNode()
          Get the CustomTreeNode object associated
 BaseModel getMyModel()
          Get the model
 java.lang.String getName()
          Get the name
 java.lang.String getNotes()
          Get notes for the object
abstract  ObjectView getObjectView()
          Get the object view
 void resetModelStatus()
          Reset the status of the model because it has been changed
 void setCode(java.lang.String pCode)
          Changes the code
 void setColumns(java.util.Vector vector)
          Set the columns of the object
 void setDataChanged(boolean pDataChanged)
          Set if the data has changed or not
 void setDescription(java.lang.String pDescription)
          Changes the description
 void setDynamicTreeNode(CustomTreeNode pNode)
          Defines the CustomTreeNode associated to the current object
 void setMyModel(BaseModel pModel)
          Changes the model
 void setName(java.lang.String pName)
          Changes the name
 void setNotes(java.lang.String pNotes)
          Set notes for the object
 java.lang.String toString()
          Returns a String representation of the object Really usefull in the treeview ow/ would avoid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseObject

public BaseObject()
Construct a standard nextGraphicsObject


BaseObject

public BaseObject(BaseModel pModel)
Construct an object with a pre-defined model

Parameters:
pModel - the context model

BaseObject

public BaseObject(BaseObject pObject)
Construct a (next)Object by copying another nextGraphicsObject

Parameters:
pObject - the object to clone
Method Detail

getObjectView

public abstract ObjectView getObjectView()
Get the object view

Returns:
the objectview

toString

public final java.lang.String toString()
Returns a String representation of the object Really usefull in the treeview ow/ would avoid.

Returns:
the name

setNotes

public final void setNotes(java.lang.String pNotes)
Set notes for the object

Parameters:
pNotes - the notes

setName

public final void setName(java.lang.String pName)
Changes the name

Parameters:
pName - the name

setCode

public final void setCode(java.lang.String pCode)
Changes the code

Parameters:
pCode - the code

setDescription

public final void setDescription(java.lang.String pDescription)
Changes the description

Parameters:
pDescription - the description

setDataChanged

public final void setDataChanged(boolean pDataChanged)
Set if the data has changed or not

Parameters:
pDataChanged - is the data changed

setMyModel

public final void setMyModel(BaseModel pModel)
Changes the model

Parameters:
pModel - the context model

setDynamicTreeNode

public final void setDynamicTreeNode(CustomTreeNode pNode)
Defines the CustomTreeNode associated to the current object

Parameters:
pNode - the node

getNotes

public final java.lang.String getNotes()
Get notes for the object

Returns:
the notes

getName

public final java.lang.String getName()
Get the name

Returns:
the name

getCode

public final java.lang.String getCode()
Get the code

Returns:
the code

getDescription

public final java.lang.String getDescription()
Get the description

Returns:
the description

getData

public final java.util.Vector getData()
Return the list of fields

Returns:
the columns

getDataChanged

public final boolean getDataChanged()
Return if the data has changed or not

Returns:
is data changed

getMyModel

public final BaseModel getMyModel()
Get the model

Returns:
the model

getDynamicTreeNode

public final CustomTreeNode getDynamicTreeNode()
Get the CustomTreeNode object associated

Returns:
the tree node

resetModelStatus

public final void resetModelStatus()
Reset the status of the model because it has been changed


getColumns

public final java.util.Vector getColumns()
Get the columns of the object

Returns:
the columns

setColumns

public final void setColumns(java.util.Vector vector)
Set the columns of the object

Parameters:
vector - a set of columns


Copyright © 2002-2004 devaki.org. All Rights Reserved.