/[classpath]/classpath/javax/swing/JComboBox.java
ViewVC logotype

Diff of /classpath/javax/swing/JComboBox.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.6 by gnu_andrew, Tue Aug 2 20:12:37 2005 UTC revision 1.8.2.7 by gnu_andrew, Tue Sep 20 18:46:31 2005 UTC
# Line 551  public class JComboBox extends JComponen Line 551  public class JComboBox extends JComponen
551      return -1;      return -1;
552    }    }
553    
554      /**
555       * Returns an object that is used as the display value when calculating the
556       * preferred size for the combo box.  This value is, of course, never
557       * displayed anywhere.
558       *
559       * @return The prototype display value (possibly <code>null</code>).
560       *
561       * @since 1.4
562       * @see #setPrototypeDisplayValue(Object)
563       */
564    public Object getPrototypeDisplayValue()    public Object getPrototypeDisplayValue()
565    {    {
566      return prototypeDisplayValue;      return prototypeDisplayValue;
567    }    }
568    
569    public void setPrototypeDisplayValue(Object newPrototypeDisplayValue)    /**
570       * Sets the object that is assumed to be the displayed item when calculating
571       * the preferred size for the combo box.  A {@link PropertyChangeEvent} (with
572       * the name <code>prototypeDisplayValue</code>) is sent to all registered
573       * listeners.
574       *
575       * @param value  the new value (<code>null</code> permitted).
576       *
577       * @since 1.4
578       * @see #getPrototypeDisplayValue()
579       */
580      public void setPrototypeDisplayValue(Object value)
581    {    {
582      prototypeDisplayValue = newPrototypeDisplayValue;      Object oldValue = prototypeDisplayValue;
583        prototypeDisplayValue = value;
584        firePropertyChange("prototypeDisplayValue", oldValue, value);
585    }    }
586    
587    /**    /**

Legend:
Removed from v.1.8.2.6  
changed lines
  Added in v.1.8.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26