com.vaadin.server.AbstractClientConnector Java Examples

The following examples show how to use com.vaadin.server.AbstractClientConnector. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HtmlAttributesExtension.java    From cuba with Apache License 2.0 5 votes vote down vote up
public static HtmlAttributesExtension get(Component component) {
    for (Extension e : component.getExtensions()) {
        if (e instanceof HtmlAttributesExtension) {
            return (HtmlAttributesExtension) e;
        }
    }
    return new HtmlAttributesExtension((AbstractClientConnector) component);
}
 
Example #2
Source File: HtmlAttributesExtension.java    From cuba with Apache License 2.0 4 votes vote down vote up
public HtmlAttributesExtension(AbstractClientConnector target) {
    super(target);
}
 
Example #3
Source File: StorageView.java    From chipster with MIT License 4 votes vote down vote up
public AbstractClientConnector getEntryTable() {
	return entryTable;
}
 
Example #4
Source File: WrappingGrid.java    From GridExtensionPack with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #5
Source File: WrappingGrid.java    From GridExtensionPack with Apache License 2.0 2 votes vote down vote up
/**
 * 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;
}