Package com.jidesoft.combobox

Examples of com.jidesoft.combobox.FileChooserComboBox


  public FileChooserComboBoxBinder(){
    super(File.class)
  }
 
  protected JComponent createControl(Map arg0) {
    return new FileChooserComboBox();
  }
View Full Code Here


    return new FileChooserComboBox();
  }

  protected Binding doBind(JComponent control, FormModel formModel, String formPropertyPath,
      Map context) {
    final FileChooserComboBox fileComboBox = (FileChooserComboBox)control;
    return new CustomBinding(formModel, formPropertyPath, File.class) {

            protected JComponent doBindControl() {
              fileComboBox.setSelectedItem(getValue());
              fileComboBox.addItemListener(new ItemListener(){
               
          public void itemStateChanged(ItemEvent e) {
            if(e.getStateChange() == ItemEvent.SELECTED){
              controlValueChanged(fileComboBox.getSelectedItem());
            }
          }
              });   
                return fileComboBox;
            }

            protected void readOnlyChanged() {
              fileComboBox.setEnabled(isEnabled() && !isReadOnly());
            }

            protected void enabledChanged() {
              fileComboBox.setEnabled(isEnabled() && !isReadOnly());
            }

            protected void valueModelChanged(Object newValue) {
              fileComboBox.setSelectedItem(newValue);
            }
        };
  }
View Full Code Here

TOP

Related Classes of com.jidesoft.combobox.FileChooserComboBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.