All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.beanbox.Wrapper

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

public class Wrapper
extends Panel
implements Serializable, MouseListener, MouseMotionListener

Constructor Index

 o Wrapper(Object, String)

Method Index

 o activate()
 o deactivate()
 o doLayout()
 o doMouseStuff(MouseEvent)
 o findWrapper(Component)
Static method to map from an AWT component to the associated Wrapper.
 o getBean()
get the wrapped bean.
 o getBeanName()
get the wrapped beanName
 o getChild()
get the AWT component used to represent the wrapped bean.
 o getPreferredSize()
 o handleEvent(Event)
Deprecated.
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
 o setActive(boolean)
 o setBounds(int, int, int, int)

Constructors

 o Wrapper
 public Wrapper(Object bean,
                String beanName)

Methods

 o getBean
 public Object getBean()
get the wrapped bean.

 o getBeanName
 public String getBeanName()
get the wrapped beanName

 o getChild
 public Component getChild()
get the AWT component used to represent the wrapped bean.

 o findWrapper
 public static Wrapper findWrapper(Component comp)
Static method to map from an AWT component to the associated Wrapper.

 o doLayout
 public void doLayout()
Overrides:
doLayout in class Container
 o setActive
 public void setActive(boolean isActive)
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container
 o setBounds
 public void setBounds(int x,
                       int y,
                       int width,
                       int height)
Overrides:
setBounds in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o activate
 public synchronized void activate()
 o deactivate
 public synchronized void deactivate()
 o doMouseStuff
 public synchronized void doMouseStuff(MouseEvent evt)
 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 void mouseDragged(MouseEvent evt)
 o mouseMoved
 public void mouseMoved(MouseEvent evt)
 o handleEvent
 public boolean handleEvent(Event evt)
Note: handleEvent() is deprecated. Provided for backwards compatibility only. We support old-style event handling as a backward compatibility feature when we're wrapping a bean using the old event model.

Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index