/*
* ComboBoxPanel.java
*
* Created on 2009. okt�ber 22., 10:32
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package swing.panel;
import java.awt.FlowLayout;
import java.awt.GridBagLayout;
import java.util.Vector;
import javax.swing.event.DocumentListener;
import swing.combobox.ComboBox;
import swing.form.FormUtil;
import system.util.Login;
/**
*
* @author laci
*/
public class ComboBoxPanel extends Panel{
// <editor-fold defaultstate="collapsed" desc="Konstruktor">
/** Creates a new instance of ComboBoxPanel */
public ComboBoxPanel(Login login, String title) {
super(login, new FlowLayout());
initialize(title);
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="inicializalas">
public void initialize(String title) {
setTitle(title);
createLayout();
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="createLayout">
protected void createLayout() {
setLayout(new GridBagLayout());
add(getTitle(), FormUtil.newGBConstraints(0, 0, 1, 1, FormUtil.ANCHOR_WEST, FormUtil.FILL_NONE, null));
add(getComboBox(), FormUtil.newGBConstraints(1, 0, 1, 1, FormUtil.ANCHOR_WEST, FormUtil.FILL_NONE, null));
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="mezo">
private ComboBox comboBox;
protected ComboBox getComboBox() {
if (comboBox == null) {
comboBox = createComboBox();
}
return comboBox;
}
protected ComboBox createComboBox() {
ComboBox temp = new ComboBox();
return temp;
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="setEnabled">
public void setEnabled(boolean mire) {
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="reszet">
public void reset() {
fill();
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="kitolt">
public void fill() {
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="Fokusz order">
public Vector getFocusOrder() {
return new Vector();
}
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="listener">
public void addDocumentListener(DocumentListener l) {
}
// </editor-fold>
}