Interface CyTableView

All Superinterfaces:
CyDisposable, CyIdentifiable, View<CyTable>

public interface CyTableView extends View<CyTable>, CyDisposable
Additional methods for table views.
Since:
3.9

Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.

Module: viewmodel-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>viewmodel-api</artifactId>
</dependency>
  • Method Details

    • getColumnView

      View<CyColumn> getColumnView(CyColumn column)
      Returns the View for a specified column.
      Parameters:
      column - CyColumn object representing the column
      Returns:
      The column View, or null if the column isn't in this table.
    • getColumnView

      default View<CyColumn> getColumnView(String fullyQualifiedName)
      Returns the View for a specified column.
      Parameters:
      fullyQualifiedName - The name of the column (including the namespace if present)
      Returns:
      The column View, or null if the column isn't in this table.
    • getColumnView

      View<CyColumn> getColumnView(long viewSuid)
      Returns the View for the specified column using its view SUID as key.
      Parameters:
      viewSuid - The SUID of the column view. Note this is not the SUID of the underlying CyColumn object, its the SUID of the View<CyColumn>
      Returns:
      The column View, or null if the column isn't in this table.
    • getColumnViews

      Collection<View<CyColumn>> getColumnViews()
      Returns all column views in this table view, in the same order as CyTable.getColumns().
      See Also:
      CyTable.getColumns()
    • getRowView

      View<CyRow> getRowView(CyRow row)
      Returns the View for the specified row.
      Parameters:
      row - CyRow object representing the column.
      Returns:
      The row View, or null if the row isn't in this table.
    • getRowViews

      Collection<View<CyRow>> getRowViews()
      Returns all row views in the table view.
    • getRendererId

      String getRendererId()
      Returns the ID of the renderer that must be used to render this view.
      See Also:
      TableViewRenderer.getId()
    • setViewDefault

      <T,​ V extends T> void setViewDefault(VisualProperty<? extends T> vp, V defaultValue)
      Sets the default value to be used for the specified visual property.
      Type Parameters:
      T - The type of the visual property value.
      V - The default value for the visual property, which must extend T.
      Parameters:
      vp - The visual property whose default value we're specifying.
      defaultValue - The default value to be used for this visual property for this view.