本文整理了Java中org.eclipse.swt.widgets.Table.parentingHandle()
方法的一些代码示例,展示了Table.parentingHandle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.parentingHandle()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:parentingHandle
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
void updateScrollBarValue (ScrollBar bar) {
super.updateScrollBarValue (bar);
/*
* Bug in GTK. Scrolling changes the XWindow position
* and makes the child widgets appear to scroll even
* though when queried their position is unchanged.
* The fix is to queue a resize event for each child to
* force the position to be corrected.
*/
long /*int*/ parentHandle = parentingHandle ();
long /*int*/ list = OS.gtk_container_get_children (parentHandle);
if (list == 0) return;
long /*int*/ temp = list;
while (temp != 0) {
long /*int*/ widget = OS.g_list_data (temp);
if (widget != 0) OS.gtk_widget_queue_resize (widget);
temp = OS.g_list_next (temp);
}
OS.g_list_free (list);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
void updateScrollBarValue (ScrollBar bar) {
super.updateScrollBarValue (bar);
/*
* Bug in GTK. Scrolling changes the XWindow position
* and makes the child widgets appear to scroll even
* though when queried their position is unchanged.
* The fix is to queue a resize event for each child to
* force the position to be corrected.
*/
int /*long*/ parentHandle = parentingHandle ();
int /*long*/ list = OS.gtk_container_get_children (parentHandle);
if (list == 0) return;
int /*long*/ temp = list;
while (temp != 0) {
int /*long*/ widget = OS.g_list_data (temp);
if (widget != 0) OS.gtk_widget_queue_resize (widget);
temp = OS.g_list_next (temp);
}
OS.g_list_free (list);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
void updateScrollBarValue (ScrollBar bar) {
super.updateScrollBarValue (bar);
/*
* Bug in GTK. Scrolling changes the XWindow position
* and makes the child widgets appear to scroll even
* though when queried their position is unchanged.
* The fix is to queue a resize event for each child to
* force the position to be corrected.
*/
int /*long*/ parentHandle = parentingHandle ();
int /*long*/ list = OS.gtk_container_get_children (parentHandle);
if (list == 0) return;
int /*long*/ temp = list;
while (temp != 0) {
int /*long*/ widget = OS.g_list_data (temp);
if (widget != 0) OS.gtk_widget_queue_resize (widget);
temp = OS.g_list_next (temp);
}
OS.g_list_free (list);
}
内容来源于网络,如有侵权,请联系作者删除!