本文整理了Java中org.eclipse.swt.widgets.DateTime.unformattedIntValue()
方法的一些代码示例,展示了DateTime.unformattedIntValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateTime.unformattedIntValue()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.DateTime
类名称:DateTime
方法名:unformattedIntValue
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void commitCurrentField () {
if (characterCount > 0) {
characterCount = 0;
int fieldName = fieldNames[currentField];
int start = fieldIndices[currentField].x;
int end = fieldIndices[currentField].y;
String value = getText (getText (),start, end - 1);
int s = value.lastIndexOf (' ');
if (s != -1) value = value.substring (s + 1);
int newValue = unformattedIntValue (fieldName, value, characterCount == 0, calendar.getActualMaximum (fieldName));
if (newValue != -1) setTextField (fieldName, newValue, true, true);
}
}
/** returns selected text **/
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void commitCurrentField () {
if (characterCount > 0) {
characterCount = 0;
int fieldName = fieldNames[currentField];
int start = fieldIndices[currentField].x;
int end = fieldIndices[currentField].y;
String value = getText (getText (),start, end - 1);
int s = value.lastIndexOf (' ');
if (s != -1) value = value.substring (s + 1);
int newValue = unformattedIntValue (fieldName, value, characterCount == 0, calendar.getActualMaximum (fieldName));
if (newValue != -1) setTextField (fieldName, newValue, true, true);
}
}
/** returns selected text **/
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void commitCurrentField () {
if (characterCount > 0) {
characterCount = 0;
int fieldName = fieldNames[currentField];
int start = fieldIndices[currentField].x;
int end = fieldIndices[currentField].y;
String value = getText (getText (),start, end - 1);
int s = value.lastIndexOf (' ');
if (s != -1) value = value.substring (s + 1);
int newValue = unformattedIntValue (fieldName, value, characterCount == 0, calendar.getActualMaximum (fieldName));
if (newValue != -1) setTextField (fieldName, newValue, true, true);
}
}
/** returns selected text **/
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
int max = calendar.getActualMaximum (fieldName);
int min = calendar.getActualMinimum (fieldName);
int newValue = unformattedIntValue (fieldName, newText, characterCount == 0, max);
if (newValue == -1) {
characterCount = 0;
if (newTextLength >= length) {
newText = newText.substring (newTextLength - length + 1);
newValue = unformattedIntValue (fieldName, newText, characterCount == 0, max);
if (newValue != -1) {
characterCount = length - 1;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
int max = calendar.getActualMaximum (fieldName);
int min = calendar.getActualMinimum (fieldName);
int newValue = unformattedIntValue (fieldName, newText, characterCount == 0, max);
if (newValue == -1) {
characterCount = 0;
if (newTextLength >= length) {
newText = newText.substring (newTextLength - length + 1);
newValue = unformattedIntValue (fieldName, newText, characterCount == 0, max);
if (newValue != -1) {
characterCount = length - 1;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
int max = calendar.getActualMaximum (fieldName);
int min = calendar.getActualMinimum (fieldName);
int newValue = unformattedIntValue (fieldName, newText, characterCount == 0, max);
if (newValue == -1) {
characterCount = 0;
if (newTextLength >= length) {
newText = newText.substring (newTextLength - length + 1);
newValue = unformattedIntValue (fieldName, newText, characterCount == 0, max);
if (newValue != -1) {
characterCount = length - 1;
内容来源于网络,如有侵权,请联系作者删除!