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 |
/** |
/** |