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 Link icon

    • SHOW_ALL Link icon

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

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

      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 Link icon

    • OfflineEventListPanel Link icon

      public OfflineEventListPanel(ClickControl clickControl)
  • Method Details Link icon

    • getShowSelection Link icon

      public int getShowSelection()
    • setShowSelection Link icon

      public void setShowSelection(int showSelection)
    • selectData Link icon

      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 Link icon

      public void tableDataChanged()
      Call when an event has been added or removed in order to update the table.
    • getPanel Link icon

      public JPanel getPanel()
      Returns:
      the mainPanel
    • getTable Link icon

      public JTable getTable()
    • getSelectionPanel Link icon

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

      public void addMouseListener(MouseListener mouseListener)
    • addListSelectionListener Link icon

      public void addListSelectionListener(ListSelectionListener listSelectionListener)
    • setSelectedEvent Link icon

      public void setSelectedEvent(OfflineEventDataUnit selectedEvent)
    • setSelectedEvents Link icon

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

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

      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 Link icon

      public boolean isEnabled()
    • setEnabled Link icon

      public void setEnabled(boolean enabled)