Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

oracle.jbo.uicli.jui
Class JUTabbedPaneListener

java.lang.Object
  extended by oracle.jbo.uicli.jui.JUTabbedPaneListener
All Implemented Interfaces:
java.awt.event.ContainerListener, java.util.EventListener, javax.swing.event.ChangeListener

public final class JUTabbedPaneListener
extends java.lang.Object
implements javax.swing.event.ChangeListener, java.awt.event.ContainerListener

This listener is associated with JTabbedPane instances in an ADF Swing environment. This listener is needed because switching active tab panes does not set the focus to the components in the active pane. If multiple tabs are re-using the same navigation bar, then the navigation bar needs to be refreshed whenever the active tab changes.

Since:
11

Method Summary
 void componentAdded(java.awt.event.ContainerEvent e)
           
 void componentRemoved(java.awt.event.ContainerEvent e)
           
static void registerContainer(JUPanelBinding panelBinding, java.lang.Object container)
          This method is called from JUPanelBinding.
 void stateChanged(javax.swing.event.ChangeEvent e)
          This method is called by JTabbedPane when the active tab changes.
static void unregisterContainer(java.awt.Container container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerContainer

public static void registerContainer(JUPanelBinding panelBinding,
                                     java.lang.Object container)
This method is called from JUPanelBinding. When a panelBinding is associated with a UI container, we want to grab a reference to that container. If the container already contains a JTabbedPane, we'll register as ChangeListener for that JTabbedPane. We also register for the container listener events, so we'll be informed if a JTabbedPane is added later on.

Parameters:
panelBinding -
container -

unregisterContainer

public static void unregisterContainer(java.awt.Container container)

componentAdded

public void componentAdded(java.awt.event.ContainerEvent e)
Specified by:
componentAdded in interface java.awt.event.ContainerListener

componentRemoved

public void componentRemoved(java.awt.event.ContainerEvent e)
Specified by:
componentRemoved in interface java.awt.event.ContainerListener

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
This method is called by JTabbedPane when the active tab changes. We check if there are any components in the active tab and if so, inform the panelBinding that they've gained focus.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e - the ChangeEvent

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

Copyright © 1997, 2010, Oracle. All rights reserved.