org.eclipse.swt.widgets.Tree.fixAccessibility()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(11.0k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.eclipse.swt.widgets.Tree.fixAccessibility()方法的一些代码示例,展示了Tree.fixAccessibility()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.fixAccessibility()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:fixAccessibility

Tree.fixAccessibility介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void setModel (int /*long*/ newModel) {
  display.removeWidget (modelHandle);
  OS.g_object_unref (modelHandle);
  modelHandle = newModel;
  display.addWidget (modelHandle, this);
  if (fixAccessibility ()) {
    OS.g_signal_connect_closure (modelHandle, OS.row_inserted, display.getClosure (ROW_INSERTED), true);
    OS.g_signal_connect_closure (modelHandle, OS.row_deleted, display.getClosure (ROW_DELETED), true);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void setModel (int /*long*/ newModel) {
  display.removeWidget (modelHandle);
  OS.g_object_unref (modelHandle);
  modelHandle = newModel;
  display.addWidget (modelHandle, this);
  if (fixAccessibility ()) {
    OS.g_signal_connect_closure (modelHandle, OS.row_inserted, display.getClosure (ROW_INSERTED), true);
    OS.g_signal_connect_closure (modelHandle, OS.row_deleted, display.getClosure (ROW_DELETED), true);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void setModel (long /*int*/ newModel) {
  display.removeWidget (modelHandle);
  OS.g_object_unref (modelHandle);
  modelHandle = newModel;
  display.addWidget (modelHandle, this);
  if (fixAccessibility ()) {
    OS.g_signal_connect_closure (modelHandle, OS.row_inserted, display.getClosure (ROW_INSERTED), true);
    OS.g_signal_connect_closure (modelHandle, OS.row_deleted, display.getClosure (ROW_DELETED), true);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void setItemCount (int /*long*/ parentIter, int count) {
  int itemCount = OS.gtk_tree_model_iter_n_children (modelHandle, parentIter);
  if (count == itemCount) return;
  boolean isVirtual = (style & SWT.VIRTUAL) != 0;
  if (!isVirtual) setRedraw (false);
  remove (parentIter, count, itemCount - 1);
  if (isVirtual) {
    if (fixAccessibility ()) {
      ignoreAccessibility = true;
    }
    for (int i=itemCount; i<count; i++) {
      int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
      if (iter == 0) error (SWT.ERROR_NO_HANDLES);
      OS.gtk_tree_store_append (modelHandle, iter, parentIter);
      OS.gtk_tree_store_set (modelHandle, iter, ID_COLUMN, -1, -1);
      OS.g_free (iter);
    }
    if (fixAccessibility ()) {
      ignoreAccessibility = false;
      OS.g_object_notify (handle, OS.model);
    }
  } else {
    for (int i=itemCount; i<count; i++) {
      new TreeItem (this, parentIter, SWT.NONE, i, true);
    }
  }
  if (!isVirtual) setRedraw (true);
  modelChanged = true;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void setItemCount (int /*long*/ parentIter, int count) {
  int itemCount = OS.gtk_tree_model_iter_n_children (modelHandle, parentIter);
  if (count == itemCount) return;
  boolean isVirtual = (style & SWT.VIRTUAL) != 0;
  if (!isVirtual) setRedraw (false);
  remove (parentIter, count, itemCount - 1);
  if (isVirtual) {
    if (fixAccessibility ()) {
      ignoreAccessibility = true;
    }
    for (int i=itemCount; i<count; i++) {
      int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
      if (iter == 0) error (SWT.ERROR_NO_HANDLES);
      OS.gtk_tree_store_append (modelHandle, iter, parentIter);
      OS.gtk_tree_store_set (modelHandle, iter, ID_COLUMN, -1, -1);
      OS.g_free (iter);
    }
    if (fixAccessibility ()) {
      ignoreAccessibility = false;
      OS.g_object_notify (handle, OS.model);
    }
  } else {
    for (int i=itemCount; i<count; i++) {
      new TreeItem (this, parentIter, SWT.NONE, i, true);
    }
  }
  if (!isVirtual) setRedraw (true);
  modelChanged = true;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void setItemCount (long /*int*/ parentIter, int count) {
  int itemCount = OS.gtk_tree_model_iter_n_children (modelHandle, parentIter);
  if (count == itemCount) return;
  boolean isVirtual = (style & SWT.VIRTUAL) != 0;
  if (!isVirtual) setRedraw (false);
  remove (parentIter, count, itemCount - 1);
  if (isVirtual) {
    if (fixAccessibility ()) {
      ignoreAccessibility = true;
    }
    for (int i=itemCount; i<count; i++) {
      long /*int*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
      if (iter == 0) error (SWT.ERROR_NO_HANDLES);
      OS.gtk_tree_store_append (modelHandle, iter, parentIter);
      OS.gtk_tree_store_set (modelHandle, iter, ID_COLUMN, -1, -1);
      OS.g_free (iter);
    }
    if (fixAccessibility ()) {
      ignoreAccessibility = false;
      OS.g_object_notify (handle, OS.model);
    }
  } else {
    for (int i=itemCount; i<count; i++) {
      new TreeItem (this, parentIter, SWT.NONE, i, true);
    }
  }
  if (!isVirtual) setRedraw (true);
  modelChanged = true;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
if (fixAccessibility ()) {
  ignoreAccessibility = true;
OS.gtk_tree_store_clear (modelHandle);
OS.gtk_tree_view_set_model(handle, modelHandle);
if (fixAccessibility ()) {
  ignoreAccessibility = false;
  OS.g_object_notify (handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
if (fixAccessibility ()) {
  ignoreAccessibility = true;
OS.gtk_tree_store_clear (modelHandle);
OS.gtk_tree_view_set_model(handle, modelHandle);
if (fixAccessibility ()) {
  ignoreAccessibility = false;
  OS.g_object_notify (handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

long /*int*/ selection = OS.gtk_tree_view_get_selection (handle);
OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
if (fixAccessibility ()) {
  ignoreAccessibility = true;
OS.gtk_tree_store_clear (modelHandle);
OS.gtk_tree_view_set_model(handle, modelHandle);
if (fixAccessibility ()) {
  ignoreAccessibility = false;
  OS.g_object_notify (handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
if (iter == 0) error (SWT.ERROR_NO_HANDLES);
if (fixAccessibility ()) {
  ignoreAccessibility = true;
if (fixAccessibility ()) {
  ignoreAccessibility = false;
  OS.g_object_notify (handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
if (iter == 0) error (SWT.ERROR_NO_HANDLES);
if (fixAccessibility ()) {
  ignoreAccessibility = true;
if (fixAccessibility ()) {
  ignoreAccessibility = false;
  OS.g_object_notify (handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

long /*int*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
if (iter == 0) error (SWT.ERROR_NO_HANDLES);
if (fixAccessibility ()) {
  ignoreAccessibility = true;
if (fixAccessibility ()) {
  ignoreAccessibility = false;
  OS.g_object_notify (handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
if (iter == 0) error (SWT.ERROR_NO_HANDLES);
if (parent.fixAccessibility ()) {
  parent.ignoreAccessibility = true;
if (parent.fixAccessibility ()) {
  parent.ignoreAccessibility = false;
  OS.g_object_notify (parent.handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
if (iter == 0) error (SWT.ERROR_NO_HANDLES);
if (parent.fixAccessibility ()) {
  parent.ignoreAccessibility = true;
if (parent.fixAccessibility ()) {
  parent.ignoreAccessibility = false;
  OS.g_object_notify (parent.handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

long /*int*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());
if (iter == 0) error (SWT.ERROR_NO_HANDLES);
if (parent.fixAccessibility ()) {
  parent.ignoreAccessibility = true;
if (parent.fixAccessibility ()) {
  parent.ignoreAccessibility = false;
  OS.g_object_notify (parent.handle, OS.model);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
void hookEvents () {
  super.hookEvents ();
  long /*int*/ selection = OS.gtk_tree_view_get_selection(handle);
  OS.g_signal_connect_closure (selection, OS.changed, display.getClosure (CHANGED), false);
  OS.g_signal_connect_closure (handle, OS.row_activated, display.getClosure (ROW_ACTIVATED), false);
  OS.g_signal_connect_closure (handle, OS.test_expand_row, display.getClosure (TEST_EXPAND_ROW), false);
  OS.g_signal_connect_closure (handle, OS.test_collapse_row, display.getClosure (TEST_COLLAPSE_ROW), false);
  OS.g_signal_connect_closure (handle, OS.expand_collapse_cursor_row, display.getClosure (EXPAND_COLLAPSE_CURSOR_ROW), false);
  OS.g_signal_connect_closure (modelHandle, OS.row_has_child_toggled, display.getClosure (ROW_HAS_CHILD_TOGGLED), false);
  if (checkRenderer != 0) {
    OS.g_signal_connect_closure (checkRenderer, OS.toggled, display.getClosure (TOGGLED), false);
  }
  OS.g_signal_connect_closure (handle, OS.start_interactive_search, display.getClosure (START_INTERACTIVE_SEARCH), false);
  if (fixAccessibility ()) {
    OS.g_signal_connect_closure (modelHandle, OS.row_inserted, display.getClosure (ROW_INSERTED), true);
    OS.g_signal_connect_closure (modelHandle, OS.row_deleted, display.getClosure (ROW_DELETED), true);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
void hookEvents () {
  super.hookEvents ();
  int /*long*/ selection = OS.gtk_tree_view_get_selection(handle);
  OS.g_signal_connect_closure (selection, OS.changed, display.getClosure (CHANGED), false);
  OS.g_signal_connect_closure (handle, OS.row_activated, display.getClosure (ROW_ACTIVATED), false);
  OS.g_signal_connect_closure (handle, OS.test_expand_row, display.getClosure (TEST_EXPAND_ROW), false);
  OS.g_signal_connect_closure (handle, OS.test_collapse_row, display.getClosure (TEST_COLLAPSE_ROW), false);
  OS.g_signal_connect_closure (handle, OS.expand_collapse_cursor_row, display.getClosure (EXPAND_COLLAPSE_CURSOR_ROW), false);
  OS.g_signal_connect_closure (modelHandle, OS.row_has_child_toggled, display.getClosure (ROW_HAS_CHILD_TOGGLED), false);
  if (checkRenderer != 0) {
    OS.g_signal_connect_closure (checkRenderer, OS.toggled, display.getClosure (TOGGLED), false);
  }
  OS.g_signal_connect_closure (handle, OS.start_interactive_search, display.getClosure (START_INTERACTIVE_SEARCH), false);
  if (fixAccessibility ()) {
    OS.g_signal_connect_closure (modelHandle, OS.row_inserted, display.getClosure (ROW_INSERTED), true);
    OS.g_signal_connect_closure (modelHandle, OS.row_deleted, display.getClosure (ROW_DELETED), true);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
void hookEvents () {
  super.hookEvents ();
  int /*long*/ selection = OS.gtk_tree_view_get_selection(handle);
  OS.g_signal_connect_closure (selection, OS.changed, display.getClosure (CHANGED), false);
  OS.g_signal_connect_closure (handle, OS.row_activated, display.getClosure (ROW_ACTIVATED), false);
  OS.g_signal_connect_closure (handle, OS.test_expand_row, display.getClosure (TEST_EXPAND_ROW), false);
  OS.g_signal_connect_closure (handle, OS.test_collapse_row, display.getClosure (TEST_COLLAPSE_ROW), false);
  OS.g_signal_connect_closure (handle, OS.expand_collapse_cursor_row, display.getClosure (EXPAND_COLLAPSE_CURSOR_ROW), false);
  OS.g_signal_connect_closure (modelHandle, OS.row_has_child_toggled, display.getClosure (ROW_HAS_CHILD_TOGGLED), false);
  if (checkRenderer != 0) {
    OS.g_signal_connect_closure (checkRenderer, OS.toggled, display.getClosure (TOGGLED), false);
  }
  OS.g_signal_connect_closure (handle, OS.start_interactive_search, display.getClosure (START_INTERACTIVE_SEARCH), false);
  if (fixAccessibility ()) {
    OS.g_signal_connect_closure (modelHandle, OS.row_inserted, display.getClosure (ROW_INSERTED), true);
    OS.g_signal_connect_closure (modelHandle, OS.row_deleted, display.getClosure (ROW_DELETED), true);
  }
}

相关文章

Tree类方法