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

MultiFileChooserUI

public class MultiFileChooserUI extends FileChooserUI
A multiplexing UI used to combine FileChooserUIs.

This file was automatically generated by AutoMulti.

version
1.26 12/19/03 17:39:31
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 MultiFileChooserUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiFileChooserUI) mui).uis,
                                          a);
    
public voidensureFileIsVisible(javax.swing.JFileChooser a, java.io.File b)
Invokes the ensureFileIsVisible method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((FileChooserUI) (uis.elementAt(i))).ensureFileIsVisible(a,b);
        }
    
public javax.swing.filechooser.FileFiltergetAcceptAllFileFilter(javax.swing.JFileChooser a)
Invokes the getAcceptAllFileFilter 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

        FileFilter returnValue = 
            ((FileChooserUI) (uis.elementAt(0))).getAcceptAllFileFilter(a);
        for (int i = 1; i < uis.size(); i++) {
            ((FileChooserUI) (uis.elementAt(i))).getAcceptAllFileFilter(a);
        }
        return returnValue;
    
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.lang.StringgetApproveButtonText(javax.swing.JFileChooser a)
Invokes the getApproveButtonText 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

        String returnValue = 
            ((FileChooserUI) (uis.elementAt(0))).getApproveButtonText(a);
        for (int i = 1; i < uis.size(); i++) {
            ((FileChooserUI) (uis.elementAt(i))).getApproveButtonText(a);
        }
        return returnValue;
    
public java.lang.StringgetDialogTitle(javax.swing.JFileChooser a)
Invokes the getDialogTitle 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

        String returnValue = 
            ((FileChooserUI) (uis.elementAt(0))).getDialogTitle(a);
        for (int i = 1; i < uis.size(); i++) {
            ((FileChooserUI) (uis.elementAt(i))).getDialogTitle(a);
        }
        return returnValue;
    
public javax.swing.filechooser.FileViewgetFileView(javax.swing.JFileChooser a)
Invokes the getFileView 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

        FileView returnValue = 
            ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
        for (int i = 1; i < uis.size(); i++) {
            ((FileChooserUI) (uis.elementAt(i))).getFileView(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 voidrescanCurrentDirectory(javax.swing.JFileChooser a)
Invokes the rescanCurrentDirectory method on each UI handled by this object.

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