All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.beanbox.BeanBox

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

public class BeanBox
extends Panel
implements Serializable, Runnable, MouseListener, MouseMotionListener

Constructor Index

 o BeanBox()
Initialize a new BeanBox.

Method Index

 o doInsert(Object, String, String, boolean, boolean)
Insert a given Component instance into the current BeanBox.
 o getTopWrapper()
Get the top wrapper (i.e.
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
Repaint the current beanbox.
 o queueMenuItem(ActionEvent)
Schedule a menu item to be executed asynchronously in the BeanBox's menu handling thread.
 o run()
 o save()
This implements the "save" menu item.
 o updateMenuBar(MenuBar)
Update the MenuBar for the current beanBox and focus bean.

Constructors

 o BeanBox
 public BeanBox()
Initialize a new BeanBox.

Methods

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

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

 o 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.

 o paint
 public void paint(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 Container
 o mouseClicked
 public void mouseClicked(MouseEvent evt)
 o mousePressed
 public void mousePressed(MouseEvent evt)
 o mouseReleased
 public void mouseReleased(MouseEvent evt)
 o mouseEntered
 public void mouseEntered(MouseEvent evt)
 o mouseExited
 public void mouseExited(MouseEvent evt)
 o mouseDragged
 public synchronized void mouseDragged(MouseEvent evt)
 o mouseMoved
 public synchronized void mouseMoved(MouseEvent evt)
 o doInsert
 public void doInsert(Object bean,
                      String beanLabel,
                      String beanName,
                      boolean useOldClick,
                      boolean fromPrototype)
Insert a given Component instance into the current BeanBox.

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

 o run
 public void run()

All Packages  Class Hierarchy  This Package  Previous  Next  Index