我想在标签字段中水平滚动。

我正在自定义 GridField Manager 中添加此 LabelField。这是自定义 GridField 管理器的代码。
public class CustomGridFieldManager extends Manager {
private int[] columnWidths;
private int columns;
private int allRowHeight = -1;
public CustomGridFieldManager(int columns, long style) {
super(style);
this.columns = columns;
}
public CustomGridFieldManager(int[] columnWidths, long style) {
super(style);
this.columnWidths = columnWidths;
this.columns = columnWidths.length;
}
public CustomGridFieldManager(int[] columnWidths, int rowHeight, long style) {
this(columnWidths, style);
this.allRowHeight = rowHeight;
}
protected boolean navigationMovement(int dx, int dy, int status, int time) {
int focusIndex = getFieldWithFocusIndex();
while(dy …Run Code Online (Sandbox Code Playgroud) 我想要一个甚至没有显示插入符号的不可编辑的TextField(或子类).或者,我想要一个多行LabelField.这些都有可能吗?