Exemplo n.º 1
0
    /**
     * *****************************************************************************
     *
     * @param event
     */
    public void requestSelectedFile(DirectoryTableEvent event) {
      File file = getSelectedFile();

      if (file != null) {
        DirectoryTableEvent.notifySelectedFile(this, file);
      }
    }
Exemplo n.º 2
0
    /**
     * ***************************************************************************
     *
     * @param event
     */
    public void valueChanged(ListSelectionEvent event) {
      // Swing may generate a change event more than once.  All change events, except
      // the last event, will have the "value is adjusting" flag set true.  We want only
      // the last event.
      if (event.getValueIsAdjusting() == false) {
        File file = getSelectedFile();

        if (file != null) {
          DirectoryTableEvent.notifyFileSelectionChanged(this, file);
        }
      }
    }