|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JList | +--com.ultraswing.CList
This class adds a few helper methods to JList
.
Field Summary |
Fields inherited from class javax.swing.JList |
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CList()
Constructs a CList with an empty model. |
|
CList(ListModel dataModel)
Constructs a CList that displays the elements in the
specified, non-null model. |
|
CList(Object[] listData)
Constructs a CList that displays the elements in the specified
array. |
|
CList(Vector listData)
Constructs a CList that displays the elements in the specified
Vector . |
Method Summary | |
protected void |
onResize()
Callback method, it gets called when COMPONENT_RESIZED event occurs |
protected void |
processComponentEvent(ComponentEvent e)
|
void |
setVisibleColumnCount(int columns)
Sets the preferred number of columns in the list that can be displayed without a scollbar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CList(ListModel dataModel)
CList
that displays the elements in the
specified, non-null
model.
All CList
constructors delegate to this one.
dataModel
- the data model for this list
IllegalArgumentException
- if dataModel
is null
public CList(Object[] listData)
CList
that displays the elements in the specified
array. This constructor just delegates to the ListModel
constructor.
listData
- the array of Objects to be loaded into the data modelpublic CList(Vector listData)
CList
that displays the elements in the specified
Vector
. This constructor just delegates to the
ListModel
constructor.
listData
- the Vector
to be loaded into the data modelpublic CList()
CList
with an empty model.
Method Detail |
protected void processComponentEvent(ComponentEvent e)
processComponentEvent
in class Component
protected void onResize()
COMPONENT_RESIZED
event occurs
public void setVisibleColumnCount(int columns)
columns
- an integer specifying the preferred number of
visible columns
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |