本文整理了Java中org.eclipse.swt.widgets.ScrollBar.setMinimum()
方法的一些代码示例,展示了ScrollBar.setMinimum()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollBar.setMinimum()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.ScrollBar
类名称:ScrollBar
方法名:setMinimum
[英]Sets the minimum value. If this value is negative or greater than or equal to the maximum, the value is ignored. If necessary, first the thumb and then the selection are adjusted to fit within the new range.
[中]设置最小值。如果该值为负值或大于或等于最大值,则忽略该值。如有必要,首先调整拇指,然后调整选择以适应新范围。
代码示例来源:origin: pentaho/pentaho-kettle
sbHorizontal.setMinimum( 0 );
sbHorizontal.setPageIncrement( size_widget.width );
sbHorizontal.setIncrement( 10 );
sbVertical.setMinimum( 0 );
sbVertical.setPageIncrement( size_widget.height );
sbVertical.setIncrement( 10 );
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.nebula.widgets.grid
/**
* {@inheritDoc}
*/
public void setMinimum(int value)
{
scrollBar.setMinimum(value);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
horizontal.setMinimum(0);
horizontal.setEnabled(false);
horizontal.addSelectionListener(widgetSelectedAdapter(event -> scrollHorizontally((ScrollBar)event.widget)));
ScrollBar vertical = imageCanvas.getVerticalBar();
vertical.setVisible(true);
vertical.setMinimum(0);
vertical.setEnabled(false);
vertical.addSelectionListener(widgetSelectedAdapter(event -> scrollVertically((ScrollBar)event.widget)));
vertical.setMinimum(0);
vertical.setIncrement(10);
vertical.setEnabled(false);
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.nebula.widgets.grid
scrollBar.setMinimum( minimum );
if( selection < minimum ) {
scrollBar.setSelection( minimum );
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
scroll.setMinimum(-100);
scroll.setMaximum(200);
内容来源于网络,如有侵权,请联系作者删除!