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

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

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

Tree.createItem介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

TreeItem (Tree parent, int style, int /*long*/ hParent, int /*long*/ hInsertAfter, int /*long*/ hItem) {
  super (parent, style);
  this.parent = parent;
  parent.createItem (this, hParent, hInsertAfter, hItem);
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

super (parent, checkStyle (style));
this.parent = parent;
parent.createItem (this, parent.columnCount);

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

super (parent, checkStyle (style));
this.parent = parent;
parent.createItem (this, index);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

resizable = true;
this.parent = parent;
parent.createItem (this, index);

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

@Override
void createWidget (int index) {
  parent.createItem (this, index);
  setOrientation (true);
  hookEvents ();
  register ();
  text = "";
}

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

@Override
void createWidget (int index) {
  parent.createItem (this, index);
  setOrientation (true);
  hookEvents ();
  register ();
  text = "";
}

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

TreeItem (Tree parent, long /*int*/ parentIter, int style, int index, boolean create) {
  super (parent, style);
  this.parent = parent;
  if (create) {
    parent.createItem (this, parentIter, index);
  } else {
    handle = OS.g_malloc (OS.GtkTreeIter_sizeof ());
    OS.gtk_tree_model_iter_nth_child (parent.modelHandle, handle, parentIter, index);
  }
}

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

@Override
void createWidget (int index) {
  parent.createItem (this, index);
  setOrientation (true);
  hookEvents ();
  register ();
  text = "";
}

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

TreeItem (Tree parent, int /*long*/ parentIter, int style, int index, boolean create) {
  super (parent, style);
  this.parent = parent;
  if (create) {
    parent.createItem (this, parentIter, index);
  } else {
    handle = OS.g_malloc (OS.GtkTreeIter_sizeof ());
    OS.gtk_tree_model_iter_nth_child (parent.modelHandle, handle, parentIter, index);
  }
}

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

TreeItem (Tree parent, int /*long*/ parentIter, int style, int index, boolean create) {
  super (parent, style);
  this.parent = parent;
  if (create) {
    parent.createItem (this, parentIter, index);
  } else {
    handle = OS.g_malloc (OS.GtkTreeIter_sizeof ());
    OS.gtk_tree_model_iter_nth_child (parent.modelHandle, handle, parentIter, index);
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

resizable = true;
this.parent = parent;
parent.createItem (this, parent.getColumnCount ());

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

TreeItem (Tree parent, TreeItem parentItem, int style, int index, boolean create) {
  super (parent, style);
  this.parent = parent;
  this.parentItem = parentItem;
  if (create) {
    parent.createItem (this, parentItem, index);
  } else {
    handle = (SWTTreeItem) new SWTTreeItem ().alloc ().init ();
    createJNIRef ();
    register ();
    items = new TreeItem[4];
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

TreeItem( Tree parent, TreeItem parentItem, int style, int index, boolean create ) {
 super( parent, style );
 this.parent = parent;
 this.parentItem = parentItem;
 this.index = index;
 if( parentItem != null ) {
  depth = parentItem.depth + 1;
 }
 parent.invalidateFlatIndex();
 setEmpty();
 if( create ) {
  int numberOfItems;
  if( parentItem != null ) {
   numberOfItems = parentItem.itemCount;
  } else {
   // If there is no parent item, get the next index of the tree
   numberOfItems = parent.getItemCount();
  }
  // check range
  if( index < 0 || index > numberOfItems ) {
   error( SWT.ERROR_INVALID_RANGE );
  }
  if( parentItem != null ) {
   parentItem.createItem( this, index );
  } else {
   parent.createItem( this, index );
  }
  parent.updateScrollBars();
 }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

for (int i=itemCount; i<count; i++) {
  if (expanded) ignoreShrink = true;
  createItem (null, hParent, OS.TVI_LAST, 0);
  if (expanded) ignoreShrink = false;

相关文章

Tree类方法