com.mucommander.ui.combobox
Interface EditableComboBoxListener

All Superinterfaces:
ComboBoxListener
All Known Implementing Classes:
AuthDialog, ShellComboBox

public interface EditableComboBoxListener
extends ComboBoxListener

Interface to be implemented by classes that wish to be notified of actions occuring on a EditableComboBox. Those classes need to be registered to receive those events, this can be done by calling EditableComboBox.addEditableComboBoxListener(EditableComboBoxListener).

Author:
Maxence Bernard

Method Summary
 void textFieldCancelled(EditableComboBox source)
          Notifies all registered EditableComboBoxListener instances that the text field has been cancelled, that is the 'Escape' key has been pressed in the text field, without the popup menu being visible.
 void textFieldValidated(EditableComboBox source)
          This method is called when the text field has been validated, that is the 'Enter' key has been pressed in the text field, without the popup menu being visible.
 
Methods inherited from interface com.mucommander.ui.combobox.ComboBoxListener
comboBoxSelectionChanged
 

Method Detail

textFieldValidated

void textFieldValidated(EditableComboBox source)
This method is called when the text field has been validated, that is the 'Enter' key has been pressed in the text field, without the popup menu being visible.

Note: Unlike JComboBox's weird ActionEvent handling, this method is *not* called when 'Enter' is pressed in the combo popup menu.

Parameters:
source - the EditableComboBox containing the JTextField on which the event was triggered

textFieldCancelled

void textFieldCancelled(EditableComboBox source)
Notifies all registered EditableComboBoxListener instances that the text field has been cancelled, that is the 'Escape' key has been pressed in the text field, without the popup menu being visible.

Note: This method is *not* called when 'Escape' is pressed in the combo popup menu.

Parameters:
source - the EditableComboBox containing the JTextField on which the event was triggered


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard