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
Modifier and TypeFieldDescriptionstatic final int
show all eventsstatic final int
Show the current time period and all later events (good for scrolling data, so current event is shown + all future ones)static final int
Show only those events which overlap the current loaded click data. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListSelectionListener
(ListSelectionListener listSelectionListener) void
addMouseListener
(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.int
getTable()
boolean
void
Called when the show selection has changed.void
setEnabled
(boolean enabled) void
setSelectedEvent
(OfflineEventDataUnit selectedEvent) void
setSelectedEvents
(ArrayList<OfflineEventDataUnit> selectedEvent) void
setShowSelection
(int showSelection) void
Call 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)
-