402 |
if (width == oldWidth) |
if (width == oldWidth) |
403 |
return; |
return; |
404 |
|
|
405 |
firePropertyChange(COLUMN_WIDTH_PROPERTY, oldWidth, width); |
// We do have a constant field COLUMN_WIDTH_PROPERTY, |
406 |
|
// however, tests show that the actual fired property name is 'width' |
407 |
|
// and even Sun's API docs say that this constant field is obsolete and |
408 |
|
// not used. |
409 |
|
firePropertyChange("width", oldWidth, width); |
410 |
} |
} |
411 |
|
|
412 |
/** |
/** |
426 |
*/ |
*/ |
427 |
public void setPreferredWidth(int preferredWidth) |
public void setPreferredWidth(int preferredWidth) |
428 |
{ |
{ |
429 |
|
int oldPrefWidth = this.preferredWidth; |
430 |
|
|
431 |
if (preferredWidth < minWidth) |
if (preferredWidth < minWidth) |
432 |
this.preferredWidth = minWidth; |
this.preferredWidth = minWidth; |
433 |
else if (preferredWidth > maxWidth) |
else if (preferredWidth > maxWidth) |
434 |
this.preferredWidth = maxWidth; |
this.preferredWidth = maxWidth; |
435 |
else |
else |
436 |
this.preferredWidth = preferredWidth; |
this.preferredWidth = preferredWidth; |
437 |
|
|
438 |
|
firePropertyChange("preferredWidth", oldPrefWidth, this.preferredWidth); |
439 |
} |
} |
440 |
|
|
441 |
/** |
/** |