Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit dde4ec4

Browse files
committed
增加文本填入的高级接口
1 parent 2b22501 commit dde4ec4

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* http://surenpi.com
3+
*/
4+
package org.suren.autotest.web.framework.core.action;
5+
6+
import org.suren.autotest.web.framework.core.ui.Element;
7+
8+
/**
9+
* 高级文本值填入接口
10+
* @author suren
11+
* @date 2017年3月16日 下午8:22:42
12+
*/
13+
public interface AdvanceValueEditor extends ValueEditor
14+
{
15+
/**
16+
* 在原有值的基础上追加,允许值为空
17+
* @param ele
18+
* @param value
19+
*/
20+
void appendValue(Element ele, Object value);
21+
22+
/**
23+
* 填入为空值,如果值为空会抛出异常
24+
* @param ele
25+
* @param value 该值为空抛出异常
26+
*/
27+
void fillNotBlankValue(Element ele, Object value);
28+
}

src/main/java/org/suren/autotest/web/framework/core/action/ValueEditor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ public interface ValueEditor extends Status
1212
{
1313
/**
1414
* 获取值
15-
*
1615
* @return
1716
*/
1817
Object getValue(Element ele);
1918

2019
/**
21-
* 设置值
22-
*
20+
* 设置值(清空原有值)
2321
* @param value
2422
*/
2523
void setValue(Element ele, Object value);

0 commit comments

Comments
 (0)