Class org.aswing.plaf.basic.BasicComboBoxUI

Implemented Interfaces

LayoutManager

Description

Method Index

new BasicComboBoxUI()
addLayoutComponent(), getLayoutAlignmentX(), getLayoutAlignmentY(), installUI(), invalidateLayout(), isFocusTraversable(), isPopupVisible(), layoutContainer(), maximumLayoutSize(), minimumLayoutSize(), preferredLayoutSize(), removeLayoutComponent(), setPopupVisible(), uninstallUI()

Inherited from ComponentUI

Constructor Detail

BasicComboBoxUI

public function BasicComboBoxUI()

Method Detail

installUI

public function installUI(c:Component):Void

Description copied from ComponentUI

Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:

  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  6. Initialize any appropriate instance data.

Overrides

installUI() in org.aswing.plaf.ComponentUI

uninstallUI

public function uninstallUI(c:Component):Void

Description copied from ComponentUI

Reverses configuration which was done on the specified component during installUI. This method is invoked when this ComponentUI instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the Component instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:

  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Remove any UI-added MCs from this component.
  7. Nullify any allocated instance data objects to allow for GC.

Overrides

uninstallUI() in org.aswing.plaf.ComponentUI

setPopupVisible

public function setPopupVisible(c:JComboBox, v:Boolean):Void

Set the visiblity of the popup

isPopupVisible

public function isPopupVisible(c:JComboBox):Boolean

Determine the visibility of the popup

isFocusTraversable

public function isFocusTraversable(c:JComboBox):Boolean

Determine whether or not the combo box itself is traversable

addLayoutComponent

public function addLayoutComponent(comp:Component, constraints:Object):Void

may need override in subclass

Specified By

addLayoutComponent() in org.aswing.LayoutManager

removeLayoutComponent

public function removeLayoutComponent(comp:Component):Void

may need override in subclass

Specified By

removeLayoutComponent() in org.aswing.LayoutManager

preferredLayoutSize

public function preferredLayoutSize(target:Container):Dimension

Description copied from LayoutManager

Calculates the preferred size dimensions for the specified container, given the components it contains.

Specified By

preferredLayoutSize() in org.aswing.LayoutManager

minimumLayoutSize

public function minimumLayoutSize(target:Container):Dimension

Description copied from LayoutManager

Calculates the minimum size dimensions for the specified container, given the components it contains.

Specified By

minimumLayoutSize() in org.aswing.LayoutManager

maximumLayoutSize

public function maximumLayoutSize(target:Container):Dimension

may need override in subclass

Specified By

maximumLayoutSize() in org.aswing.LayoutManager

layoutContainer

public function layoutContainer(target:Container):Void

may need override in subclass

Specified By

layoutContainer() in org.aswing.LayoutManager

getLayoutAlignmentX

public function getLayoutAlignmentX(target:Container):Number

may need override in subclass

Specified By

getLayoutAlignmentX() in org.aswing.LayoutManager

getLayoutAlignmentY

public function getLayoutAlignmentY(target:Container):Number

may need override in subclass

Specified By

getLayoutAlignmentY() in org.aswing.LayoutManager

invalidateLayout

public function invalidateLayout(target:Container):Void

may need override in subclass

Specified By

invalidateLayout() in org.aswing.LayoutManager