/*     */ public static ComponentUI createUI(JComponent paramJComponent) /*     */ {
   /* 128 */ MultiOptionPaneUI localMultiOptionPaneUI = new MultiOptionPaneUI();
   /* 129 */ return MultiLookAndFeel.createUIs(
       localMultiOptionPaneUI, ((MultiOptionPaneUI) localMultiOptionPaneUI).uis, paramJComponent);
   /*     */ }
 /*     */ public ComponentUI[] getUIs() /*     */ {
   /*  63 */ return MultiLookAndFeel.uisToArray(this.uis);
   /*     */ }
 /**
  * {@collect.stats} 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.
  */
 public ComponentUI[] getUIs() {
   return MultiLookAndFeel.uisToArray(uis);
 }
 /**
  * {@collect.stats} Returns a multiplexing UI instance if any of the auxiliary <code>LookAndFeel
  * </code>s supports this UI. Otherwise, just returns the UI object obtained from the default
  * <code>LookAndFeel</code>.
  */
 public static ComponentUI createUI(JComponent a) {
   ComponentUI mui = new MultiMenuItemUI();
   return MultiLookAndFeel.createUIs(mui, ((MultiMenuItemUI) mui).uis, a);
 }
 public static ComponentUI createUI(JComponent a) {
   MultiColorChooserUI mui = new MultiColorChooserUI();
   ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
   mui.numberOfUIs = mui.uis.size();
   return result;
 }
Exemplo n.º 6
0
 /**
  * Creates a delegate object for the specified component. If any auxiliary look and feels support
  * this component, a <code>MultiToolBarUI</code> is returned, otherwise the UI from the default
  * look and feel is returned.
  *
  * @param target the component.
  * @see MultiLookAndFeel#createUIs(ComponentUI, Vector, JComponent)
  */
 public static ComponentUI createUI(JComponent target) {
   MultiToolBarUI mui = new MultiToolBarUI();
   return MultiLookAndFeel.createUIs(mui, mui.uis, target);
 }