FileDocCategorySizeDatePackage
MultiTabbedPaneUI.javaAPI DocJava SE 5 API8189Fri Aug 26 14:58:10 BST 2005javax.swing.plaf.multi

MultiTabbedPaneUI

public class MultiTabbedPaneUI extends TabbedPaneUI
A multiplexing UI used to combine TabbedPaneUIs.

This file was automatically generated by AutoMulti.

version
1.28 12/19/03 17:39:42
author
Otto Multey

Fields Summary
protected Vector
uis
The vector containing the real UIs. This is populated in the call to createUI, and can be obtained by calling the getUIs method. The first element is guaranteed to be the real UI obtained from the default look and feel.
Constructors Summary
Methods Summary
public booleancontains(javax.swing.JComponent a, int b, int c)
Invokes the contains method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        boolean returnValue = 
            ((ComponentUI) (uis.elementAt(0))).contains(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).contains(a,b,c);
        }
        return returnValue;
    
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent a)
Returns a multiplexing UI instance if any of the auxiliary LookAndFeels supports this UI. Otherwise, just returns the UI object obtained from the default LookAndFeel.

        ComponentUI mui = new MultiTabbedPaneUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiTabbedPaneUI) mui).uis,
                                          a);
    
public javax.accessibility.AccessiblegetAccessibleChild(javax.swing.JComponent a, int b)
Invokes the getAccessibleChild method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        Accessible returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getAccessibleChild(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getAccessibleChild(a,b);
        }
        return returnValue;
    
public intgetAccessibleChildrenCount(javax.swing.JComponent a)
Invokes the getAccessibleChildrenCount method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        int returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getAccessibleChildrenCount(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getAccessibleChildrenCount(a);
        }
        return returnValue;
    
public java.awt.DimensiongetMaximumSize(javax.swing.JComponent a)
Invokes the getMaximumSize method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        Dimension returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getMaximumSize(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getMaximumSize(a);
        }
        return returnValue;
    
public java.awt.DimensiongetMinimumSize(javax.swing.JComponent a)
Invokes the getMinimumSize method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        Dimension returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getMinimumSize(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getMinimumSize(a);
        }
        return returnValue;
    
public java.awt.DimensiongetPreferredSize(javax.swing.JComponent a)
Invokes the getPreferredSize method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        Dimension returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getPreferredSize(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getPreferredSize(a);
        }
        return returnValue;
    
public java.awt.RectanglegetTabBounds(javax.swing.JTabbedPane a, int b)
Invokes the getTabBounds method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        Rectangle returnValue = 
            ((TabbedPaneUI) (uis.elementAt(0))).getTabBounds(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((TabbedPaneUI) (uis.elementAt(i))).getTabBounds(a,b);
        }
        return returnValue;
    
public intgetTabRunCount(javax.swing.JTabbedPane a)
Invokes the getTabRunCount method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        int returnValue = 
            ((TabbedPaneUI) (uis.elementAt(0))).getTabRunCount(a);
        for (int i = 1; i < uis.size(); i++) {
            ((TabbedPaneUI) (uis.elementAt(i))).getTabRunCount(a);
        }
        return returnValue;
    
public javax.swing.plaf.ComponentUI[]getUIs()
Returns the list of UIs associated with this multiplexing UI. This allows processing of the UIs by an application aware of multiplexing UIs on components.


////////////////////
// Common UI methods
////////////////////

                                     
       
        return MultiLookAndFeel.uisToArray(uis);
    
public voidinstallUI(javax.swing.JComponent a)
Invokes the installUI method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).installUI(a);
        }
    
public voidpaint(java.awt.Graphics a, javax.swing.JComponent b)
Invokes the paint method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).paint(a,b);
        }
    
public inttabForCoordinate(javax.swing.JTabbedPane a, int b, int c)
Invokes the tabForCoordinate method on each UI handled by this object.

return
the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

        int returnValue = 
            ((TabbedPaneUI) (uis.elementAt(0))).tabForCoordinate(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((TabbedPaneUI) (uis.elementAt(i))).tabForCoordinate(a,b,c);
        }
        return returnValue;
    
public voiduninstallUI(javax.swing.JComponent a)
Invokes the uninstallUI method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).uninstallUI(a);
        }
    
public voidupdate(java.awt.Graphics a, javax.swing.JComponent b)
Invokes the update method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).update(a,b);
        }