本文整理了Java中com.google.gwt.user.client.ui.Grid.getColumnFormatter()
方法的一些代码示例,展示了Grid.getColumnFormatter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.getColumnFormatter()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Grid
类名称:Grid
方法名:getColumnFormatter
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
getColumnFormatter().resizeColumnGroup(columns, false);
代码示例来源:origin: de.esoco/gewt
/***************************************
* Returns the width of a certain table column.
*
* @param nColumn The column index
*
* @return The column width in pixels
*/
private int getColumnWidth(int nColumn)
{
String sHtmlWidth = aColumnHeaders.get(nColumn).getColumnWidth();
int nWidth;
if (sHtmlWidth != null)
{
nWidth =
Integer.parseInt(sHtmlWidth.substring(0,
sHtmlWidth.length() - 2));
}
else
{
nWidth =
aHeaderTable.getColumnFormatter().getElement(nColumn)
.getOffsetWidth();
}
return nWidth;
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* Sets the width of a certain column.
*
* @param nColumn The column index
* @param sWidth The new column width
*/
private void setColumnWidth(int nColumn, String sWidth)
{
aColumnHeaders.get(nColumn).sWidth = sWidth;
aHeaderTable.getColumnFormatter().setWidth(nColumn, sWidth);
rTable.getDataTable().getColumnFormatter().setWidth(nColumn, sWidth);
}
代码示例来源:origin: net.wetheinter/gwt-user
getColumnFormatter().resizeColumnGroup(columns, false);
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
getColumnFormatter().resizeColumnGroup(columns, false);
代码示例来源:origin: org.jboss.errai/errai-widgets
private void initReset() {
for (int i = 0; i < fieldNames.length; i++) {
Label label = new Label(fieldNames[i]);
label.setStyleName("soa-prop-grid-label");
grid.setWidget(i, 0, label);
grid.setWidget(i, 1, new HTML(""));
String style = (i % 2 == 0) ? "soa-prop-grid-even" : "soa-prop-grid-odd";
grid.getRowFormatter().setStyleName(i, style);
grid.getColumnFormatter().setWidth(0, "20%");
grid.getColumnFormatter().setWidth(1, "80%");
}
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* Sets the widths of the table columns.
*/
void setAllColumnWidths()
{
ColumnFormatter rHeaderColumnFormatter =
aHeaderTable.getColumnFormatter();
ColumnFormatter rDataColumnFormatter =
rTable.getDataTable().getColumnFormatter();
int nColumns = rColumns.getElementCount();
for (int nCol = 0; nCol < nColumns; nCol++)
{
String sColumnWidth = aColumnHeaders.get(nCol).getColumnWidth();
if (sColumnWidth != null)
{
rHeaderColumnFormatter.setWidth(nCol, sColumnWidth);
rDataColumnFormatter.setWidth(nCol, sColumnWidth);
}
}
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* Sets the style of a certain column depending on user interface properties
* of the column definition.
*
* @param nColumn The column index
* @param rColumn The column definition
*/
private void setColumnStyle(int nColumn, ColumnDefinition rColumn)
{
ColumnFormatter rHeaderColumnFormatter =
aHeaderTable.getColumnFormatter();
ColumnFormatter rDataColumnFormatter =
rTable.getDataTable().getColumnFormatter();
String sStyle = TextConvert.capitalizedLastElementOf(rColumn.getId());
rHeaderColumnFormatter.setStyleName(nColumn, sStyle);
rDataColumnFormatter.setStyleName(nColumn, sStyle);
}
代码示例来源:origin: org.kie.guvnor/guvnor-drl-text-editor-client
ruleContentWidget );
layout.getColumnFormatter().setWidth( 0,
"10%" );
layout.getColumnFormatter().setWidth( 1,
"90%" );
layout.getCellFormatter().setAlignment( 0,
内容来源于网络,如有侵权,请联系作者删除!