Class AbstractInputAgentBuilder
java.lang.Object
org.zkoss.zats.mimic.impl.operation.input.AbstractInputAgentBuilder
- All Implemented Interfaces:
OperationAgentBuilder<ComponentAgent,InputAgent>
- Direct Known Subclasses:
DateInputAgentBuilder,DecimalInputAgentBuilder,DecimalStringInputAgentBuilder,IntegerInputAgentBuilder,IntegerStringInputAgentBuilder,TextInputAgentBuilder,TimeInputAgentBuilder
public abstract class AbstractInputAgentBuilder
extends Object
implements OperationAgentBuilder<ComponentAgent,InputAgent>
The abstract builder of input operation. Because different ZK components accept different format of text input.
- Author:
- dennis
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringformatDate(String format, Date value) protected static StringformatNumber(String format, Number number) Provide class information for registration.protected static Dateprotected static NumberparseNumber(String format, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.zats.mimic.impl.OperationAgentBuilder
getOperation
-
Field Details
-
DEFAULT_DATE_FORMAT
- See Also:
-
DEFAULT_TIME_FORMAT
- See Also:
-
-
Constructor Details
-
AbstractInputAgentBuilder
public AbstractInputAgentBuilder()
-
-
Method Details
-
getOperationClass
Description copied from interface:OperationAgentBuilderProvide class information for registration.- Specified by:
getOperationClassin interfaceOperationAgentBuilder<ComponentAgent,InputAgent> - Returns:
- a sub-class of
OperationAgent
-
parseDate
-
formatDate
-
parseNumber
-
formatNumber
-