public static TextOverlay extend(final Component comp) { final TextOverlay overlay = new TextOverlay(); final AbstractClientConnector compConnector = (AbstractClientConnector)comp; overlay.extend(compConnector); return overlay; }
@Override protected void extend(AbstractClientConnector target) { super.extend(target); registerRpc((CubaMultiSelectionModelServerRpc) (start, length) -> { if (length != 0) { select(getParentGrid().getContainerDataSource().getItemIds(start, length), false); } }); }
@Override public void extend(AbstractClientConnector target) { super.extend(target); }
public static void extend(TextField field) { new ResetButtonForTextField().extend((AbstractClientConnector) field); }
public static ResetButtonForTextField extend(TextField field) { ResetButtonForTextField resetButton = new ResetButtonForTextField(); resetButton.extend((AbstractClientConnector) field); return resetButton; }
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; }