|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ObjectPanelModel<O>
Interface for adapting objects for use by ObjectPanel.
| Method Summary | |
|---|---|
void |
addObjectPanelModelListener(ObjectPanelModelListener<O> listener)
Adds an ObjectPanelModelListener to the model. |
java.lang.Object |
getAttribute(java.lang.String attribute)
Retrieves a named attribute from the adapted object. |
O |
getObject()
Retrieves the object adapted to the interface. |
javax.management.MBeanInfo |
getObjectInfo()
Returns a description of the object. |
java.lang.String |
getObjectName()
Returns a string that identifies 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 |
removeObjectPanelModelListener(ObjectPanelModelListener<O> listener)
Removes an ObjectPanelModelListener from the model. |
void |
setAttribute(java.lang.String attribute,
java.lang.Object value)
Sets the value of a named attribute of the adapted object. |
void |
setObject(O obj)
Sets the object to be adapted to the interface. |
| Method Detail |
|---|
void setObject(O obj)
obj - The object to be adapted.O getObject()
java.lang.String getObjectName()
javax.management.MBeanInfo getObjectInfo()
boolean isValid()
java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
java.lang.Exception
attribute - The name of the attribute to retrieve.
javax.management.AttributeNotFoundException - If the attribute does not exist.
java.lang.Exception - If an error occurs while retrieving the
attribute. An exception may occur while communicating with a
remote object, while using reflection, or other reasons specific
to the model implementation.
void setAttribute(java.lang.String attribute,
java.lang.Object value)
throws javax.management.AttributeNotFoundException,
java.lang.Exception
attribute - The name of the attribute to set.value - The new value of the attribute.
javax.management.AttributeNotFoundException - If the attribute does not exist.
java.lang.Exception - If an error occurs while retrieving the
attribute. An exception may occur while communicating with a
remote object, while using reflection, or other reasons specific
to the model implementation.
java.lang.Object invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.Class[] types,
java.lang.String[] signature)
throws java.lang.Exception
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.Exception - If an unexpected condition arises that prvents
the successful invocation of the operation.void addObjectPanelModelListener(ObjectPanelModelListener<O> listener)
ObjectPanelModelListener to the model. The
listener is notifiied whenever the model changes.
listener - The listener to add.void removeObjectPanelModelListener(ObjectPanelModelListener<O> listener)
ObjectPanelModelListener from the model.
listener - The listener to remove.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||