Package clickDetector.offlineFuncs
Class OfflineEventListPanel
java.lang.Object
clickDetector.offlineFuncs.OfflineEventListPanel
List of offline events which can be included in various dialogs 
 associated with offline event creation and management.
- Author:
 - Doug Gillespie
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intshow all eventsstatic final intShow the current time period and all later events (good for scrolling data, so current event is shown + all future ones)static final intShow only those events which overlap the current loaded click data. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddListSelectionListener(ListSelectionListener listSelectionListener) voidaddMouseListener(MouseListener mouseListener) getPanel()getSelectedEvent(int rowIndex) Find the event corresponding to the given row indexGet a smaller panel of buttons allowing user to select a sub set of data.intgetTable()booleanvoidCalled when the show selection has changed.voidsetEnabled(boolean enabled) voidsetSelectedEvent(OfflineEventDataUnit selectedEvent) voidsetSelectedEvents(ArrayList<OfflineEventDataUnit> selectedEvent) voidsetShowSelection(int showSelection) voidCall when an event has been added or removed in order to update the table. 
- 
Field Details
- 
SHOW_ALL
public static final int SHOW_ALLshow all events- See Also:
 
 - 
SHOW_SELECTION
public static final int SHOW_SELECTIONShow only those events which overlap the current loaded click data.- See Also:
 
 - 
SHOW_FUTURE
public static final int SHOW_FUTUREShow the current time period and all later events (good for scrolling data, so current event is shown + all future ones)- See Also:
 
 
 - 
 - 
Constructor Details
- 
OfflineEventListPanel
 
 - 
 - 
Method Details
- 
getShowSelection
public int getShowSelection() - 
setShowSelection
public void setShowSelection(int showSelection)  - 
selectData
public void selectData()Called when the show selection has changed. Wit more complex data selection this now just copies all selected data into an array list. - 
tableDataChanged
public void tableDataChanged()Call when an event has been added or removed in order to update the table. - 
getPanel
- Returns:
 - the mainPanel
 
 - 
getTable
 - 
getSelectionPanel
Get a smaller panel of buttons allowing user to select a sub set of data.- Returns:
 - small panel.
 
 - 
addMouseListener
 - 
addListSelectionListener
 - 
setSelectedEvent
 - 
setSelectedEvents
 - 
getSelectedEvent
- Returns:
 - the event for the currently selected row, or null if nothing selected
 
 - 
getSelectedEvent
Find the event corresponding to the given row index- Parameters:
 rowIndex- row index- Returns:
 - Event or null if rowIndex out of range.
 
 - 
isEnabled
public boolean isEnabled() - 
setEnabled
public void setEnabled(boolean enabled)  
 -