borland Packages  Class Hierarchy  jbcl.view Package  Index 

BeanPanel component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----borland.jbcl.view.BeanPanel
                                   +----borland.jbcl.control.BevelPanel
                                   +----borland.jbcl.control.GroupBox
                                   +----borland.jbcl.view.ButtonView
                                   +----borland.jbcl.view.FieldView
                                   +----borland.jbcl.view.TabsetView
                                   +----borland.jbcl.control.SplitPanel
                                   +----borland.jbcl.view.HeaderView

About the BeanPanel component

Variables  Constructors  Properties  Methods  Event Listeners

Implements ImageObserver, MenuContainer, Serializable

The BeanPanel component is a convenient panel class to use as a superclass for JavaBean views and controls. It subdispatches focus events, key events, and mouse events; manages action listeners; and manages tab/focus awareness.


BeanPanel variables

Variables implemented in this class

Variables implemented in com.sun.java.swing.JComponent

Variables implemented in java.awt.Component

BeanPanel constructors

BeanPanel properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.sun.java.swing.JComponent

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

BeanPanel methods

Methods implemented in this class

Methods implemented in com.sun.java.swing.JComponent

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

BeanPanel event listeners


BeanPanel variables

actionMulticaster

  protected transient ActionMulticaster actionMulticaster

focusAware

  protected boolean focusAware

focusState

  protected int focusState

foundParentWindow

  protected transient boolean foundParentWindow

texture

  protected transient Image texture

winListener

  protected transient WindowListener winListener

BeanPanel constructors

BeanPanel()

  public BeanPanel()
Creates a BeanPanel component.

BeanPanel(java.awt.LayoutManager)

  public BeanPanel(java.awt.LayoutManager layout)
Creates a BeanPanel component that uses the specified LayoutManger.

BeanPanel properties

background

 public void setBackground(java.awt.Color c)
Determines the color the background of the panel.

focusTraversable

 public boolean isFocusTraversable()
Overridden component method to allow control of focus-awareness.

foreground

 public void setForeground(java.awt.Color c)
Determines the foreground color of the panel.

minimumSize

 public Dimension getMinimumSize()
Returns the minimum size of the panel.

opaque

 public boolean isOpaque()
 public void setOpaque(boolean opaque)
Determines whether the panel is opaque so that objects behind it are no visible. If opaque is true, covered objects are not visible. If opaque is false, items behind the panel show through the panel and are visible.

texture

 public Image getTexture()
 public void setTexture(java.awt.Image texture)
The texture property tiles the specified Image repeatedly so that the background of the panel appears to have a texture.

Parameters:

texture
The Image you want tiled as the background of the panel.

BeanPanel methods

addNotify()

  public void addNotify()
Registers BeanPanel as a listener for activation and deactivation events in the window at the top of the hierarchy.

Overrides: java.awt.Panel.addNotify()

dropParentWindow()

  protected void dropParentWindow()
Called to force the bean to locate its parent window in the component hierarchy, and remove its WindowListener

findParentWindow()

  protected void findParentWindow()
Forces the bean to locate its parent window in the component hierarchy so that the panel can listen for focus changes.

isFocusAware()

  protected boolean isFocusAware()
Protected method for a focusAware property that a subclass can expose as public if it has the potential for accepting focus.

paintComponent(java.awt.Graphics)

  public void paintComponent(java.awt.Graphics g)
Paints or repaints the panel.

Overrides: com.sun.java.swing.JComponent.paintComponent(java.awt.Graphics)

processActionEvent(java.awt.event.ActionEvent)

  protected void processActionEvent(java.awt.event.ActionEvent e)
If there are listeners for BeanPanel action events, processActionEvent dispatches the event to the listeners.

Parameters:

e
One of the java.awt.event.ActionEvent events.

processEvent(java.awt.AWTEvent)

  protected void processEvent(java.awt.AWTEvent e)
Processes the specified event. If the event is an ActionEvent, the processActionEvent() method is called; otherwise, the processEvent() method of the super class is called.

Overrides: java.awt.Container.processEvent(java.awt.AWTEvent)

processFocusEvent(java.awt.event.FocusEvent)

  protected void processFocusEvent(java.awt.event.FocusEvent e)
Processes FOCUS_GAINED and FOCUS_LOST focus events by modifying the focusState accordingly if the panel is focus aware. All other FocusEvent events are passed to the processFocusEvent() method of the super class.

Overrides: java.awt.Component.processFocusEvent(java.awt.event.FocusEvent)

processKeyEvent(java.awt.event.KeyEvent)

  protected void processKeyEvent(java.awt.event.KeyEvent e)
Dispatches key events to their appropriate event handlers. Key events are dispatched to their handlers if the panel is enabled so that it can receive key events. If the key event is KEY_PRESSED, the processKeyPressed() method is called. If the key event is KEY_TYPED, the processKeyTyped() method is called. If the key event is KEY_RELEASED, the processKeyReleased() method is called.

Parameters:

e
One of the java.awt.event.KeyEvent events.

Overrides: java.awt.Component.processKeyEvent(java.awt.event.KeyEvent)

processKeyPressed(java.awt.event.KeyEvent)

  protected void processKeyPressed(java.awt.event.KeyEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a KEY_PRESSED event occurs.

Parameters:

e
The KEY_PRESSED KeyEvent.

processKeyReleased(java.awt.event.KeyEvent)

  protected void processKeyReleased(java.awt.event.KeyEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a KEY_RELEASED event occurs.

Parameters:

e
The KEY_RELEASED KeyEvent.

processKeyTyped(java.awt.event.KeyEvent)

  protected void processKeyTyped(java.awt.event.KeyEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a KEY_TYPED event occurs.

Parameters:

e
The KEY_TYPED KeyEvent.

processMouseClicked(java.awt.event.MouseEvent)

  protected void processMouseClicked(java.awt.event.MouseEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a MOUSE_CLICKED event occurs.

Parameters:

e
The MOUSE_CLICKED MouseEvent.

processMouseDragged(java.awt.event.MouseEvent)

  protected void processMouseDragged(java.awt.event.MouseEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a MOUSE_DRAGGED event occurs.

Parameters:

e
The MOUSE_DRAGGED MouseEvent.

processMouseEntered(java.awt.event.MouseEvent)

  protected void processMouseEntered(java.awt.event.MouseEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a MOUSE_ENTERED event occurs.

Parameters:

e
The MOUSE_ENTERED MouseEvent.

processMouseEvent(java.awt.event.MouseEvent)

  protected void processMouseEvent(java.awt.event.MouseEvent e)
If the panel is enabled so it can receive mouse events, processMouseEvent() dispatches mouse events to mouse event handlers. If the event is MOUSE_PRESSED, the processMousePressed() method is called. If the event is MOUSE_RELEASED, the processMouseReleased() method is called. If the event is MOUSE_CLICKED, the processMouseClicked() method is called. If the event is MOUSE_ENTERED, the processMouseEntered() method is called. If the event is MOUSE_EXITED, the SprocessMouseExited() method is called.

Overrides: java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)

processMouseExited(java.awt.event.MouseEvent)

  protected void processMouseExited(java.awt.event.MouseEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a MOUSE_EXITED event occurs.

Parameters:

e
The MOUSE_EXITED MouseEvent.

processMouseMotionEvent(java.awt.event.MouseEvent)

  protected void processMouseMotionEvent(java.awt.event.MouseEvent e)
If the panel is enabled so it can receive mouse events, processMouseMoveEvent() dispatches mouse events to mouse-move event handlers. If the event is MOUSE_MOVED, the processMouseMoved() method is called. If the event is MOUSE_DRAGGED, the processMouseDragged() method is called.

Overrides: java.awt.Component.processMouseMotionEvent(java.awt.event.MouseEvent)

processMouseMoved(java.awt.event.MouseEvent)

  protected void processMouseMoved(java.awt.event.MouseEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a MOUSE_MOVED event occurs.

Parameters:

e
The MOUSE_MOVED MouseEvent.

processMousePressed(java.awt.event.MouseEvent)

  protected void processMousePressed(java.awt.event.MouseEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a MOUSE_PRESSED event occurs.

Parameters:

e
The MOUSE_PRESSED MouseEvent.

processMouseReleased(java.awt.event.MouseEvent)

  protected void processMouseReleased(java.awt.event.MouseEvent e)
A method with an empty body. Override it to provide any special processing you want to occur when a MOUSE_RELEASED event occurs.

Parameters:

e
The MOUSE_RELEASED MouseEvent.

removeNotify()

  public void removeNotify()
Removes BeanPanel as a listener for action events at the top of the window hierarchy.

Overrides: java.awt.Container.removeNotify()

setFocusAware(boolean)

  protected void setFocusAware(boolean aware)
Protected support for a focusAware property that a subclass can expose as public if it has the potential of accepting focus.

windowActiveChanged(boolean)

  public void windowActiveChanged(boolean active)
Override this method to repaint when the containing window becomes active/inactive. Remember to call super.windowActiveChanged(active) so this state tracking code can execute.

BeanPanel event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

ancestor

 public void addAncestorListener(com.sun.java.swing.event.AncestorListener )
 public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener )
 public void removeContainerListener(java.awt.event.ContainerListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )