Package io.keikai.model.impl
Class ScenarioImpl
java.lang.Object
io.keikai.model.impl.ScenarioImpl
- All Implemented Interfaces:
SScenario,Serializable
Default implementation of
SScenario.- Since:
- 7.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInputCell(int row, int col, String value) Adds an input cell to this scenario.Returns the comment/description of this scenario.Returns the list of input cells for this scenario.getName()Returns the name of this scenario.getUser()Returns the user who created or last modified this scenario.booleanisHidden()Returns whether this scenario is hidden from the user.booleanisLocked()Returns whether this scenario is locked (cannot be modified when sheet is protected).voidsetComment(String comment) Sets the comment/description of this scenario.voidsetHidden(boolean hidden) Sets whether this scenario is hidden from the user.voidsetLocked(boolean locked) Sets whether this scenario is locked.voidSets the name of this scenario.voidSets the user who created or last modified this scenario.
-
Constructor Details
-
ScenarioImpl
-
-
Method Details
-
getName
Description copied from interface:SScenarioReturns the name of this scenario. -
setName
Description copied from interface:SScenarioSets the name of this scenario. -
getComment
Description copied from interface:SScenarioReturns the comment/description of this scenario.- Specified by:
getCommentin interfaceSScenario- Returns:
- the comment, or null if not set
-
setComment
Description copied from interface:SScenarioSets the comment/description of this scenario.- Specified by:
setCommentin interfaceSScenario- Parameters:
comment- the comment text
-
getUser
Description copied from interface:SScenarioReturns the user who created or last modified this scenario. -
setUser
Description copied from interface:SScenarioSets the user who created or last modified this scenario. -
isHidden
public boolean isHidden()Description copied from interface:SScenarioReturns whether this scenario is hidden from the user. -
setHidden
public void setHidden(boolean hidden) Description copied from interface:SScenarioSets whether this scenario is hidden from the user. -
isLocked
public boolean isLocked()Description copied from interface:SScenarioReturns whether this scenario is locked (cannot be modified when sheet is protected). -
setLocked
public void setLocked(boolean locked) Description copied from interface:SScenarioSets whether this scenario is locked. -
getInputCells
Description copied from interface:SScenarioReturns the list of input cells for this scenario.- Specified by:
getInputCellsin interfaceSScenario- Returns:
- list of input cells
-
addInputCell
Description copied from interface:SScenarioAdds an input cell to this scenario.- Specified by:
addInputCellin interfaceSScenario- Parameters:
row- the row index (0-based)col- the column index (0-based)value- the scenario value for this cell- Returns:
- the newly created input cell
-