Files
swing-examples/doc/10_list.md
2024-03-30 19:57:14 +09:00

23 lines
1.0 KiB
Markdown

# 리스트
* `getModel()` / `setModel(ListModel)`
* `setListData(Object[])` / `setListData(Vector)` : 데이터를 수정할 수 없다.
* `getLayoutOrientation()` / `setLayoutOrientation(int)` : VERTICAL | HORIZONTAL_WRAP | VERTICAL_WRAP
* `getVisobleRowCount()` / `setVisibleRowCount(int)`
* `getFirstVisibleIndex()` / `getLastVisibleIndex()`
* `ensureIndexIsVisible(int)`
* `getSelectionMode()` / `setSelectionMode(int)` : SINGLE_SELECTION | SINGLE_INTERVAL_SELECTION | MULTIPLE_INTERVAL_SELECTION
* `addListSelectionListener(ListSelectionListener)`
* `setSelectedIndex(int)` / `setSelectedIndices(int[])` / `setSelectedvalue(Object,int)` / `setSelectionInterval(int,int)`
* `getSelectedIndex()` / `getSelectedIndices()` / `getSelectedValue()` / `getSelectedValues()`
* `getMinSelectionIndex()` / `getMaxSelectionIndex()` / `getAnchorSelectionIndex()` / `getLeadSelectionIndex()`
* `isSelectionEmpty()` / `clearSelection()`
* `isSelectedIndex(int)`
* `setCellRenderer(ListCellRenderer)`
* `getDragEnabled()` / `setDragEnabled(boolean)`