Package com.iizigo.text.prop
Class ValidateKStringPropSubOperation
- java.lang.Object
- com.iizigo.text.prop.ValidateKStringPropSubOperation
- All Implemented Interfaces:
IComplexSubOperation
public class ValidateKStringPropSubOperation extends java.lang.Object implements IComplexSubOperation
Sub operation for rename property.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description ValidateKStringPropSubOperation(ContainerParticipant cnr, KStringProp prop, boolean on)
Validates or invalidates a KStringStringProp sub operation.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
redo(ComplexOperation oper)
Redoes the operation.java.lang.String
toString()
Formats to string.void
undo(ComplexOperation oper)
Undoes the operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.iizigo.editor.complex.IComplexSubOperation
canRedo, canUndo
Constructor Detail
ValidateKStringPropSubOperation
public ValidateKStringPropSubOperation(ContainerParticipant cnr, KStringProp prop, boolean on)
Validates or invalidates a KStringStringProp sub operation.- Parameters:
cnr
- The target container.prop
- The property to validate or invalidate.on
- Validation flag.
Method Detail
undo
public void undo(ComplexOperation oper) throws PropException
Undoes the operation.- Specified by:
undo
in interfaceIComplexSubOperation
- Throws:
PropException
- For property errors.
redo
public void redo(ComplexOperation oper) throws PropException
Redoes the operation.- Specified by:
redo
in interfaceIComplexSubOperation
- Throws:
PropException
- For property errors.
toString
public java.lang.String toString()
Formats to string.- Overrides:
toString
in classjava.lang.Object