Package net.anwiba.commons.swing.list
Class ObjectListComponent<T>
- java.lang.Object
-
- net.anwiba.commons.swing.list.ObjectListComponent<T>
-
- All Implemented Interfaces:
IComponentProvider
public class ObjectListComponent<T> extends java.lang.Object implements IComponentProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectListComponent.JListSelectionListener<T>static classObjectListComponent.SelectionListener<T>
-
Constructor Summary
Constructors Constructor Description ObjectListComponent(IListModel<T> listModel)ObjectListComponent(IObjectListConfiguration<T> configuration, IListModel<T> listModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponentgetComponent()ISelectionModel<T>getSelectionModel()voidscrollToSelectedObject()voidsetHorizontalWrapLayout()voidsetVerticalLayout()
-
-
-
Constructor Detail
-
ObjectListComponent
public ObjectListComponent(IListModel<T> listModel)
-
ObjectListComponent
public ObjectListComponent(IObjectListConfiguration<T> configuration, IListModel<T> listModel)
-
-
Method Detail
-
scrollToSelectedObject
public void scrollToSelectedObject()
-
setVerticalLayout
public void setVerticalLayout()
-
setHorizontalWrapLayout
public void setHorizontalWrapLayout()
-
getComponent
public javax.swing.JComponent getComponent()
- Specified by:
getComponentin interfaceIComponentProvider
-
getSelectionModel
public ISelectionModel<T> getSelectionModel()
-
-