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.ObjectBase cell for all matrix cells
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAbstractMatrixCell.UnknownCellStatic cell which editable state is unknown and needs to be updated
-
Field Summary
Fields Modifier and Type Field Description static AbstractMatrixCellEMPTY_EDITABLE_CELLReturns static editable cellstatic AbstractMatrixCellEMPTY_READONLY_CELLReturns static read-only cellstatic AbstractMatrixCellUNKNOWN_CELLEmpty 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.StringgetDescription()static AbstractMatrixCellgetStaticCell(ReadOnlyFlags readOnlyFlags)Get static cell according to provided readonly flagsMatrixCellViewgetView()Creates or returns already created matrix view objectbooleanisEditable()static booleanisStaticCell(AbstractMatrixCell value)Checks whether it isAbstractMatrixCell.EMPTY_READONLY_CELLorAbstractMatrixCell.EMPTY_EDITABLE_CELLbooleanisUnknownEditableState()This means that this cell editable state is unknown, and needs to be updatedstatic booleanisUnknownStaticCell(AbstractMatrixCell cell)Checks if this is static cell with unknown read-only stateabstract voidsetDependencies(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_CELLorAbstractMatrixCell.EMPTY_EDITABLE_CELL- Parameters:
value- cell to check- Returns:
- true if it is one of them
-
-