iconifiedtext.java
来自「android文件系统」· Java 代码 · 共 49 行
JAVA
49 行
package com.mymobisoft.mobisoft.iconlist;
import android.graphics.drawable.Drawable;
public class IconifiedText {
private String _text = "";
private Drawable _icon;
private boolean _isSelectable = true;
public IconifiedText(String text, Drawable icon) {
_text = text;
_icon = icon;
}// end IconifiedText
public boolean isSelectable() {
return _isSelectable;
}// end isSelectable()
public void setSelectable(boolean selectable) {
_isSelectable = selectable;
}// end setSelectable()
public String getText() {
return _text;
}// end getText()
public void setText(String text) {
_text = text;
}//end setText
public Drawable getIcon() {
return _icon;
}// end getIcon()
public void setIcon(Drawable icon) {
_icon = icon;
}//end setIcon()
//@Override
public int compareTo(IconifiedText other) {
if (this._text != null) {
return this._text.compareTo(other.getText());
} else {
throw new IllegalArgumentException();
}// end if
}// compareTo()
}// end class IconFieldText
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?