/*
* @(#)MetouiaComboBoxUIExt.java
*
* Copyright (c) 2003-2004 Stand By Soft, Ltd. All rights reserved.
*
* This software is the proprietary information of Stand By Soft, Ltd.
* Use is subject to license terms.
*/
package com.standbysoft.demo.date.plaf;
import javax.swing.plaf.basic.ComboPopup;
import javax.swing.plaf.metal.MetalComboBoxUI;
import com.standbysoft.component.util.swing.ComboBoxUIExt;
/**
* A <code>MetalComboBoxUI</code> object for which one an change the <code>ComboPopup</code>.
* Extends the <code>ComboBoxUI</code> for the Metouia look and feel to make it possible to
* change the popup for a combo box.
*/
public class MetouiaComboBoxUIExt extends MetalComboBoxUI implements ComboBoxUIExt {
private ComboPopup popup;
protected ComboPopup createPopup() {
if (popup == null) {
return super.createPopup();
} else {
return popup;
}
}
public void setComboPopup(ComboPopup popup) {
this.popup = popup;
}
}
|