Class org.aswing.DefaultListCell

Implemented Interfaces

ListCell

Description

Method Index

new DefaultListCell()
getListCellComponent(), getValue(), isSelected(), setSelected(), setValue()

Constructor Detail

DefaultListCell

public function DefaultListCell()

Method Detail

setValue

public function setValue(value:Object):Void

Description copied from ListCell

Sets the value of this cell.

Specified By

setValue() in org.aswing.ListCell

getValue

public function getValue():Object

Description copied from ListCell

Returns the value of the cell.

Specified By

getValue() in org.aswing.ListCell

setSelected

public function setSelected(b:Boolean):Void

Description copied from ListCell

Sets the cell be selected or not.

Specified By

setSelected() in org.aswing.ListCell

isSelected

public function isSelected():Boolean

Description copied from ListCell

Returns whether the cell is selected.

Specified By

isSelected() in org.aswing.ListCell

getListCellComponent

public function getListCellComponent():Component

Description copied from ListCell

Return the represent component of this cell.

You must keep this component trigger enalbed then it can make JList know when it is pressed then set it to be selected.
If it is a Container and has children, suggest to make its all children trigger disabled, then it can get mouse clicks.

Specified By

getListCellComponent() in org.aswing.ListCell