|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--edu.mit.ai.psg.ui.outliner.OutlineRendererDefault
|
+--edu.mit.ai.psg.ui.outliner.OutlineRendererCaching
|
+--edu.mit.ai.psg.jexa.ObjectRenderer
|
+--edu.mit.ai.psg.jexa.BeanRenderer
BeanRenderer: displays an object's JavaBean properties (uncovered using
java.beans.Introspector and elements of arrays.
| Inner classes inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererDefault |
OutlineRendererDefault.OutlineText |
| Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Field Summary | |
static int |
maxChildIndex
max number of child outline nodes to create for arrays or indexed properties. |
| Fields inherited from class edu.mit.ai.psg.jexa.ObjectRenderer |
defaultFont |
| Fields inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererDefault |
defaultToolTipText,
labelComponent,
myOutlineMaker,
objectComponent |
| Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
BeanRenderer(OutlineMaker outlineMaker)
|
|
| Method Summary | |
static Method |
findInvokeableMethod(Method method,
Class targetClass)
Find a Method which can be invoked or null if none found;
used to get the value of the property described by a descriptor,
Returns null if method is null, so it's easy to use as |
static void |
initialize(OutlineMaker outlineMaker)
Call initialize to install instance in outliner for any instance of java.lang.Object (called by Jexa()) |
List |
makeChildOutlineNodes(OutlineNode outlineNode)
Uses java.beans.Introspector to display properties of objects
when viewed as a JavaBean. |
static PropertyDescriptor[] |
sortDescriptorsByReadMethodOrder(PropertyDescriptor[] descriptors,
Class objClass)
Introspector keeps properties in a hashtable which obfuscates the order. |
| Methods inherited from class edu.mit.ai.psg.jexa.ObjectRenderer |
addFieldOutlineNodes,
addPopupMenuTitle,
computeLabelText,
computeObjectText,
isPublicToTopLevel,
makeOutlineNode |
| Methods inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererCaching |
decacheLabelText,
decacheObjectText,
decacheToolTipText,
getLabelText,
getLabelTextCacheKey,
getObjectText,
getObjectTextCacheKey,
getToolTipText,
getToolTipTextCacheKey,
makeLabelTextCache,
makeObjectTextCache,
makeToolTipTextCache,
notifyInserted |
| Methods inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererDefault |
addPopupMenuItems,
computeLabelText,
computeObjectText,
computeToolTipText,
equals,
getLabelComponent,
getObjectComponent,
getOutlineMaker,
getTreeCellRendererComponent,
isShowing,
makeNoteOutlineNode,
makeOutlineNode,
notifyRemoving,
paint,
toString |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static int maxChildIndex
| Constructor Detail |
public BeanRenderer(OutlineMaker outlineMaker)
| Method Detail |
public List makeChildOutlineNodes(OutlineNode outlineNode)
java.beans.Introspector to display properties of objects
when viewed as a JavaBean. (java.beans.Introspector defaults to
creating property descriptors for the object's public no-arg get- or is-
methods.) Also shows elements of arrays.
public static PropertyDescriptor[] sortDescriptorsByReadMethodOrder(PropertyDescriptor[] descriptors,
Class objClass)
public static Method findInvokeableMethod(Method method,
Class targetClass)
Method which can be invoked or null if none found;
used to get the value of the property described by a descriptor,
Returns null if method is null, so it's easy to use as . method = findInvokeableMethod(propertyDescriptor.getReadMethod(), . objectClass)
(Note that java.beans.Introspector defaults to creating property
descriptors for the object's public no-arg get- or is- methods, and
returning the reflection of these methods as the read methods for the
descriptors. However, if a public method is declared in a non-public
class, its reflection will not be invokeable (throws
IllegalAccessException). If the object also implements a public
interface with a method of the same signature, then the property may be
read through the reflection of the interface method, so that is
returned instead. Nested classes and interfaces are considered public
only if they and all their enclosing classes or interfaces are public.)
public static void initialize(OutlineMaker outlineMaker)
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||