|
ABLE, Version 1.1b | |||||||||
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 |
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 |
Constructor Summary | |
AbleViewObject(java.lang.Object theObject)
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 |
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 |
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(boolean showClipboardMenuItems)
|
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,
paramString,
setDisabledIcon,
setDisplayedMnemonic,
setDisplayedMnemonic,
setHorizontalAlignment,
setHorizontalTextPosition,
setIcon,
setIconTextGap,
setLabelFor,
setText,
setUI,
setVerticalAlignment,
setVerticalTextPosition,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintChildren,
paintImmediately,
paintImmediately,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
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,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
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,
printAll,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
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)
theObject
- A JavaBean (usually AbleBean) object
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent theActionEvent)
theActionEvent
- An ActionEvent generated by user action
public void mouseClicked(java.awt.event.MouseEvent theMouseEvent)
public void mouseEntered(java.awt.event.MouseEvent theMouseEvent)
public void mouseExited(java.awt.event.MouseEvent theMouseEvent)
public void mousePressed(java.awt.event.MouseEvent theMouseEvent)
public void mouseReleased(java.awt.event.MouseEvent theMouseEvent)
public void propertyChange(java.beans.PropertyChangeEvent theEvent)
public java.lang.Object getObject()
public AbleBean getBean()
public java.lang.String getName()
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.Vector getBufferConnections()
public void setSelected(boolean theSelectedState)
public java.awt.Point getOutputPos()
public java.awt.Point getInputPos()
public void paintComponent(java.awt.Graphics theGraphics)
protected void introspectBean()
protected void getBeanProperties()
public javax.swing.JPopupMenu getPopupMenu(boolean showClipboardMenuItems)
public java.lang.String toString()
Note that this implementation returns the underlying bean's name.
public void closeCustomizer()
public static java.lang.String Copyright()
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |