下面列出了怎么用com.vaadin.server.AbstractClientConnector的API类实例代码及写法,或者点击链接到github查看源代码。
public static HtmlAttributesExtension get(Component component) {
for (Extension e : component.getExtensions()) {
if (e instanceof HtmlAttributesExtension) {
return (HtmlAttributesExtension) e;
}
}
return new HtmlAttributesExtension((AbstractClientConnector) component);
}
public HtmlAttributesExtension(AbstractClientConnector target) {
super(target);
}
public AbstractClientConnector getEntryTable() {
return entryTable;
}
/**
* Constructor to create header wrapping extension for given Grid
*
* @param grid The Grid where you want to apply header wrapping to
* @param newDefaultRowHeight Header row height of the theme in px, e.g. Valo = 38, Reindeer = 21
* @return
*/
public static WrappingGrid extend(Grid grid, int newDefaultRowHeight) {
WrappingGrid g = new WrappingGrid();
defaultRowHeight = newDefaultRowHeight;
g.extend((AbstractClientConnector)grid);
return g;
}
/**
* Constructor to create header wrapping extension for given Grid, uses header row height of the Valo theme
*
* @param grid The Grid where you want to apply header wrapping to
* @return
*/
public static WrappingGrid extend(Grid grid) {
WrappingGrid g = new WrappingGrid();
g.extend((AbstractClientConnector)grid);
return g;
}