|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.savarese.unicorn.ui.AbstractObjectPanelModel<java.lang.Object>
org.savarese.unicorn.ui.JavaBeanPanelModel
public class JavaBeanPanelModel
An ObjectPanelModel implementation for JavaBeans.
| Field Summary |
|---|
| Fields inherited from class org.savarese.unicorn.ui.AbstractObjectPanelModel |
|---|
_listeners_, _object_ |
| Constructor Summary | |
|---|---|
JavaBeanPanelModel(java.lang.Object bean)
Instantiates a JavaBeanPanelModel wrapping the provided bean. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attribute)
Retrieves a named attribute from the adapted object. |
javax.management.MBeanInfo |
getObjectInfo()
Returns a description of the object. |
java.lang.Object |
invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.Class[] types,
java.lang.String[] signature)
Invokes an operation of the adapted object and returns its result, if any. |
boolean |
isValid()
Determines if the model is in a valid state. |
void |
setAttribute(java.lang.String attribute,
java.lang.Object value)
Sets the value of a named attribute of the adapted object. |
void |
setObject(java.lang.Object bean)
Sets the object to be adapted to the interface. |
| Methods inherited from class org.savarese.unicorn.ui.AbstractObjectPanelModel |
|---|
_notifyListeners_, addObjectPanelModelListener, getObject, getObjectName, removeObjectPanelModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaBeanPanelModel(java.lang.Object bean)
bean - The JavaBean to wrap.| Method Detail |
|---|
public void setAttribute(java.lang.String attribute,
java.lang.Object value)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
ObjectPanelModel
attribute - The name of the attribute to set.value - The new value of the attribute.
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.Object getAttribute(java.lang.String attribute)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
ObjectPanelModel
attribute - The name of the attribute to retrieve.
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetExceptionpublic void setObject(java.lang.Object bean)
ObjectPanelModel
setObject in interface ObjectPanelModel<java.lang.Object>setObject in class AbstractObjectPanelModel<java.lang.Object>bean - The object to be adapted.
public java.lang.Object invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.Class[] types,
java.lang.String[] signature)
throws java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.ClassNotFoundException,
java.lang.IllegalAccessException
ObjectPanelModel
operation - The name of the operation to invoke.params - An array of parameters for the operation.types - An array containing the types of the operation parameters.signature - A string representation of the types (i.e., the
fully qualified class names) of the operation parameters.
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.IllegalAccessExceptionpublic javax.management.MBeanInfo getObjectInfo()
ObjectPanelModel
public boolean isValid()
ObjectPanelModel
isValid in interface ObjectPanelModel<java.lang.Object>isValid in class AbstractObjectPanelModel<java.lang.Object>
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||