Class ColumnNameChangedEvent

  • All Implemented Interfaces:
    CyEvent<CyTable>

    public final class ColumnNameChangedEvent
    extends AbstractCyEvent<CyTable>
    This event signals that a columns name has been changed.

    Module: model-api

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

    <dependency>
        <groupId>org.cytoscape</groupId>
        <artifactId>model-api</artifactId>
    </dependency>

    Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
    • Constructor Detail

      • ColumnNameChangedEvent

        public ColumnNameChangedEvent​(CyTable source,
                                      String oldColumnName,
                                      String newColumnName)
        Constructs event.
        Parameters:
        source - the source table of the column.
        oldColumnName - the columns old name before the change.
        newColumnName - the name the column name was changed to.
    • Method Detail

      • getOldColumnName

        public String getOldColumnName()
        Returns the old name of the column.
        Returns:
        the old name of the column
      • getOldNamespace

        public String getOldNamespace()
        Returns the old namespace of the column, or null if the column did not have a namespace. Default columns created by Cytoscape do not have a namespace.
      • getOldNameOnly

        public String getOldNameOnly()
        Returns the old name portion without the namespace.
      • getNewColumnName

        public String getNewColumnName()
        Returns the new name of the column.
        Returns:
        the new name of the column
      • getNewNamespace

        public String getNewNamespace()
        Returns the new namespace of the column, or null if the column does not have a namespace. Default columns created by Cytoscape do not have a namespace.
      • getNewNameOnly

        public String getNewNameOnly()
        Returns the name name portion without the namespace.