public abstract static class AbstractInputAgentBuilder.AbstractInputAgentImpl extends AgentDelegator<ComponentAgent> implements InputAgent
target
Constructor and Description |
---|
AbstractInputAgentImpl(ComponentAgent target) |
Modifier and Type | Method and Description |
---|---|
void |
input(java.lang.Object value)
To input value into a component.
|
protected abstract void |
putValue(ComponentAgent target,
java.lang.String raw,
java.util.Map<java.lang.String,java.lang.Object> data)
sub-class should put parsed value(s) into AU data
|
void |
select(int start,
int end)
To select (highlight) a range to text of an InputElement by specifying 2 indexes.
|
protected abstract java.lang.String |
toRawString(ComponentAgent target,
java.lang.Object value)
sub-class should convert value into raw string to set to
InputAgent.type(String) |
void |
type(java.lang.String value)
To type text into a component.
|
void |
typing(java.lang.String value)
To simulate typing data into a component and it will send onChanging event to server.
|
getClient, getDelegatee
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClient, getDelegatee
public AbstractInputAgentImpl(ComponentAgent target)
protected abstract void putValue(ComponentAgent target, java.lang.String raw, java.util.Map<java.lang.String,java.lang.Object> data)
protected abstract java.lang.String toRawString(ComponentAgent target, java.lang.Object value)
InputAgent.type(String)
public void input(java.lang.Object value)
InputAgent
input
in interface InputAgent
value
- the input valuepublic void type(java.lang.String value)
InputAgent
type
in interface InputAgent
value
- the input valuepublic void typing(java.lang.String value)
InputAgent
typing
in interface InputAgent
value
- the typing value.public void select(int start, int end)
InputAgent
select
in interface InputAgent
start
- the beginning index,start from 0, inclusive.end
- the ending index, exclusive.Copyright © 2019 Potix Corporation. All rights reserved.