SRJRCFrames
v0.1.296

de.schwarzrot.ui.control.support
Class AbstractTableView<E extends Entity>

java.lang.Object
  extended by 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

Nested Class Summary
protected  class AbstractTableView.AbstractTableFormat
           
protected  class AbstractTableView.AbstractThresholdFilter
           
 
Field Summary
protected static FormComponentFactory formFactory
           
protected static ImageFactory imgFactory
           
protected  Action popDoubleLeftExecutor
           
protected  Action popSingleRightExecutor
           
protected static RendererFactory rf
           
protected  Action selectionChangedExecutor
           
protected  ca.odell.glazedlists.SortedList<E> sortedList
           
protected static TransactionFactory taFactory
           
protected  ToolTipHandler<E> toolTipHandler
           
 
Constructor Summary
AbstractTableView()
           
AbstractTableView(Collection<E> initialData)
           
AbstractTableView(Collection<E> initialData, int selectionMode)
           
AbstractTableView(Collection<E> initialData, int selectionMode, Collection<E> initialSelection)
           
 
Method Summary
 void add(E elem)
           
 void addAll(Collection<E> nlist)
           
 void addFilter(ListFilterComponent<E> filter)
           
protected abstract  JComponent buildPanel()
           
 void clearList()
           
protected  MouseListener createPopupListener()
           
protected  JComponent createTable()
           
protected  JButton createToolBarButton(String id)
           
 void dumpColWidths()
           
 ca.odell.glazedlists.EventList<E> getList()
           
 org.apache.commons.logging.Log getLogger()
           
 MessageSource getMessageSource()
           
 String getName()
           
 Action getPopDoubleLeftExecutor()
           
 Action getPopSingleRightExecutor()
           
 Action getSelectionChangedExecutor()
           
 int getSelectionMode()
           
 ca.odell.glazedlists.swing.DefaultEventSelectionModel<E> getSelectionModel()
           
 JToolBar getSmallToolBar()
           
 ca.odell.glazedlists.SortedList<E> getSortedList()
           
protected  JTable getTable()
           
 AbstractTableView.AbstractTableFormat getTableFormat()
           
 ThresholdFilter<E> getThresholdFilter()
           
 JComponent getView()
           
 void refresh()
           
 void remove(E elem)
           
 void removeFilter(ListFilterComponent<E> filter)
           
 void replaceList(Collection<E> nlist)
           
 void select(Collection<E> list)
           
protected  void selectInitial()
           
 void setPopDoubleLeftExecutor(Action popDoubleLeftExecutor)
           
 void setPopSingleRightExecutor(Action popSingleRightExecutor)
           
 void setSelectionChangedExecutor(Action selectionChangedExecutor)
           
 void setSelectionMode(int selectionMode)
           
 void setSmallToolBar(JToolBar smallToolBar)
           
 void setTableFormat(AbstractTableView.AbstractTableFormat tableFormat)
           
 void setThresholdFilter(ThresholdFilter<E> thresholdFilter)
           
 void setToolTipHandler(ToolTipHandler<E> tth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.