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

MultiOptionPaneUI

public class MultiOptionPaneUI extends OptionPaneUI
A multiplexing UI used to combine OptionPaneUIs.

This file was automatically generated by AutoMulti.

version
1.25 12/19/03 17:39:36
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 booleancontainsCustomComponents(javax.swing.JOptionPane a)
Invokes the containsCustomComponents 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 = 
            ((OptionPaneUI) (uis.elementAt(0))).containsCustomComponents(a);
        for (int i = 1; i < uis.size(); i++) {
            ((OptionPaneUI) (uis.elementAt(i))).containsCustomComponents(a);
        }
        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 MultiOptionPaneUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiOptionPaneUI) 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 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 voidselectInitialValue(javax.swing.JOptionPane a)
Invokes the selectInitialValue method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((OptionPaneUI) (uis.elementAt(i))).selectInitialValue(a);
        }
    
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);
        }