Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua.panther
Class Quaqua14PantherTabbedPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TabbedPaneUI
          extended by ch.randelshofer.quaqua.panther.Quaqua14PantherTabbedPaneUI
All Implemented Interfaces:
NavigatableTabbedPaneUI

public class Quaqua14PantherTabbedPaneUI
extends javax.swing.plaf.TabbedPaneUI
implements NavigatableTabbedPaneUI

The Quaqua14PantherTabbedPaneUI uses to the Quaqua13JaguarTabbedPaneUI for the WRAP_TAB_LAYOUT policy and the Quaqua14PantherScrollTabbedPaneUI for the SCROLL_TAB_LAYOUT policy.

Version:
1.1.1 2006-09-16 Use Quaqua14JaguarTabbedPaneUI instead of Quaqua13JaguarTabbedPaneUI.
1.1 2006-09-04 Fixed keyboard navigation problems.
1.0 February 5, 2006 Created.
Author:
Werner Randelshofer

Nested Class Summary
 class Quaqua14PantherTabbedPaneUI.PropertyChangeHandler
          This inner class is marked "public" due to a compiler bug.
 
Constructor Summary
Quaqua14PantherTabbedPaneUI()
          Creates a new instance.
 
Method Summary
protected  java.beans.PropertyChangeListener createPropertyChangeListener()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.lang.Integer getIndexForMnemonic(int mnemonic)
           
 java.awt.Rectangle getTabBounds(javax.swing.JTabbedPane pane, int index)
           
 int getTabRunCount(javax.swing.JTabbedPane pane)
           
protected  void installListeners()
           
 void installUI(javax.swing.JComponent c)
           
 void navigateSelectedTab(int direction)
          Tab Navigation methods.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 boolean requestFocusForVisibleComponent()
           
 int tabForCoordinate(javax.swing.JTabbedPane pane, int x, int y)
           
protected  void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quaqua14PantherTabbedPaneUI

public Quaqua14PantherTabbedPaneUI()
Creates a new instance.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

createPropertyChangeListener

protected java.beans.PropertyChangeListener createPropertyChangeListener()

getTabBounds

public java.awt.Rectangle getTabBounds(javax.swing.JTabbedPane pane,
                                       int index)
Specified by:
getTabBounds in class javax.swing.plaf.TabbedPaneUI

getTabRunCount

public int getTabRunCount(javax.swing.JTabbedPane pane)
Specified by:
getTabRunCount in class javax.swing.plaf.TabbedPaneUI

tabForCoordinate

public int tabForCoordinate(javax.swing.JTabbedPane pane,
                            int x,
                            int y)
Specified by:
tabForCoordinate in class javax.swing.plaf.TabbedPaneUI

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI

navigateSelectedTab

public void navigateSelectedTab(int direction)
Description copied from interface: NavigatableTabbedPaneUI
Tab Navigation methods.

Specified by:
navigateSelectedTab in interface NavigatableTabbedPaneUI

getIndexForMnemonic

public java.lang.Integer getIndexForMnemonic(int mnemonic)
Specified by:
getIndexForMnemonic in interface NavigatableTabbedPaneUI

requestFocusForVisibleComponent

public boolean requestFocusForVisibleComponent()
Specified by:
requestFocusForVisibleComponent in interface NavigatableTabbedPaneUI

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.