You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.2 KiB
80 lines
2.2 KiB
/*
|
|
* This file is part of FYReader.
|
|
* FYReader is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* FYReader is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with FYReader. If not, see <https://www.gnu.org/licenses/>.
|
|
*
|
|
* Copyright (C) 2020 - 2022 fengyuecanzhu
|
|
*/
|
|
|
|
package com.kongzue.dialogx.util;
|
|
|
|
/**
|
|
* Author: @Kongzue
|
|
* Github: https://github.com/kongzue/
|
|
* Homepage: http://kongzue.com/
|
|
* Mail: myzcxhh@live.cn
|
|
* CreateTime: 2018/11/8 21:41
|
|
*/
|
|
public class InputInfo {
|
|
|
|
private int MAX_LENGTH = -1; //最大长度,-1不生效
|
|
private int inputType; //类型详见 android.text.InputType
|
|
private TextInfo textInfo; //默认字体样式
|
|
private boolean multipleLines; //支持多行
|
|
private boolean selectAllText; //默认选中所有文字(便于修改)
|
|
|
|
public int getMAX_LENGTH() {
|
|
return MAX_LENGTH;
|
|
}
|
|
|
|
public InputInfo setMAX_LENGTH(int MAX_LENGTH) {
|
|
this.MAX_LENGTH = MAX_LENGTH;
|
|
return this;
|
|
}
|
|
|
|
public int getInputType() {
|
|
return inputType;
|
|
}
|
|
|
|
public InputInfo setInputType(int inputType) {
|
|
this.inputType = inputType;
|
|
return this;
|
|
}
|
|
|
|
public TextInfo getTextInfo() {
|
|
return textInfo;
|
|
}
|
|
|
|
public InputInfo setTextInfo(TextInfo textInfo) {
|
|
this.textInfo = textInfo;
|
|
return this;
|
|
}
|
|
|
|
public boolean isMultipleLines() {
|
|
return multipleLines;
|
|
}
|
|
|
|
public InputInfo setMultipleLines(boolean multipleLines) {
|
|
this.multipleLines = multipleLines;
|
|
return this;
|
|
}
|
|
|
|
public boolean isSelectAllText() {
|
|
return selectAllText;
|
|
}
|
|
|
|
public InputInfo setSelectAllText(boolean selectAllText) {
|
|
this.selectAllText = selectAllText;
|
|
return this;
|
|
}
|
|
}
|
|
|