TrueZIP 6.8.3

de.schlichtherle.swing
Class AbstractComboBoxBrowser.ComboBoxEditorProxy

java.lang.Object
  extended by javax.swing.plaf.basic.BasicComboBoxEditor
      extended by de.schlichtherle.swing.AbstractComboBoxBrowser.ComboBoxEditorProxy
All Implemented Interfaces:
FocusListener, EventListener, ComboBoxEditor
Enclosing class:
AbstractComboBoxBrowser

private final class AbstractComboBoxBrowser.ComboBoxEditorProxy
extends BasicComboBoxEditor

This proxy controls access to the real ComboBoxEditor installed by the client application or the pluggable look and feel. It is used to lock out mutual recursion caused by modifications to the list model in the JComboBox.

Note that there is a slight chance that the introduction of this proxy breaks the look and feel if it does instanceof tests for a particular class, but I'm not aware of any look and feel which is actually affected. In order to reduce this risk, this class is extended from BasicComboBoxEditor, although it overrides all methods which are defined in the ComboBoxEditor interface.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
BasicComboBoxEditor.UIResource
 
Field Summary
private  ComboBoxEditor comboBoxEditor
           
 
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
editor
 
Constructor Summary
AbstractComboBoxBrowser.ComboBoxEditorProxy(ComboBoxEditor comboBoxEditor)
           
 
Method Summary
 void addActionListener(ActionListener actionListener)
           
 ComboBoxEditor getEditor()
           
 Component getEditorComponent()
           
 Object getItem()
           
 void removeActionListener(ActionListener actionListener)
           
 void selectAll()
           
 void setItem(Object item)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
createEditorComponent, focusGained, focusLost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comboBoxEditor

private final ComboBoxEditor comboBoxEditor
Constructor Detail

AbstractComboBoxBrowser.ComboBoxEditorProxy

public AbstractComboBoxBrowser.ComboBoxEditorProxy(ComboBoxEditor comboBoxEditor)
Method Detail

getEditor

public ComboBoxEditor getEditor()

getEditorComponent

public Component getEditorComponent()
Specified by:
getEditorComponent in interface ComboBoxEditor
Overrides:
getEditorComponent in class BasicComboBoxEditor

setItem

public void setItem(Object item)
Specified by:
setItem in interface ComboBoxEditor
Overrides:
setItem in class BasicComboBoxEditor

getItem

public Object getItem()
Specified by:
getItem in interface ComboBoxEditor
Overrides:
getItem in class BasicComboBoxEditor

selectAll

public void selectAll()
Specified by:
selectAll in interface ComboBoxEditor
Overrides:
selectAll in class BasicComboBoxEditor

addActionListener

public void addActionListener(ActionListener actionListener)
Specified by:
addActionListener in interface ComboBoxEditor
Overrides:
addActionListener in class BasicComboBoxEditor

removeActionListener

public void removeActionListener(ActionListener actionListener)
Specified by:
removeActionListener in interface ComboBoxEditor
Overrides:
removeActionListener in class BasicComboBoxEditor

TrueZIP 6.8.3

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.