示例#1
0
 public void setHover(final boolean hover) {
   if (hover) {
     StyleHelper.addEnumStyleName(this, TableType.HOVER);
   } else {
     StyleHelper.removeEnumStyleName(this, TableType.HOVER);
   }
 }
示例#2
0
 public void setCondensed(final boolean condensed) {
   if (condensed) {
     StyleHelper.addEnumStyleName(this, TableType.CONDENSED);
   } else {
     StyleHelper.removeEnumStyleName(this, TableType.CONDENSED);
   }
 }
示例#3
0
 public void setStriped(final boolean striped) {
   if (striped) {
     StyleHelper.addEnumStyleName(this, TableType.STRIPED);
   } else {
     StyleHelper.removeEnumStyleName(this, TableType.STRIPED);
   }
 }
示例#4
0
 public void setBordered(final boolean bordered) {
   if (bordered) {
     StyleHelper.addEnumStyleName(this, TableType.BORDERED);
   } else {
     StyleHelper.removeEnumStyleName(this, TableType.BORDERED);
   }
 }
示例#5
0
 /**
  * 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);
 }