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

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

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

TableColumn.getWidth介绍

[英]Gets the width of the receiver.
[中]获取接收器的宽度。

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

int len = Math.min( weights.length, columns.length );
for ( int i = 0; i <= colIdx; i++ ) {
 firstWidth += columns[i].getWidth();
 restWidth += columns[i].getWidth();
for ( int i = 0; i <= colIdx; i++ ) {
 if ( weights[i] > 0 ) {
  weights[i] = columns[i].getWidth();

代码示例来源:origin: pentaho/pentaho-kettle

if ( col.getWidth() > 200 ) {
 col.setWidth( 200 );

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

int width = myTb.table.getColumn( 3 ).getWidth();

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( column.getWidth() > 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( tc.getWidth() != max + extra ) {
 if ( c > 0 ) {
  if ( columns[c - 1].getWidth() == -1 ) {

代码示例来源:origin: pentaho/pentaho-kettle

if ( flag ) {
 myTb.table.getColumn( 3 ).setWidth( 0 );
 System.out.println( myTb.table.getColumn( 3 ).getWidth() );

代码示例来源:origin: pentaho/pentaho-kettle

int width = tablecolumn[colnr].getWidth();
int height = 30;

代码示例来源:origin: pentaho/pentaho-kettle

int colmax = tablecolumn[colnr].getWidth();
if ( strmax > colmax ) {
 if ( Const.isOSX() || Const.isLinux() ) {

代码示例来源:origin: pentaho/pentaho-kettle

int fieldWidth = wFieldsTb.table.getColumn( 3 ).getWidth();
if ( input.getOperation() != null
 && "INSERT".equalsIgnoreCase( wOperation.getItem( wOperation.getSelectionIndex() ) ) ) {

代码示例来源:origin: tvrenamer/tvrenamer

/**
 * Is this Column currently visible in the table?
 *
 * @return true if the Column is currently visible, false otherwise
 */
@SuppressWarnings("SimplifiableIfStatement")
public boolean isVisible() {
  if (swtColumn.isDisposed()) {
    return false;
  }
  return (swtColumn.getWidth() > 0);
}

代码示例来源:origin: BiglySoftware/BiglyBT

private void resizeTable() {
  int iNewWidth = table.getClientArea().width -
         table.getColumn(1).getWidth() -
         table.getColumn(2).getWidth() - 20;
 if (iNewWidth > 50)
  table.getColumn(0).setWidth(iNewWidth);
}

代码示例来源:origin: net.sf.okapi.steps/okapi-step-searchandreplace-ui

public void controlResized(ControlEvent e) {
    int tableWidth = table.getBounds().width;
    int remaining = tableWidth - table.getColumn(0).getWidth();
    table.getColumn(1).setWidth(remaining/2-2);
    table.getColumn(2).setWidth(remaining/2-2);
  }
});

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Resizes the columns to fit the size of the cells.
 */
private void resizeContextEntryTableColumnsToFit()
{
  // Resizing the first column
  contextEntryTable.getColumn( 0 ).pack();
  // Adding a little space to the first column
  contextEntryTable.getColumn( 0 ).setWidth( contextEntryTable.getColumn( 0 ).getWidth() + 5 );
  // Resizing the second column
  contextEntryTable.getColumn( 1 ).pack();
}

相关文章