|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
util.ui.customizableitems.SelectableItemList
public class SelectableItemList
A class that provides a list that contains selectable items.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
SelectableItemList(Object[] currSelection,
Object[] allItems)
Creates the SelectableItemList without the selection buttons. |
|
SelectableItemList(Object[] currSelection,
Object[] allItems,
boolean showSelectionButtons)
Creates the SelectableItemList. |
|
SelectableItemList(Object[] currSelection,
Object[] allItems,
boolean showSelectionButtons,
Object[] notSelectableItems)
Creates the SelectableItemList. |
|
SelectableItemList(Object[] currSelection,
Object[] allItems,
Object[] notSelectableItems)
Creates the SelectableItemList without the selection buttons. |
|
| Method Summary | |
|---|---|
void |
addCenterRendererComponent(Class clazz,
SelectableItemRendererCenterComponentIf component)
Adds the render component that is to be used for the given class or it's super class. |
void |
addListSelectionListener(ListSelectionListener listener)
|
void |
addMouseListener(MouseListener listener)
Adds a mouse listener to the list. |
void |
calculateSize()
Calcualtes the size of the list. |
void |
clearSelection()
Clear the selection. |
Object[] |
getListSelection()
Current selected Items in the List. |
Object |
getSelectedValue()
|
Object[] |
getSelection()
Attention: This is not a List with all selected Items in the List. |
void |
invertSelection()
Invert the selection |
void |
removeListSelectionListener(ListSelectionListener listener)
|
void |
selectAll()
Select all items. |
void |
setEnabled(boolean value)
|
void |
setFilterComboBox(JComboBox filterBox)
Sets the combo box that contains ItemFilters to filter the shown values of the list. |
void |
setHorizontalScrollBarPolicy(int value)
Sets if the horizontal scroll policy. |
void |
setListUI(ListUI ui)
Sets the UI to be used for the list. |
void |
setSelectionMode(int selectionMode)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectableItemList(Object[] currSelection,
Object[] allItems)
currSelection - The currently selected Objects.allItems - All Objects of the list.
public SelectableItemList(Object[] currSelection,
Object[] allItems,
Object[] notSelectableItems)
currSelection - The currently selected Objects.allItems - All Objects of the list.notSelectableItems - All Objects that could not be selected/deselected
public SelectableItemList(Object[] currSelection,
Object[] allItems,
boolean showSelectionButtons)
currSelection - The currently selected Objects.allItems - All Objects of the list.showSelectionButtons - If the selection buttons should be shown.
public SelectableItemList(Object[] currSelection,
Object[] allItems,
boolean showSelectionButtons,
Object[] notSelectableItems)
currSelection - The currently selected Objects.allItems - All Objects of the list.showSelectionButtons - If the selection buttons should be shown.notSelectableItems - All Objects that could not be selected/deselected| Method Detail |
|---|
public void addListSelectionListener(ListSelectionListener listener)
listener - Add this Listenerpublic void removeListSelectionListener(ListSelectionListener listener)
listener - Remove this Listenerpublic void setSelectionMode(int selectionMode)
selectionMode - The selection mode of the list.public Object[] getListSelection()
public Object[] getSelection()
public Object getSelectedValue()
public void invertSelection()
public void selectAll()
public void clearSelection()
public void setEnabled(boolean value)
setEnabled in class JComponentpublic void calculateSize()
public void addCenterRendererComponent(Class clazz,
SelectableItemRendererCenterComponentIf component)
clazz - The class to use the render component for, the render component is also used for the super class of clazz.component - The render component.public void setListUI(ListUI ui)
ui - The list ui that should be used for the list.public void setHorizontalScrollBarPolicy(int value)
value - The values from ScrollPaneConstants.public void addMouseListener(MouseListener listener)
addMouseListener in class Componentlistener - The listener to add.public void setFilterComboBox(JComboBox filterBox)
filterBox - The combo box with the ItemFilters.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||