本文整理了Java中org.eclipse.swt.widgets.Text.filters()
方法的一些代码示例,展示了Text.filters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.filters()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:filters
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case DIRECTION_CHANGED: {
clearSegments (true);
applySegments ();
break;
}
}
}
return super.windowProc (handle, arg0, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ windowProc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case DIRECTION_CHANGED: {
clearSegments (true);
applySegments ();
break;
}
}
}
return super.windowProc (handle, arg0, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
if (hooks (SWT.Verify) || filters (SWT.Verify)) {
string = verifyText (string, 0, getCharCount ());
if (string == null) return;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case DIRECTION_CHANGED: {
clearSegments (true);
applySegments ();
break;
}
}
}
return super.windowProc (handle, arg0, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case DELETE_FROM_CURSOR: {
clearSegments (true);
break;
}
case DELETE_FROM_CURSOR_INVERSE: {
applySegments ();
break;
}
}
}
return super.windowProc (handle, arg0, arg1, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ windowProc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case DELETE_FROM_CURSOR: {
clearSegments (true);
break;
}
case DELETE_FROM_CURSOR_INVERSE: {
applySegments ();
break;
}
}
}
return super.windowProc (handle, arg0, arg1, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case DELETE_FROM_CURSOR: {
clearSegments (true);
break;
}
case DELETE_FROM_CURSOR_INVERSE: {
applySegments ();
break;
}
}
}
return super.windowProc (handle, arg0, arg1, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ windowProc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case MOVE_CURSOR: {
if (arg0 == OS.GTK_MOVEMENT_VISUAL_POSITIONS) {
clearSegments (true);
}
break;
}
case MOVE_CURSOR_INVERSE: {
if (arg0 == OS.GTK_MOVEMENT_VISUAL_POSITIONS) {
applySegments ();
}
break;
}
}
}
return super.windowProc (handle, arg0, arg1, arg2, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case MOVE_CURSOR: {
if (arg0 == OS.GTK_MOVEMENT_VISUAL_POSITIONS) {
clearSegments (true);
}
break;
}
case MOVE_CURSOR_INVERSE: {
if (arg0 == OS.GTK_MOVEMENT_VISUAL_POSITIONS) {
applySegments ();
}
break;
}
}
}
return super.windowProc (handle, arg0, arg1, arg2, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case BACKSPACE:
case COPY_CLIPBOARD:
case CUT_CLIPBOARD:
case PASTE_CLIPBOARD: {
clearSegments (true);
break;
}
case BACKSPACE_INVERSE:
case COPY_CLIPBOARD_INVERSE:
case CUT_CLIPBOARD_INVERSE:
case PASTE_CLIPBOARD_INVERSE: {
applySegments ();
break;
}
}
}
return super.windowProc (handle, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ windowProc (long /*int*/ handle, long /*int*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case BACKSPACE:
case COPY_CLIPBOARD:
case CUT_CLIPBOARD:
case PASTE_CLIPBOARD: {
clearSegments (true);
break;
}
case BACKSPACE_INVERSE:
case COPY_CLIPBOARD_INVERSE:
case CUT_CLIPBOARD_INVERSE:
case PASTE_CLIPBOARD_INVERSE: {
applySegments ();
break;
}
}
}
return super.windowProc (handle, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case MOVE_CURSOR: {
if (arg0 == OS.GTK_MOVEMENT_VISUAL_POSITIONS) {
clearSegments (true);
}
break;
}
case MOVE_CURSOR_INVERSE: {
if (arg0 == OS.GTK_MOVEMENT_VISUAL_POSITIONS) {
applySegments ();
}
break;
}
}
}
return super.windowProc (handle, arg0, arg1, arg2, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ user_data) {
if (hooks (SWT.Segments) || filters (SWT.Segments) || segments != null) {
switch ((int)/*64*/user_data) {
case BACKSPACE:
case COPY_CLIPBOARD:
case CUT_CLIPBOARD:
case PASTE_CLIPBOARD: {
clearSegments (true);
break;
}
case BACKSPACE_INVERSE:
case COPY_CLIPBOARD_INVERSE:
case CUT_CLIPBOARD_INVERSE:
case PASTE_CLIPBOARD_INVERSE: {
applySegments ();
break;
}
}
}
return super.windowProc (handle, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
boolean handleSegments = false, segmentsCleared = false;
if (hooks (SWT.Segments) || filters (SWT.Segments)) {
GdkEventKey gdkEvent = new GdkEventKey ();
OS.memmove (gdkEvent, event, GdkEventKey.sizeof);
if (gdkEvent.length > 0 && (gdkEvent.state & (OS.GDK_MOD1_MASK | OS.GDK_CONTROL_MASK)) == 0) {
handleSegments = true;
if (segments != null) {
clearSegments (true);
segmentsCleared = true;
}
}
}
int /*long*/ result = super.gtk_key_press_event (widget, event);
if (result != 0) fixIM ();
if (gdkEventKey == -1) result = 1;
gdkEventKey = 0;
if (handleSegments && (result != 0 || segmentsCleared)) {
applySegments ();
}
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
boolean handleSegments = false, segmentsCleared = false;
if (hooks (SWT.Segments) || filters (SWT.Segments)) {
GdkEventKey gdkEvent = new GdkEventKey ();
OS.memmove (gdkEvent, event, GdkEventKey.sizeof);
if (gdkEvent.length > 0 && (gdkEvent.state & (OS.GDK_MOD1_MASK | OS.GDK_CONTROL_MASK)) == 0) {
handleSegments = true;
if (segments != null) {
clearSegments (true);
segmentsCleared = true;
}
}
}
int /*long*/ result = super.gtk_key_press_event (widget, event);
if (result != 0) fixIM ();
if (gdkEventKey == -1) result = 1;
gdkEventKey = 0;
if (handleSegments && (result != 0 || segmentsCleared)) {
applySegments ();
}
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ gtk_key_press_event (long /*int*/ widget, long /*int*/ event) {
boolean handleSegments = false, segmentsCleared = false;
if (hooks (SWT.Segments) || filters (SWT.Segments)) {
GdkEventKey gdkEvent = new GdkEventKey ();
OS.memmove (gdkEvent, event, GdkEventKey.sizeof);
if (gdkEvent.length > 0 && (gdkEvent.state & (OS.GDK_MOD1_MASK | OS.GDK_CONTROL_MASK)) == 0) {
handleSegments = true;
if (segments != null) {
clearSegments (true);
segmentsCleared = true;
}
}
}
long /*int*/ result = super.gtk_key_press_event (widget, event);
if (result != 0) fixIM ();
if (gdkEventKey == -1) result = 1;
gdkEventKey = 0;
if (handleSegments && (result != 0 || segmentsCleared)) {
applySegments ();
}
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ gtk_delete_text (long /*int*/ widget, long /*int*/ start_pos, long /*int*/ end_pos) {
if (!hooks (SWT.Verify) && !filters (SWT.Verify)) return 0;
long /*int*/ ptr = OS.gtk_entry_get_text (handle);
if (end_pos == -1) end_pos = OS.g_utf8_strlen (ptr, -1);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ gtk_delete_text (int /*long*/ widget, int /*long*/ start_pos, int /*long*/ end_pos) {
if (!hooks (SWT.Verify) && !filters (SWT.Verify)) return 0;
int /*long*/ ptr = OS.gtk_entry_get_text (handle);
if (end_pos == -1) end_pos = OS.g_utf8_strlen (ptr, -1);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ gtk_text_buffer_insert_text (long /*int*/ widget, long /*int*/ iter, long /*int*/ text, long /*int*/ length) {
if (!hooks (SWT.Verify) && !filters (SWT.Verify)) return 0;
byte [] position = new byte [ITER_SIZEOF];
OS.memmove (position, iter, position.length);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ gtk_text_buffer_insert_text (int /*long*/ widget, int /*long*/ iter, int /*long*/ text, int /*long*/ length) {
if (!hooks (SWT.Verify) && !filters (SWT.Verify)) return 0;
byte [] position = new byte [ITER_SIZEOF];
OS.memmove (position, iter, position.length);
内容来源于网络,如有侵权,请联系作者删除!