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
-
BeanBox()
- Initialize a new BeanBox.
-
doInsert(Object, String, boolean)
- Insert a given Component instance into the current BeanBox.
-
mouseClicked(MouseEvent)
-
-
mouseDragged(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mouseMoved(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
- Repaint the current beanbox.
-
queueMenuItem(ActionEvent)
- Schedule a menu item to be executed asynchronously in the BeanBox's
menu handling thread.
-
run()
-
-
save()
- This implements the "save" menu item.
-
updateMenuBar(MenuBar)
- Update the MenuBar for the current beanBox and focus bean.
BeanBox
public BeanBox()
- Initialize a new BeanBox.
updateMenuBar
public synchronized void updateMenuBar(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.
DISCLAIMER: We do not claim that this is the "proper way" to
save a collection of inter-dependent beans. Future BDKs will
expand in this area.
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
mouseClicked
public void mouseClicked(MouseEvent evt)
mousePressed
public void mousePressed(MouseEvent evt)
mouseReleased
public void mouseReleased(MouseEvent evt)
mouseEntered
public void mouseEntered(MouseEvent evt)
mouseExited
public void mouseExited(MouseEvent evt)
mouseDragged
public synchronized void mouseDragged(MouseEvent evt)
mouseMoved
public synchronized void mouseMoved(MouseEvent evt)
doInsert
public void doInsert(Object bean,
String beanName,
boolean useOldClick)
- Insert a given Component instance into the current BeanBox.
queueMenuItem
public synchronized void queueMenuItem(ActionEvent evt)
- Schedule a menu item to be executed asynchronously in the BeanBox's
menu handling thread.
run
public void run()
All Packages Class Hierarchy This Package Previous Next Index