sun.beanbox
Class BeanBox

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--sun.beanbox.BeanBox

public class BeanBox
extends java.awt.Panel
implements java.io.Serializable, java.lang.Runnable, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.beans.beancontext.BeanContextProxy

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
BeanBox()
          Initialize a new BeanBox.
 
Method Summary
 void doInsert(java.lang.Object bean, java.lang.String beanLabel, java.lang.String beanName, boolean useOldClick, boolean fromPrototype)
          Insert a given Component instance into the current BeanBox.
 java.beans.beancontext.BeanContextChild getBeanContextProxy()
           
 Wrapper getTopWrapper()
          Get the top wrapper (i.e.
 void mouseClicked(java.awt.event.MouseEvent evt)
           
 void mouseDragged(java.awt.event.MouseEvent evt)
           
 void mouseEntered(java.awt.event.MouseEvent evt)
           
 void mouseExited(java.awt.event.MouseEvent evt)
           
 void mouseMoved(java.awt.event.MouseEvent evt)
           
 void mousePressed(java.awt.event.MouseEvent evt)
           
 void mouseReleased(java.awt.event.MouseEvent evt)
           
 void paint(java.awt.Graphics g)
          Repaint the current beanbox.
 void queueMenuItem(java.awt.event.ActionEvent evt)
          Schedule a menu item to be executed asynchronously in the BeanBox's menu handling thread.
 void removeAll()
          BeanContext support ...
 void run()
           
 void save()
          This implements the "save" menu item.
 void setServicesVisible(boolean showService)
           
 void updateMenuBar(java.awt.MenuBar bar)
          Update the MenuBar for the current beanBox and focus bean.
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeContainerListener, removeNotify, setCursor, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanBox

public BeanBox()
Initialize a new BeanBox.
Method Detail

getTopWrapper

public Wrapper getTopWrapper()
Get the top wrapper (i.e. this BeanBox's wrapper)

updateMenuBar

public void updateMenuBar(java.awt.MenuBar bar)
Update the MenuBar for the current beanBox and focus bean.

save

public void save()
This implements the "save" menu item. This stores away the current state of the BeanBox to a named file. Note: The format is builder-dependent.

removeAll

public void removeAll()
BeanContext support ...
Overrides:
removeAll in class java.awt.Container

paint

public void paint(java.awt.Graphics g)
Repaint the current beanbox. Actually all we need to do is take note that any rubber-band lines or boxes have been removed.
Overrides:
paint in class java.awt.Container

getBeanContextProxy

public java.beans.beancontext.BeanContextChild getBeanContextProxy()
Specified by:
getBeanContextProxy in interface java.beans.beancontext.BeanContextProxy
Returns:
my BeanContextServices Delegate ...

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent evt)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent evt)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

doInsert

public void doInsert(java.lang.Object bean,
                     java.lang.String beanLabel,
                     java.lang.String beanName,
                     boolean useOldClick,
                     boolean fromPrototype)
Insert a given Component instance into the current BeanBox.

queueMenuItem

public void queueMenuItem(java.awt.event.ActionEvent evt)
Schedule a menu item to be executed asynchronously in the BeanBox's menu handling thread.

run

public void run()
Specified by:
run in interface java.lang.Runnable

setServicesVisible

public void setServicesVisible(boolean showService)