de.schwarzrot.ui.control.support
Class AbstractTableView<E extends Entity>
java.lang.Object
de.schwarzrot.ui.control.support.AbstractTableView<E>
- Type Parameters:
E
- - entity that fills the list
- Direct Known Subclasses:
- MappingsTableView, OptionBundlesTableView, OptionsTableView, ServicesTableView
public abstract class AbstractTableView<E extends Entity>
- extends Object
base class for list views of given Entity
. Handles list-events by
actions.
possible events:
user-events:
mouse-events: doubleclick (left button)
singleclick (right button)
key-events: Enter
delete
backspace
insert
indirect popup events (with popup entity and selection from list)
application-events:
selection changed
- Author:
- Reinhard Mantey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formFactory
protected static FormComponentFactory formFactory
imgFactory
protected static ImageFactory imgFactory
rf
protected static RendererFactory rf
taFactory
protected static TransactionFactory taFactory
popDoubleLeftExecutor
protected Action popDoubleLeftExecutor
popSingleRightExecutor
protected Action popSingleRightExecutor
selectionChangedExecutor
protected Action selectionChangedExecutor
sortedList
protected ca.odell.glazedlists.SortedList<E extends Entity> sortedList
toolTipHandler
protected ToolTipHandler<E extends Entity> toolTipHandler
AbstractTableView
public AbstractTableView()
AbstractTableView
public AbstractTableView(Collection<E> initialData)
AbstractTableView
public AbstractTableView(Collection<E> initialData,
int selectionMode)
AbstractTableView
public AbstractTableView(Collection<E> initialData,
int selectionMode,
Collection<E> initialSelection)
add
public void add(E elem)
addAll
public void addAll(Collection<E> nlist)
addFilter
public void addFilter(ListFilterComponent<E> filter)
clearList
public void clearList()
dumpColWidths
public void dumpColWidths()
getList
public final ca.odell.glazedlists.EventList<E> getList()
getLogger
public final org.apache.commons.logging.Log getLogger()
getMessageSource
public MessageSource getMessageSource()
getName
public String getName()
getPopDoubleLeftExecutor
public final Action getPopDoubleLeftExecutor()
getPopSingleRightExecutor
public final Action getPopSingleRightExecutor()
getSelectionChangedExecutor
public final Action getSelectionChangedExecutor()
getSelectionMode
public final int getSelectionMode()
getSelectionModel
public final ca.odell.glazedlists.swing.DefaultEventSelectionModel<E> getSelectionModel()
getSmallToolBar
public final JToolBar getSmallToolBar()
getSortedList
public final ca.odell.glazedlists.SortedList<E> getSortedList()
getTableFormat
public final AbstractTableView.AbstractTableFormat getTableFormat()
getThresholdFilter
public final ThresholdFilter<E> getThresholdFilter()
getView
public JComponent getView()
refresh
public void refresh()
remove
public void remove(E elem)
removeFilter
public void removeFilter(ListFilterComponent<E> filter)
replaceList
public void replaceList(Collection<E> nlist)
select
public void select(Collection<E> list)
setPopDoubleLeftExecutor
public final void setPopDoubleLeftExecutor(Action popDoubleLeftExecutor)
setPopSingleRightExecutor
public final void setPopSingleRightExecutor(Action popSingleRightExecutor)
setSelectionChangedExecutor
public final void setSelectionChangedExecutor(Action selectionChangedExecutor)
setSelectionMode
public final void setSelectionMode(int selectionMode)
setSmallToolBar
public final void setSmallToolBar(JToolBar smallToolBar)
setTableFormat
public final void setTableFormat(AbstractTableView.AbstractTableFormat tableFormat)
setThresholdFilter
public final void setThresholdFilter(ThresholdFilter<E> thresholdFilter)
setToolTipHandler
public final void setToolTipHandler(ToolTipHandler<E> tth)
buildPanel
protected abstract JComponent buildPanel()
createPopupListener
protected MouseListener createPopupListener()
createTable
protected JComponent createTable()
createToolBarButton
protected JButton createToolBarButton(String id)
getTable
protected final JTable getTable()
selectInitial
protected void selectInitial()
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.