本文整理了Java中org.eclipse.swt.widgets.Tree.getHorizontalBar()
方法的一些代码示例,展示了Tree.getHorizontalBar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.getHorizontalBar()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:getHorizontalBar
暂无
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
@Override
int getHScrollBarHeight() {
int result = 0;
if( hasHScrollBar() ) {
result = getHorizontalBar().getSize().y;
}
return result;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private static Boolean hasScrollBarsSelectionListener( final Tree tree ) {
boolean result = false;
ScrollBar horizontalBar = tree.getHorizontalBar();
if( horizontalBar != null ) {
result = result || SelectionEvent.hasListener( horizontalBar );
}
ScrollBar verticalBar = tree.getVerticalBar();
if( verticalBar != null ) {
result = result || SelectionEvent.hasListener( verticalBar );
}
return Boolean.valueOf( result );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private static void readScrollLeft( final Tree tree ) {
String left = WidgetLCAUtil.readPropertyValue( tree, "scrollLeft" );
if( left != null ) {
int leftOffset = parsePosition( left );
final ITreeAdapter treeAdapter = getTreeAdapter( tree );
treeAdapter.setScrollLeft( leftOffset );
processScrollBarSelection( tree.getHorizontalBar(), leftOffset );
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
public void handleSetScrollLeft( Tree tree, JsonObject properties ) {
JsonValue value = properties.get( PROP_SCROLL_LEFT );
if( value != null ) {
int scrollLeft = value.asInt();
getTreeAdapter( tree ).setScrollLeft( scrollLeft );
setScrollBarSelection( tree.getHorizontalBar(), scrollLeft );
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
void updateScrollBars() {
if( ( style & SWT.NO_SCROLL ) == 0 ) {
hasVScrollBar = false;
hasHScrollBar = needsHScrollBar();
if( needsVScrollBar() ) {
hasVScrollBar = true;
hasHScrollBar = needsHScrollBar();
}
getHorizontalBar().setVisible( hasHScrollBar );
getVerticalBar().setVisible( hasVScrollBar );
}
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xml.ui
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.addSelectionListener(selectionListener);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
super.preservingSelection(updateCode);
getTree().getHorizontalBar().setSelection(0);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
height += getHorizontalBar().getSize().y;
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.addListener(SWT.Selection, resizeListener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.addListener(SWT.Selection, resizeListener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.addListener(SWT.Selection, resizeListener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.addListener(SWT.Selection, resizeListener);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.addListener(SWT.Selection, resizeListener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
@Override
public void createControl(Composite parent) {
initializeDialogUnits(parent);
Composite composite = SWTFactory.createComposite(parent, 1, 1, GridData.FILL_BOTH);
SWTFactory.createLabel(composite, ImportExportMessages.WizardExportBreakpointsPage_2, 1);
fTView = new EmbeddedBreakpointsViewer(composite, DebugPlugin.getDefault().getBreakpointManager(), fSelection);
fTView.getViewer().addCheckStateListener(new ICheckStateListener() {
@Override
public void checkStateChanged(CheckStateChangedEvent event) {
setPageComplete(detectPageComplete());
}
});
fTView.getViewer().setSelection(fSelection);
//ensure we can see the beginning check-boxes etc. (bug 180971)
//this will not work in Windows Vista as there is no way to over-ride the default viewer item showing policy
//by setting the horizontal bar selection index. I.e. the following line of code is ignored in Vista
fTView.getViewer().getTree().getHorizontalBar().setSelection(0);
createButtonsGroup(composite);
createDestinationGroup(composite);
fOverwriteExistingFilesCheckbox = SWTFactory.createCheckButton(composite, ImportExportMessages.WizardBreakpointsPage_6, null, false, 1);
setControl(composite);
setPageComplete(false);
setMessage(ImportExportMessages.WizardBreakpointsPage_4);
restoreWidgetState();
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IDebugHelpContextIds.EXPORT_BREAKPOINTS_WIZARD_PAGE);
Dialog.applyDialogFont(parent);
}
内容来源于网络,如有侵权,请联系作者删除!