⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multifilechooserui.java

📁 gcc的组建
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        result = ui.getMinimumSize(c);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        ComponentUI ui = (ComponentUI) iterator.next();        /* Dimension ignored = */ ui.getMinimumSize(c);      }    return result;  }      /**   * Calls the {@link ComponentUI#getMaximumSize(JComponent)} method for all   * the UI delegates managed by this <code>MultiFileChooserUI</code>,    * returning the maximum size for the UI delegate from the primary look and    * feel.    *    * @param c  the component.   *    * @return The maximum size returned by the UI delegate from the primary    *         look and feel.    */  public Dimension getMaximumSize(JComponent c)  {    Dimension result = null;    Iterator iterator = uis.iterator();    // first UI delegate provides the return value    if (iterator.hasNext())       {        ComponentUI ui = (ComponentUI) iterator.next();        result = ui.getMaximumSize(c);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        ComponentUI ui = (ComponentUI) iterator.next();        /* Dimension ignored = */ ui.getMaximumSize(c);      }    return result;  }    /**   * Calls the {@link ComponentUI#getAccessibleChildrenCount(JComponent)} method   * for all the UI delegates managed by this <code>MultiFileChooserUI</code>,    * returning the count for the UI delegate from the primary look and    * feel.    *    * @param c  the component.   *    * @return The count returned by the UI delegate from the primary    *         look and feel.    */  public int getAccessibleChildrenCount(JComponent c)  {    int result = 0;    Iterator iterator = uis.iterator();    // first UI delegate provides the return value    if (iterator.hasNext())       {        ComponentUI ui = (ComponentUI) iterator.next();        result = ui.getAccessibleChildrenCount(c);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        ComponentUI ui = (ComponentUI) iterator.next();        /* int ignored = */ ui.getAccessibleChildrenCount(c);      }    return result;  }    /**   * Calls the {@link ComponentUI#getAccessibleChild(JComponent, int)} method   * for all the UI delegates managed by this <code>MultiFileChooserUI</code>,    * returning the child for the UI delegate from the primary look and    * feel.    *    * @param c  the component   * @param i  the child index.   *    * @return The child returned by the UI delegate from the primary    *         look and feel.    */  public Accessible getAccessibleChild(JComponent c, int i)  {    Accessible result = null;    Iterator iterator = uis.iterator();    // first UI delegate provides the return value    if (iterator.hasNext())       {        ComponentUI ui = (ComponentUI) iterator.next();        result = ui.getAccessibleChild(c, i);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        ComponentUI ui = (ComponentUI) iterator.next();        /* Accessible ignored = */ ui.getAccessibleChild(c, i);      }    return result;  }    /**   * Calls the {@link FileChooserUI#getAcceptAllFileFilter(JFileChooser)} method   * for all the UI delegates managed by this <code>MultiFileChooserUI</code>,    * returning the filter for the UI delegate from the primary look and    * feel.    *    * @param chooser  the file chooser.   *    * @return The filter returned by the UI delegate from the primary    *         look and feel.    */  public FileFilter getAcceptAllFileFilter(JFileChooser chooser) {    FileFilter result = null;    Iterator iterator = uis.iterator();    // first UI delegate provides the return value    if (iterator.hasNext())       {        FileChooserUI ui = (FileChooserUI) iterator.next();        result = ui.getAcceptAllFileFilter(chooser);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        FileChooserUI ui = (FileChooserUI) iterator.next();        /* FileFilter ignored = */ ui.getAcceptAllFileFilter(chooser);      }    return result;  }  /**   * Calls the {@link FileChooserUI#getFileView(JFileChooser)} method   * for all the UI delegates managed by this <code>MultiFileChooserUI</code>,    * returning the view for the UI delegate from the primary look and    * feel.    *    * @param chooser  the file chooser.   *    * @return The view returned by the UI delegate from the primary    *         look and feel.    */  public FileView getFileView(JFileChooser chooser) {    FileView result = null;    Iterator iterator = uis.iterator();    // first UI delegate provides the return value    if (iterator.hasNext())       {        FileChooserUI ui = (FileChooserUI) iterator.next();        result = ui.getFileView(chooser);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        FileChooserUI ui = (FileChooserUI) iterator.next();        /* FileView ignored = */ ui.getFileView(chooser);      }    return result;  }  /**   * Calls the {@link FileChooserUI#getApproveButtonText(JFileChooser)} method   * for all the UI delegates managed by this <code>MultiFileChooserUI</code>,    * returning the text for the UI delegate from the primary look and    * feel.    *    * @param chooser  the file chooser.   *    * @return The text returned by the UI delegate from the primary    *         look and feel.    */  public String getApproveButtonText(JFileChooser chooser) {    String result = null;    Iterator iterator = uis.iterator();    // first UI delegate provides the return value    if (iterator.hasNext())       {        FileChooserUI ui = (FileChooserUI) iterator.next();        result = ui.getApproveButtonText(chooser);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        FileChooserUI ui = (FileChooserUI) iterator.next();        /* String ignored = */ ui.getApproveButtonText(chooser);      }    return result;  }  /**   * Calls the {@link FileChooserUI#getDialogTitle(JFileChooser)} method   * for all the UI delegates managed by this <code>MultiFileChooserUI</code>,    * returning the title for the UI delegate from the primary look and    * feel.    *    * @param chooser  the file chooser.   *    * @return The title returned by the UI delegate from the primary    *         look and feel.    */  public String getDialogTitle(JFileChooser chooser) {    String result = null;    Iterator iterator = uis.iterator();    // first UI delegate provides the return value    if (iterator.hasNext())       {        FileChooserUI ui = (FileChooserUI) iterator.next();        result = ui.getDialogTitle(chooser);      }    // return values from auxiliary UI delegates are ignored    while (iterator.hasNext())      {        FileChooserUI ui = (FileChooserUI) iterator.next();        /* String ignored = */ ui.getDialogTitle(chooser);      }    return result;  }  /**   * Calls the {@link FileChooserUI#rescanCurrentDirectory(JFileChooser)}    * method for all the UI delegates managed by this    * <code>MultiFileChooserUI</code>.   *    * @param chooser  the file chooser.   */  public void rescanCurrentDirectory(JFileChooser chooser) {    Iterator iterator = uis.iterator();    while (iterator.hasNext())    {      FileChooserUI ui = (FileChooserUI) iterator.next();      ui.rescanCurrentDirectory(chooser);    }  }  /**   * Calls the {@link FileChooserUI#ensureFileIsVisible(JFileChooser, File)}    * method for all the UI delegates managed by this    * <code>MultiFileChooserUI</code>.   *    * @param chooser  the file chooser.   * @param file  the file.   */  public void ensureFileIsVisible(JFileChooser chooser, File file) {    Iterator iterator = uis.iterator();    while (iterator.hasNext())    {      FileChooserUI ui = (FileChooserUI) iterator.next();      ui.ensureFileIsVisible(chooser, file);    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -