Quaqua 7.4.2 2011-07-05

ch.randelshofer.quaqua.panther
Class QuaquaPantherTabbedPaneUI

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

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

The QuaquaPantherTabbedPaneUI uses to the QuaquaJaguarTabbedPaneUI for the WRAP_TAB_LAYOUT policy and the QuaquaPantherScrollTabbedPaneUI for the SCROLL_TAB_LAYOUT policy.

Version:
$Id: QuaquaPantherTabbedPaneUI.java 362 2010-11-21 17:35:47Z wrandelshofer $
Author:
Werner Randelshofer

Nested Class Summary
 class QuaquaPantherTabbedPaneUI.PropertyChangeHandler
          This inner class is marked "public" due to a compiler bug.
 
Constructor Summary
QuaquaPantherTabbedPaneUI()
          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, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaPantherTabbedPaneUI

public QuaquaPantherTabbedPaneUI()
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.