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 voidredo(ComplexOperation oper)Redoes the operation.java.lang.StringtoString()Formats to string.voidundo(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:
undoin interfaceIComplexSubOperation- Throws:
PropException- For property errors.
redo
public void redo(ComplexOperation oper) throws PropException
Redoes the operation.- Specified by:
redoin interfaceIComplexSubOperation- Throws:
PropException- For property errors.
toString
public java.lang.String toString()
Formats to string.- Overrides:
toStringin classjava.lang.Object