|
CESE 1.4.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.simulogic.cese.ModelInfo
public class ModelInfo
Encapsulates a model item that can be instantiated A model also knows how to instantiate itself.
| Field Summary | |
|---|---|
static DataExport |
export
Exporter for this environment |
| Constructor Summary | |
|---|---|
ModelInfo()
Default constructor |
|
ModelInfo(java.lang.Class cls)
Constructs a model item from a class. |
|
ModelInfo(java.lang.Object obj,
java.lang.String beanName)
Constructs a model item from a serialized bean. |
|
ModelInfo(java.lang.String beanName)
Constructs a model item from the fully qualified bean name |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
java.lang.Class |
getBeanClass()
Returns the class of this bean |
java.beans.BeanDescriptor |
getBeanDescriptor()
Returns the beandescriptor of this bean |
java.beans.BeanInfo |
getBeanInfo()
Returns the beaninfo of this bean |
java.lang.String |
getBeanName()
Returns the name of this bean |
java.awt.Component |
getCustomizer()
Gets the customizer for the current object |
java.lang.String |
getDisplayName()
Returns the bean display name from the descriptor |
SimulationHistory |
getHistory()
Returns simulation history |
java.awt.Image |
getIcon(int type)
Retrieves the icon for the beaninfo |
com.javable.cese.templates.AbstractAPModel |
getModel()
Returns current model |
ModelPropertyDescriptor[] |
getModelPropertyDescriptors()
Gets the beans PropertyDescriptors. |
java.lang.String |
getName()
Returns the bean name from descriptor |
java.lang.String |
getShortDescription()
Returns the bean short description from the descriptor |
boolean |
hasCustomizer()
Returns a flag indicating if the encapsulated object has a customizer |
boolean |
isModified()
Returns modified status |
void |
newModel()
Creates a new bean from the encapsulated class. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
setHistory(SimulationHistory history)
Sets new simulation history |
void |
setModel(java.lang.Object b)
Sets new model |
void |
setModified(boolean modified)
Sets modified status |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static DataExport export
| Constructor Detail |
|---|
public ModelInfo()
public ModelInfo(java.lang.String beanName)
throws java.io.IOException,
java.lang.ClassNotFoundException
beanName - the name of the bean that this item represents.
java.io.IOException
java.lang.ClassNotFoundException
public ModelInfo(java.lang.Object obj,
java.lang.String beanName)
throws java.io.IOException,
java.lang.ClassNotFoundException
obj - an instance of the deserialized bean.beanName - the name of the resouce without the extension
java.io.IOException
java.lang.ClassNotFoundException
public ModelInfo(java.lang.Class cls)
throws java.io.IOException,
java.lang.ClassNotFoundException
cls - a valid java bean class.
java.io.IOException
java.lang.ClassNotFoundException| Method Detail |
|---|
public void newModel()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
java.io.IOExceptionBeanspublic com.javable.cese.templates.AbstractAPModel getModel()
public void setModel(java.lang.Object b)
b - new modelpublic java.lang.String getBeanName()
public java.lang.Class getBeanClass()
public java.beans.BeanInfo getBeanInfo()
public java.beans.BeanDescriptor getBeanDescriptor()
public java.awt.Image getIcon(int type)
type - -
One of BeanInfo.ICON_
public java.lang.String getName()
public java.lang.String getDisplayName()
public java.lang.String getShortDescription()
public boolean hasCustomizer()
public java.awt.Component getCustomizer()
public ModelPropertyDescriptor[] getModelPropertyDescriptors()
PropertyDescriptors.
public SimulationHistory getHistory()
public void setHistory(SimulationHistory history)
history - simulation historypublic boolean isModified()
public void setModified(boolean modified)
modified - modified statuspublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
CESE 1.4.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||