Class LCommandCategoriesAdd
java.lang.Object
com.io7m.laurel.filemodel.internal.LCommandAbstract<List<LCategoryName>>
com.io7m.laurel.filemodel.internal.LCommandCategoriesAdd
- All Implemented Interfaces:
LCommandType<List<LCategoryName>>
Add categories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()protected LCommandUndoableonExecute(LFileModel model, LDatabaseTransactionType transaction, List<LCategoryName> categories) protected voidonRedo(LFileModel model, LDatabaseTransactionType transaction) protected voidonUndo(LFileModel model, LDatabaseTransactionType transaction) static LCommandFactoryType<List<LCategoryName>> provider()Add categories.Methods inherited from class com.io7m.laurel.filemodel.internal.LCommandAbstract
execute, isExecuted, redo, setExecuted, undoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.laurel.filemodel.internal.LCommandType
loading, requiresCompaction, serialize
-
Constructor Details
-
LCommandCategoriesAdd
public LCommandCategoriesAdd()Add categories.
-
-
Method Details
-
provider
Add categories.- Returns:
- A command factory
-
onExecute
protected LCommandUndoable onExecute(LFileModel model, LDatabaseTransactionType transaction, List<LCategoryName> categories) - Specified by:
onExecutein classLCommandAbstract<List<LCategoryName>>
-
onUndo
- Specified by:
onUndoin classLCommandAbstract<List<LCategoryName>>
-
onRedo
- Specified by:
onRedoin classLCommandAbstract<List<LCategoryName>>
-
toProperties
- Returns:
- The command as a set of properties
-
describe
- Returns:
- A humanly-readable description of the operation
-