本文整理了Java中org.eclipse.swt.widgets.Table.setSize()
方法的一些代码示例,展示了Table.setSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setSize()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:setSize
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/big-data-plugin
@Override
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: pentaho/big-data-plugin
public void handleEvent( Event event ) {
Point size = shell.getSize();
wFields.setSize( size.x - 10, size.y - 50 );
wFields.table.setSize( size.x - 10, size.y - 50 );
wFields.redraw();
}
};
代码示例来源:origin: org.eclipse/org.eclipse.wst.xml.ui
public void controlResized(ControlEvent e) {
Rectangle area = parent.getClientArea();
Point preferredSize = table.computeSize(SWT.DEFAULT, SWT.DEFAULT);
int width = area.width - 2 * table.getBorderWidth();
if (preferredSize.y > area.height) {
// Subtract the scrollbar width from the total column
// width
// if a vertical scrollbar will be required
Point vBarSize = table.getVerticalBar().getSize();
width -= vBarSize.x;
}
Point oldSize = table.getSize();
if (oldSize.x > width) {
// table is getting smaller so make the columns
// smaller first and then resize the table to
// match the client area width
column1.setWidth(width / 2);
column2.setWidth(width / 2);
table.setSize(width, area.height);
}
else {
// table is getting bigger so make the table
// bigger first and then make the columns wider
// to match the client area width
table.setSize(width, area.height);
column1.setWidth(width / 2);
column2.setWidth(width / 2);
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public void controlResized(ControlEvent e) {
Rectangle area = handlersComp.getClientArea();
Point preferredSize = handlersTable_.computeSize(SWT.DEFAULT, SWT.DEFAULT);
int width = area.width - 2*handlersTable_.getBorderWidth()-10;
if (preferredSize.y > area.height + handlersTable_.getHeaderHeight()) {
// Subtract the scrollbar width from the total column width
// if a vertical scrollbar will be required
Point vBarSize = handlersTable_.getVerticalBar().getSize();
width -= vBarSize.x;
}
Point oldSize = handlersTable_.getSize();
if (oldSize.x > area.width) {
// table is getting smaller so make the columns
// smaller first and then resize the table to
// match the client area width
tableCols[0].setWidth(width/2);
tableCols[1].setWidth(width - tableCols[0].getWidth());
handlersTable_.setSize(area.width, area.height);
} else {
// table is getting bigger so make the table
// bigger first and then make the columns wider
// to match the client area width
handlersTable_.setSize(area.width, area.height);
tableCols[0].setWidth(width/2);
tableCols[1].setWidth(width - tableCols[0].getWidth());
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
tableCols[1].setWidth(width / 3);
tableCols[2].setWidth(width - (tableCols[0].getWidth() + tableCols[1].getWidth()));
handlersTable_.setSize(area.width, area.height);
handlersTable_.setSize(area.width, area.height);
tableCols[0].setWidth(width / 3);
tableCols[1].setWidth(width / 3);
内容来源于网络,如有侵权,请联系作者删除!