public void setHover(final boolean hover) { if (hover) { StyleHelper.addEnumStyleName(this, TableType.HOVER); } else { StyleHelper.removeEnumStyleName(this, TableType.HOVER); } }
public void setCondensed(final boolean condensed) { if (condensed) { StyleHelper.addEnumStyleName(this, TableType.CONDENSED); } else { StyleHelper.removeEnumStyleName(this, TableType.CONDENSED); } }
public void setStriped(final boolean striped) { if (striped) { StyleHelper.addEnumStyleName(this, TableType.STRIPED); } else { StyleHelper.removeEnumStyleName(this, TableType.STRIPED); } }
public void setBordered(final boolean bordered) { if (bordered) { StyleHelper.addEnumStyleName(this, TableType.BORDERED); } else { StyleHelper.removeEnumStyleName(this, TableType.BORDERED); } }
/** * Constructs a table with the specified page size, {@link Resources}, key provider, and loading * indicator. * * @param pageSize the page size * @param resources the resources to use for this widget * @param keyProvider an instance of ProvidesKey<T>, or null if the record object should act as * its own key * @param loadingIndicator the widget to use as a loading indicator, or null to disable * @param enableColGroup enable colgroup element. This is used when the table is using fixed * layout and when column style is added. Ignoring this element will boost rendering * performance. Note that when colgroup is disabled, {@link #setColumnWidth} * @param attachLoadingPanel attaching the table section that contains the empty table widget and * the loading indicator. Attaching this to the table significantly improve the rendering * performance in webkit based browsers but also introduces significantly larger latency in * IE. If the panel is not attached to the table, it won't be displayed. But the user can call * {@link #getTableLoadingSection} and attach it to other elements outside the table element */ public CellTable( final int pageSize, final Resources resources, final ProvidesKey<T> keyProvider, final Widget loadingIndicator, final boolean enableColGroup, final boolean attachLoadingPanel) { super(pageSize, resources, keyProvider, loadingIndicator, enableColGroup, attachLoadingPanel); StyleHelper.addEnumStyleName(this, TableType.DEFAULT); }