Class AbstractMatrixCell
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.datamodel.cell.AbstractMatrixCell
-
- Direct Known Subclasses:
AbstractMatrixCell.UnknownCell
@OpenApiAll public abstract class AbstractMatrixCell extends java.lang.Object
Base cell for all matrix cells
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
AbstractMatrixCell.UnknownCell
Static cell which editable state is unknown and needs to be updated
-
Field Summary
Fields Modifier and Type Field Description static AbstractMatrixCell
EMPTY_EDITABLE_CELL
Returns static editable cellstatic AbstractMatrixCell
EMPTY_READONLY_CELL
Returns static read-only cellstatic AbstractMatrixCell
UNKNOWN_CELL
Empty cell with unknown read-only status
-
Constructor Summary
Constructors Constructor Description AbstractMatrixCell()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.Collection<DependencyEntry>
getDependencies()
Dependency entry listjava.lang.String
getDescription()
static AbstractMatrixCell
getStaticCell(ReadOnlyFlags readOnlyFlags)
Get static cell according to provided readonly flagsMatrixCellView
getView()
Creates or returns already created matrix view objectboolean
isEditable()
static boolean
isStaticCell(AbstractMatrixCell value)
Checks whether it isAbstractMatrixCell.EMPTY_READONLY_CELL
orAbstractMatrixCell.EMPTY_EDITABLE_CELL
boolean
isUnknownEditableState()
This means that this cell editable state is unknown, and needs to be updatedstatic boolean
isUnknownStaticCell(AbstractMatrixCell cell)
Checks if this is static cell with unknown read-only stateabstract void
setDependencies(java.util.Collection<DependencyEntry> dependencies)
Set new collection with cell dependency list
-
-
-
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
-
-
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 isAbstractMatrixCell.EMPTY_READONLY_CELL
orAbstractMatrixCell.EMPTY_EDITABLE_CELL
- Parameters:
value
- cell to check- Returns:
- true if it is one of them
-
-