Class OfflineEventListPanel

java.lang.Object
clickDetector.offlineFuncs.OfflineEventListPanel

public class OfflineEventListPanel extends Object
List of offline events which can be included in various dialogs associated with offline event creation and management.
Author:
Doug Gillespie
  • Field Details

    • SHOW_ALL

      public static final int SHOW_ALL
      show all events
      See Also:
    • SHOW_SELECTION

      public static final int SHOW_SELECTION
      Show only those events which overlap the current loaded click data.
      See Also:
    • SHOW_FUTURE

      public static final int SHOW_FUTURE
      Show 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

      public OfflineEventListPanel(ClickControl clickControl)
  • 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

      public JPanel getPanel()
      Returns:
      the mainPanel
    • getTable

      public JTable getTable()
    • getSelectionPanel

      public JPanel getSelectionPanel()
      Get a smaller panel of buttons allowing user to select a sub set of data.
      Returns:
      small panel.
    • addMouseListener

      public void addMouseListener(MouseListener mouseListener)
    • addListSelectionListener

      public void addListSelectionListener(ListSelectionListener listSelectionListener)
    • setSelectedEvent

      public void setSelectedEvent(OfflineEventDataUnit selectedEvent)
    • setSelectedEvents

      public void setSelectedEvents(ArrayList<OfflineEventDataUnit> selectedEvent)
    • getSelectedEvent

      public OfflineEventDataUnit getSelectedEvent()
      Returns:
      the event for the currently selected row, or null if nothing selected
    • getSelectedEvent

      public OfflineEventDataUnit getSelectedEvent(int rowIndex)
      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)