org.eclipse.swt.widgets.Text字符数限制 [英] org.eclipse.swt.widgets.Text character limit

查看:231
本文介绍了org.eclipse.swt.widgets.Text字符数限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用org.eclipse.swt.widgets.Text
我正在做

I am using org.eclipse.swt.widgets.Text I am doing

Text description = new Text(container, SWT.SINGLE);
description.setEditable(false);
description.setText("long string");

大约一半的文字显示在我正在创建的向导中。我看到在API中有一个静态int称为LIMIT。我没有能够找到它在哪里声明有一个预设的文本可以容纳的字符数。我想将其扩展到我需要的字符数。

About half of the text shows up in the wizard that I am creating. I see there is a static int called LIMIT in the API. I have not been able to find where it states there is a preset on the number of characters that the Text can hold. I want to expand this to the number of characters that I need.

推荐答案

Text.LIMIT(2,147,483,647或2 ^ 31)是可以输入到文本小部件的最大字符数。每个版本的eclipse都可以更改此值。

Text.LIMIT (2,147,483,647 or 2^31) is the maximum number of characters that can be entered into a text widget. This value can change for each version of eclipse.

这篇关于org.eclipse.swt.widgets.Text字符数限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆