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

MultiTextUI

public class MultiTextUI extends TextUI
A multiplexing UI used to combine TextUIs.

This file was automatically generated by AutoMulti.

version
1.34 12/19/03 17:39:44
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 MultiTextUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiTextUI) mui).uis,
                                          a);
    
public voiddamageRange(javax.swing.text.JTextComponent a, int b, int c)
Invokes the damageRange method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).damageRange(a,b,c);
        }
    
public voiddamageRange(javax.swing.text.JTextComponent a, int b, int c, javax.swing.text.Position$Bias d, javax.swing.text.Position$Bias e)
Invokes the damageRange method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).damageRange(a,b,c,d,e);
        }
    
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 javax.swing.text.EditorKitgetEditorKit(javax.swing.text.JTextComponent a)
Invokes the getEditorKit 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

        EditorKit returnValue = 
            ((TextUI) (uis.elementAt(0))).getEditorKit(a);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).getEditorKit(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 intgetNextVisualPositionFrom(javax.swing.text.JTextComponent a, int b, javax.swing.text.Position$Bias c, int d, javax.swing.text.Position$Bias[] e)
Invokes the getNextVisualPositionFrom 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 = 
            ((TextUI) (uis.elementAt(0))).getNextVisualPositionFrom(a,b,c,d,e);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).getNextVisualPositionFrom(a,b,c,d,e);
        }
        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.text.ViewgetRootView(javax.swing.text.JTextComponent a)
Invokes the getRootView 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

        View returnValue = 
            ((TextUI) (uis.elementAt(0))).getRootView(a);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).getRootView(a);
        }
        return returnValue;
    
public java.lang.StringgetToolTipText(javax.swing.text.JTextComponent a, java.awt.Point b)
Invokes the getToolTipText 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 = 
            ((TextUI) (uis.elementAt(0))).getToolTipText(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).getToolTipText(a,b);
        }
        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 java.awt.RectanglemodelToView(javax.swing.text.JTextComponent a, int b)
Invokes the modelToView 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 = 
            ((TextUI) (uis.elementAt(0))).modelToView(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).modelToView(a,b);
        }
        return returnValue;
    
public java.awt.RectanglemodelToView(javax.swing.text.JTextComponent a, int b, javax.swing.text.Position$Bias c)
Invokes the modelToView 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 = 
            ((TextUI) (uis.elementAt(0))).modelToView(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).modelToView(a,b,c);
        }
        return returnValue;
    
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 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);
        }
    
public intviewToModel(javax.swing.text.JTextComponent a, java.awt.Point b)
Invokes the viewToModel 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 = 
            ((TextUI) (uis.elementAt(0))).viewToModel(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).viewToModel(a,b);
        }
        return returnValue;
    
public intviewToModel(javax.swing.text.JTextComponent a, java.awt.Point b, javax.swing.text.Position$Bias[] c)
Invokes the viewToModel 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 = 
            ((TextUI) (uis.elementAt(0))).viewToModel(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((TextUI) (uis.elementAt(i))).viewToModel(a,b,c);
        }
        return returnValue;