本文整理了Java中org.eclipse.swt.widgets.Tree.<init>()
方法的一些代码示例,展示了Tree.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.<init>()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:<init>
[英]Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in class SWT
which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int
"|" operator) two or more of those SWT
style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
[中]根据该类的父类和描述其行为和外观的样式值,构造该类的新实例。
样式值可以是类SWT
中定义的样式常量之一,该类适用于该类的实例,或者必须通过位或组合(即使用int
“|”运算符)两个或多个SWT
样式常量来构建。类描述列出了适用于该类的样式常量。样式位也继承自超类。
代码示例来源:origin: caoxinyu/RedisClient
private void initTree(SashForm sashForm) {
tree = new Tree(sashForm, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
tree.addSelectionListener(new SelectionAdapter() {
@Override
代码示例来源:origin: pentaho/pentaho-kettle
wTree = new Tree( shell, SWT.SINGLE | SWT.BORDER );
props.setLook( wTree );
代码示例来源:origin: pentaho/pentaho-kettle
tree = new Tree( sashForm, SWT.SINGLE );
for ( int i = 0; i < categories.length; i++ ) {
String category = categories[i];
代码示例来源:origin: pentaho/pentaho-kettle
private void createSelectionTree() {
// //////////////////////////////////////////////////////////////////////////////////////////////////
//
// Now set up the transformation/job tree
//
selectionTree = new Tree( viewTreeComposite, SWT.SINGLE );
selectionTreeManager = new TreeManager( selectionTree );
selectionTreeManager.addRoot( STRING_TRANSFORMATIONS, Arrays.asList( new DBConnectionFolderProvider(), new
StepsFolderProvider(), new HopsFolderProvider(), new PartitionsFolderProvider(), new SlavesFolderProvider(), new
ClustersFolderProvider() ) );
selectionTreeManager.addRoot( STRING_JOBS, Arrays.asList( new DBConnectionFolderProvider(), new
JobEntriesFolderProvider(), new SlavesFolderProvider() ) );
props.setLook( selectionTree );
selectionTree.setLayout( new FillLayout() );
addDefaultKeyListeners( selectionTree );
selectionTree.addMenuDetectListener( e -> setMenu( selectionTree ) );
selectionTree.addSelectionListener( new SelectionAdapter() {
@Override
public void widgetSelected( SelectionEvent e ) {
showSelection();
}
@Override
public void widgetDefaultSelected( SelectionEvent e ) {
doubleClickedInTree( selectionTree );
}
} );
// Set a listener on the tree
addDragSourceToTree( selectionTree );
}
代码示例来源:origin: pentaho/pentaho-kettle
wTree = new Tree( shell, SWT.SINGLE | SWT.BORDER );
props.setLook( wTree );
代码示例来源:origin: pentaho/pentaho-kettle
colinf[13].setAllignement( SWT.RIGHT );
wTree = new Tree( sash, SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL );
wTree.setHeaderVisible( true );
TreeMemory.addTreeListener( wTree, STRING_SLAVE_LOG_TREE_NAME + slaveServer.toString() );
代码示例来源:origin: pentaho/pentaho-kettle
coreObjectsTree = new Tree( designTreeComposite, SWT.V_SCROLL | SWT.SINGLE );
props.setLook( coreObjectsTree );
代码示例来源:origin: pentaho/pentaho-kettle
wTree = new Tree( wTop, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL );
props.setLook( wTree );
fdlTree = new FormData();
代码示例来源:origin: pentaho/pentaho-kettle
tree = new Tree( shell, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL );
props.setLook( tree );
tree.setHeaderVisible( true );
代码示例来源:origin: pentaho/pentaho-kettle
wTree = new Tree( wTop, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL );
props.setLook( wTree );
fdlTree = new FormData();
代码示例来源:origin: pentaho/pentaho-kettle
wTree = new Tree( wTop, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL );
props.setLook( wTree );
FormData fdlTree = new FormData();
代码示例来源:origin: pentaho/pentaho-kettle
wlTree.setLayoutData( fdlTree );
wTree = new Tree( shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL );
wTree.setHeaderVisible( true );
props.setLook( wTree );
代码示例来源:origin: pentaho/pentaho-kettle
wTree = new Tree( jobGraph.extraViewTabFolder, SWT.V_SCROLL | SWT.H_SCROLL );
wTree.setHeaderVisible( true );
TreeMemory.addTreeListener( wTree, STRING_CHEF_LOG_TREE_NAME );
代码示例来源:origin: pentaho/pentaho-kettle
wInjectComp.setLayout( fileLayout );
wTree = new Tree( wInjectComp, SWT.SINGLE | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER );
FormData fdTree = new FormData();
fdTree.left = new FormAttachment( 0, 0 );
代码示例来源:origin: pentaho/pentaho-kettle
wTree = new Tree( shell, SWT.MULTI | SWT.BORDER );
wTree.setHeaderVisible( true );
props.setLook( wTree );
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
/**
* Constructor
* @param parent
* @param style
*/
public LaunchConfigurationViewer(Composite parent, int style) {
this(new Tree(parent, style));
}
代码示例来源:origin: org.codehaus.openxma/xmartserver
protected Control createRootMenu(EventAdapter adapter, Composite menuCompositeW) {
menuW = new Tree(menuCompositeW,SWT.SINGLE);
menuW.addSelectionListener(adapter);
return menuW;
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
protected TreeViewer createTreeViewer(Composite parent) {
Tree tree= new Tree(parent, getTreeStyle());
tree.setFont(parent.getFont());
return new TreeViewer(tree);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
protected TreeViewer createTreeViewer(Composite parent) {
Tree tree= new Tree(parent, getTreeStyle());
tree.setFont(parent.getFont());
return new TreeViewer(tree);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
public TypeHierarchyViewer(Composite parent, IContentProvider contentProvider, TypeHierarchyLifeCycle lifeCycle) {
super(new Tree(parent, SWT.SINGLE));
fLabelProvider= new HierarchyLabelProvider(lifeCycle);
setLabelProvider(new DecoratingJavaLabelProvider(fLabelProvider, true));
setUseHashlookup(true);
setContentProvider(contentProvider);
setComparator(new HierarchyViewerSorter(lifeCycle));
JavaUIHelp.setHelp(this, IJavaHelpContextIds.TYPE_HIERARCHY_VIEW);
}
内容来源于网络,如有侵权,请联系作者删除!