borland Packages Class Hierarchy jbcl.view Package Index
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
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.
protected transient ActionMulticaster actionMulticaster
protected boolean focusAware
protected int focusState
protected transient boolean foundParentWindow
protected transient Image texture
protected transient WindowListener winListener
public BeanPanel()Creates a BeanPanel component.
public BeanPanel(java.awt.LayoutManager layout)Creates a BeanPanel component that uses the specified LayoutManger.
public void setBackground(java.awt.Color c)Determines the color the background of the panel.
public boolean isFocusTraversable()Overridden component method to allow control of focus-awareness.
public void setForeground(java.awt.Color c)Determines the foreground color of the panel.
public Dimension getMinimumSize()Returns the minimum size of the panel.
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.
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:
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()
protected void dropParentWindow()Called to force the bean to locate its parent window in the component hierarchy, and remove its WindowListener
protected void findParentWindow()Forces the bean to locate its parent window in the component hierarchy so that the panel can listen for focus changes.
protected boolean isFocusAware()Protected method for a focusAware property that a subclass can expose as public if it has the potential for accepting focus.
public void paintComponent(java.awt.Graphics g)Paints or repaints the panel.
Overrides: com.sun.java.swing.JComponent.paintComponent(java.awt.Graphics)
protected void processActionEvent(java.awt.event.ActionEvent e)If there are listeners for BeanPanel action events, processActionEvent dispatches the event to the listeners.
Parameters:
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)
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)
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:
Overrides: java.awt.Component.processKeyEvent(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:
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:
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:
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:
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:
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:
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)
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:
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)
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:
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:
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:
public void removeNotify()Removes BeanPanel as a listener for action events at the top of the window hierarchy.
Overrides: java.awt.Container.removeNotify()
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.
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.
public synchronized void addActionListener(java.awt.event.ActionListener l) public synchronized void removeActionListener(java.awt.event.ActionListener l)
public void addAncestorListener(com.sun.java.swing.event.AncestorListener ) public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )
public synchronized void addComponentListener(java.awt.event.ComponentListener ) public synchronized void removeComponentListener(java.awt.event.ComponentListener )
public synchronized void addContainerListener(java.awt.event.ContainerListener ) public void removeContainerListener(java.awt.event.ContainerListener )
public synchronized void addFocusListener(java.awt.event.FocusListener ) public synchronized void removeFocusListener(java.awt.event.FocusListener )
public synchronized void addKeyListener(java.awt.event.KeyListener ) public synchronized void removeKeyListener(java.awt.event.KeyListener )
public synchronized void addMouseListener(java.awt.event.MouseListener ) public synchronized void removeMouseListener(java.awt.event.MouseListener )
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener ) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener ) public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )
public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener ) public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )