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 Modifier and Type Class Description static classAbstractInputAgentBuilder.AbstractInputAgentImpl
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_DATE_FORMATprotected static StringDEFAULT_TIME_FORMAT
-
Constructor Summary
Constructors Constructor Description AbstractInputAgentBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringformatDate(String format, Date value)protected static StringformatNumber(String format, Number number)Class<InputAgent>getOperationClass()Provide class information for registration.protected static DateparseDate(String format, String value)protected static NumberparseNumber(String format, String value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zkoss.zats.mimic.impl.OperationAgentBuilder
getOperation
-
-
-
-
Field Detail
-
DEFAULT_DATE_FORMAT
protected static final String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
-
DEFAULT_TIME_FORMAT
protected static final String DEFAULT_TIME_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOperationClass
public Class<InputAgent> getOperationClass()
Description copied from interface:OperationAgentBuilderProvide class information for registration.- Specified by:
getOperationClassin interfaceOperationAgentBuilder<ComponentAgent,InputAgent>- Returns:
- a sub-class of
OperationAgent
-
-