Class AbstractMatrixCell

  • Direct Known Subclasses:
    AbstractMatrixCell.UnknownCell

    @OpenApiAll
    public abstract class AbstractMatrixCell
    extends java.lang.Object
    Base cell for all matrix cells
    • Field Detail

      • EMPTY_EDITABLE_CELL

        public static final AbstractMatrixCell EMPTY_EDITABLE_CELL
        Returns static editable cell
      • EMPTY_READONLY_CELL

        public static final AbstractMatrixCell EMPTY_READONLY_CELL
        Returns static read-only cell
      • UNKNOWN_CELL

        public static final AbstractMatrixCell UNKNOWN_CELL
        Empty cell with unknown read-only status
    • Constructor Detail

      • AbstractMatrixCell

        public AbstractMatrixCell()
    • Method Detail

      • isEditable

        public boolean isEditable()
      • isUnknownEditableState

        public boolean isUnknownEditableState()
        This means that this cell editable state is unknown, and needs to be updated
        Returns:
        for abstract cell this is always true
      • getDependencies

        public abstract java.util.Collection<DependencyEntry> getDependencies()
        Dependency entry list
        Returns:
        dependency entries or empty list if not exits
      • setDependencies

        public abstract void setDependencies​(java.util.Collection<DependencyEntry> dependencies)
        Set new collection with cell dependency list
        Parameters:
        dependencies - new dependency list for the cell
      • getView

        public MatrixCellView getView()
        Creates or returns already created matrix view object
        Returns:
        matrix cell view object
      • getDescription

        @CheckForNull
        public java.lang.String getDescription()
        Returns:
        representative text describing this cell
      • getStaticCell

        public static AbstractMatrixCell getStaticCell​(ReadOnlyFlags readOnlyFlags)
        Get static cell according to provided readonly flags
        Parameters:
        readOnlyFlags - readonly flags for static cell selection
        Returns:
        reference to static cell
      • isUnknownStaticCell

        public static boolean isUnknownStaticCell​(AbstractMatrixCell cell)
        Checks if this is static cell with unknown read-only state
        Parameters:
        cell - cell to check
        Returns:
        true if it is static unknown state cell
      • isStaticCell

        public static boolean isStaticCell​(AbstractMatrixCell value)
        Checks whether it is AbstractMatrixCell.EMPTY_READONLY_CELL or AbstractMatrixCell.EMPTY_EDITABLE_CELL
        Parameters:
        value - cell to check
        Returns:
        true if it is one of them