|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
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 | +--javax.swing.JLabel | +--com.ibm.able.editor.AbleViewObject
This class provides function similar to the Wrapper class in the BDK. It introspects the underlying AbleBean and provides a GUI interface for manipulation in the AbleEditorCanvas. It is meant to be a design-time only object.
Inner classes inherited from class javax.swing.JLabel |
---|
javax.swing.JLabel.AccessibleJLabel |
Inner classes inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
---|---|
protected int |
myBeanSlot
|
protected java.lang.String |
myEventType
|
protected AbleBean |
myUnderlyingAbleBean
|
protected java.lang.Object |
myUnderlyingObject
|
protected boolean |
myUnderlyingObjectIsAbleBean
|
Fields inherited from class javax.swing.JLabel |
---|
labelFor |
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 |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AbleViewObject(java.lang.Object theObject,
AbleEditorFrame theFrame)
Construct a ViewObject over an AbleBean. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent theActionEvent)
Process action events -- usually context menu actions |
void |
closeCustomizer()
Dispose of customizer windows. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
java.lang.Object[] |
getArrayNames()
Return an array of array (indexed property) names |
java.util.Hashtable |
getArrays()
Return a hashtable of arrays (indexed properties) (name and property descriptors) |
AbleBean |
getBean()
Get the able bean that this view object is wrapping Note: could be AbleBeanAdaptor if myUnderlyingObject is not an AbleBean |
protected void |
getBeanProperties()
Introspect the bean to get all of the members of this object and build a list of parameters and arrays. |
java.util.Vector |
getBufferConnections()
Return the vector of source buffer connections to the object used for drawing the buffer connections. |
java.util.Hashtable |
getCustomInspectorPanels()
Return the list of custom inspector panels, if any. |
java.util.Hashtable |
getCustomInspectors()
Return the list of custom inspectors, if any. |
java.lang.String |
getEventType()
|
java.awt.Point |
getInputPos()
Return the left midpoint of the object for drawing a connection |
java.lang.String |
getKey()
Return a key of the form "parentname.beanname", or "beanclass.currentTimeMillis" in the event of an error. |
java.lang.String |
getName()
Return the object name for display purposes |
java.lang.Object |
getObject()
Get the object that this view object is wrapping |
java.lang.String |
getObjectName()
Return the object name for display purposes |
java.awt.Point |
getOutputPos()
Return the right midpoint of the object for drawing a connection |
java.lang.Object[] |
getParameterNames()
Return an array of parameter (non-indexed property) names |
java.util.Hashtable |
getParameters()
Return a hashtable of parameters (name and property descriptors) |
javax.swing.JPopupMenu |
getPopupMenu(java.awt.event.MouseEvent theEvent,
AbleViewObject theView)
|
java.lang.Object[] |
getProperties()
Return an array of all object property names |
int |
getSlot()
Get the horizontal position on the canvas |
protected void |
introspectBean()
Introspect the bean, get the customizer class (if any) the icon for display on the canvas, etc. |
void |
mouseClicked(java.awt.event.MouseEvent theMouseEvent)
|
void |
mouseEntered(java.awt.event.MouseEvent theMouseEvent)
|
void |
mouseExited(java.awt.event.MouseEvent theMouseEvent)
|
void |
mousePressed(java.awt.event.MouseEvent theMouseEvent)
|
void |
mouseReleased(java.awt.event.MouseEvent theMouseEvent)
|
void |
paintComponent(java.awt.Graphics theGraphics)
paint the icon for this bean on the canvas |
void |
propertyChange(java.beans.PropertyChangeEvent theEvent)
Handle propertyChange events from underlying AbleBean. |
void |
setSelected(boolean theSelectedState)
|
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
Methods inherited from class javax.swing.JLabel |
---|
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
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, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object myUnderlyingObject
protected AbleBean myUnderlyingAbleBean
protected boolean myUnderlyingObjectIsAbleBean
protected java.lang.String myEventType
protected int myBeanSlot
Constructor Detail |
public AbleViewObject(java.lang.Object theObject, AbleEditorFrame theFrame)
theObject
- A JavaBean (usually AbleBean) object
theFrame
- An AbleEditorFrame reference used to modify its list of
open view object customizers.Method Detail |
public void actionPerformed(java.awt.event.ActionEvent theActionEvent)
actionPerformed
in interface java.awt.event.ActionListener
theActionEvent
- An ActionEvent generated by user action
public void mouseClicked(java.awt.event.MouseEvent theMouseEvent)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent theMouseEvent)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent theMouseEvent)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent theMouseEvent)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent theMouseEvent)
mouseReleased
in interface java.awt.event.MouseListener
public void propertyChange(java.beans.PropertyChangeEvent theEvent)
propertyChange
in interface java.beans.PropertyChangeListener
public java.lang.Object getObject()
public AbleBean getBean()
public java.lang.String getName()
getName
in class java.awt.Component
public java.lang.String getKey()
public java.lang.String getObjectName()
public java.lang.String getEventType()
public int getSlot()
public java.util.Hashtable getArrays()
public java.lang.Object[] getArrayNames()
public java.util.Hashtable getParameters()
public java.lang.Object[] getParameterNames()
public java.lang.Object[] getProperties()
public java.util.Hashtable getCustomInspectors()
public java.util.Hashtable getCustomInspectorPanels()
public java.util.Vector getBufferConnections()
public void setSelected(boolean theSelectedState)
public java.awt.Point getOutputPos()
public java.awt.Point getInputPos()
public void paintComponent(java.awt.Graphics theGraphics)
paintComponent
in class javax.swing.JComponent
protected void introspectBean()
protected void getBeanProperties()
public javax.swing.JPopupMenu getPopupMenu(java.awt.event.MouseEvent theEvent, AbleViewObject theView)
public java.lang.String toString()
Note that this implementation returns the underlying bean's name.
toString
in class java.awt.Component
public void closeCustomizer()
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |