DESY ACOP Beans Home

com.cosylab.gui.components
Class SimpleComboBox.DropComboBoxUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ComboBoxUI
          extended by com.cosylab.gui.components.SimpleComboBox.SimpleComboBoxUI
              extended by com.cosylab.gui.components.SimpleComboBox.DropComboBoxUI
Direct Known Subclasses:
ColorEditor.ColorEditorUI
Enclosing class:
SimpleComboBox

public static class SimpleComboBox.DropComboBoxUI
extends SimpleComboBox.SimpleComboBoxUI

This extension of SimpleComboBoxUI uses the standard right-side arrow button to activate the drop-down list.

Version:
$id$
Author:
Jernej Kamenik

Nested Class Summary
 
Nested classes/interfaces inherited from class com.cosylab.gui.components.SimpleComboBox.SimpleComboBoxUI
SimpleComboBox.SimpleComboBoxUI.ComboBoxLayoutManager
 
Field Summary
protected  ArrowButton dropButton
           
 
Fields inherited from class com.cosylab.gui.components.SimpleComboBox.SimpleComboBoxUI
cellRenderingPane, comboBox, itemListener, popup
 
Constructor Summary
SimpleComboBox.DropComboBoxUI()
           
 
Method Summary
protected  void calculateLayout()
           
protected  java.awt.Dimension calculatePreferredSize()
           
protected  java.awt.Rectangle calculateRendererCellRectangle()
           
protected  SimpleButton getDropButton()
           
 void installUI(javax.swing.JComponent c)
          Installs this UI to the supplied SimpleComboBox
 void uninstallUI(javax.swing.JComponent c)
          This method has been overriden to implement the uninstallation of the additional button.
 
Methods inherited from class com.cosylab.gui.components.SimpleComboBox.SimpleComboBoxUI
getMaximumSize, getMinimumSize, getPreferredSize, isFocusTraversable, isPopupVisible, paint, setPopupVisible
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dropButton

protected ArrowButton dropButton
Constructor Detail

SimpleComboBox.DropComboBoxUI

public SimpleComboBox.DropComboBoxUI()
Method Detail

getDropButton

protected SimpleButton getDropButton()

calculatePreferredSize

protected java.awt.Dimension calculatePreferredSize()
Overrides:
calculatePreferredSize in class SimpleComboBox.SimpleComboBoxUI

calculateRendererCellRectangle

protected java.awt.Rectangle calculateRendererCellRectangle()
Overrides:
calculateRendererCellRectangle in class SimpleComboBox.SimpleComboBoxUI

calculateLayout

protected void calculateLayout()
Overrides:
calculateLayout in class SimpleComboBox.SimpleComboBoxUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
This method has been overriden to implement the uninstallation of the additional button.

Overrides:
uninstallUI in class SimpleComboBox.SimpleComboBoxUI
Parameters:
c - JComponent
See Also:
ComponentUI.uninstallUI(JComponent)

installUI

public void installUI(javax.swing.JComponent c)
Description copied from class: SimpleComboBox.SimpleComboBoxUI
Installs this UI to the supplied SimpleComboBox

Overrides:
installUI in class SimpleComboBox.SimpleComboBoxUI
Parameters:
c - JComponent must be an instance of SimpleComboBox
See Also:
ComponentUI.installUI(JComponent)


Copyright © 2010. All Rights Reserved.