de.esprit.common.gui.table

## Class TableSelectionController

- java.lang.Object
- - de.esprit.common.gui.table.TableDataController
  - - de.esprit.common.gui.table.TableSelectionController

-     public class TableSelectionController
      extends TableDataController

  This class detects table row selections and triggers the enable state evaluation of the given action.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TableSelectionController(ZAction action, javax.swing.JTable table)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getSelectionCount()`
    `boolean` | `hasMultipleSelection()`
    `boolean` | `hasSelection()`
    `boolean` | `hasSingleSelection()`
    `boolean` | `isEnabled()`
    `void` | `setActivationMode(ActivationMode activationMode)`

    - ### Methods inherited from class de.esprit.common.gui.table.TableDataController

      `getAction, getTable, hasData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TableSelectionController

          public TableSelectionController(ZAction action,
                                  javax.swing.JTable table)

  - ### Method Detail

    - #### setActivationMode

          public void setActivationMode(ActivationMode activationMode)

    - #### isEnabled

          public boolean isEnabled()

      Overrides:
        `isEnabled` in class `TableDataController`

    - #### hasSelection

          public boolean hasSelection()

    - #### hasSingleSelection

          public boolean hasSingleSelection()

    - #### hasMultipleSelection

          public boolean hasMultipleSelection()

    - #### getSelectionCount

          public int getSelectionCount()

Copyright © 2014 EsprIT-Systems. All Rights Reserved.