Package org.pushingpixels.substance.api.combo

Examples of org.pushingpixels.substance.api.combo.ComboPopupPrototypeCallback


      objProp = UIManager.get(SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE);
    if (objProp == null)
      return null;

    if (objProp instanceof ComboPopupPrototypeCallback) {
      ComboPopupPrototypeCallback callback = (ComboPopupPrototypeCallback) objProp;
      return callback.getPopupPrototypeDisplayValue(combo);
    }

    // check if this object is in the model ???
    return objProp;
  }
View Full Code Here


    comboProto3.setPrototypeDisplayValue("aaaaa");
    // set popup prototype as custom implementation of
    // ComboPopupPrototypeCallback interface
    comboProto3.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new ComboPopupPrototypeCallback() {
          public Object getPopupPrototypeDisplayValue(JComboBox jc) {
            return jc.getModel().getElementAt(
                jc.getModel().getSize() - 1);
          }
        });
View Full Code Here

        "this is not", "this one is not it",
        "this one is it that is for the popup" });
    comboProto3.setPrototypeDisplayValue("aaaaa");
    comboProto3.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new ComboPopupPrototypeCallback() {
          public Object getPopupPrototypeDisplayValue(JComboBox jc) {
            return jc.getModel().getElementAt(
                jc.getModel().getSize() - 1);
          }
        });
View Full Code Here

    comboProto3.setPrototypeDisplayValue("aaaaa");
    // set popup prototype as custom implementation of
    // ComboPopupPrototypeCallback interface
    comboProto3.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new ComboPopupPrototypeCallback() {
          public Object getPopupPrototypeDisplayValue(JComboBox jc) {
            return jc.getModel().getElementAt(
                jc.getModel().getSize() - 1);
          }
        });
View Full Code Here

      objProp = UIManager.get(SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE);
    if (objProp == null)
      return null;

    if (objProp instanceof ComboPopupPrototypeCallback) {
      ComboPopupPrototypeCallback callback = (ComboPopupPrototypeCallback) objProp;
      return callback.getPopupPrototypeDisplayValue(combo);
    }

    // check if this object is in the model ???
    return objProp;
  }
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.combo.ComboPopupPrototypeCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.