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

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

本文整理了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

  1. int len = Math.min( weights.length, columns.length );
  2. for ( int i = 0; i <= colIdx; i++ ) {
  3. firstWidth += columns[i].getWidth();
  4. restWidth += columns[i].getWidth();
  5. for ( int i = 0; i <= colIdx; i++ ) {
  6. if ( weights[i] > 0 ) {
  7. weights[i] = columns[i].getWidth();

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

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

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

  1. if ( column.getWidth() > 0 ) {

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

  1. if ( column.getWidth() > 0 ) {

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

  1. if ( column.getWidth() > 0 ) {

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

  1. if ( column.getWidth() > 0 ) {

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

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

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

  1. if ( column.getWidth() > 0 ) {

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

  1. if ( column.getWidth() > 0 ) {

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

  1. if ( column.getWidth() > 0 ) {

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

  1. if ( column.getWidth() > 0 ) {

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

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

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

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

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

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

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

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

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

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

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

  1. /**
  2. * Is this Column currently visible in the table?
  3. *
  4. * @return true if the Column is currently visible, false otherwise
  5. */
  6. @SuppressWarnings("SimplifiableIfStatement")
  7. public boolean isVisible() {
  8. if (swtColumn.isDisposed()) {
  9. return false;
  10. }
  11. return (swtColumn.getWidth() > 0);
  12. }

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

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

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

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

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

  1. /**
  2. * Resizes the columns to fit the size of the cells.
  3. */
  4. private void resizeContextEntryTableColumnsToFit()
  5. {
  6. // Resizing the first column
  7. contextEntryTable.getColumn( 0 ).pack();
  8. // Adding a little space to the first column
  9. contextEntryTable.getColumn( 0 ).setWidth( contextEntryTable.getColumn( 0 ).getWidth() + 5 );
  10. // Resizing the second column
  11. contextEntryTable.getColumn( 1 ).pack();
  12. }

相关文章