예제 #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 setBordered(final boolean bordered) {
   if (bordered) {
     StyleHelper.addEnumStyleName(this, TableType.BORDERED);
   } else {
     StyleHelper.removeEnumStyleName(this, TableType.BORDERED);
   }
 }
예제 #4
0
 public void setStriped(final boolean striped) {
   if (striped) {
     StyleHelper.addEnumStyleName(this, TableType.STRIPED);
   } else {
     StyleHelper.removeEnumStyleName(this, TableType.STRIPED);
   }
 }
예제 #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);
 }
예제 #6
0
 @Override
 public void setType(ButtonType type) {
   StyleHelper.addUniqueEnumStyleName(this, ButtonType.class, type);
 }
예제 #7
0
 @Override
 public void setSize(ButtonSize size) {
   StyleHelper.addUniqueEnumStyleName(this, ButtonSize.class, size);
 }
예제 #8
0
 /** {@inheritDoc} */
 @Override
 public void setAlignment(final Alignment alignment) {
   StyleHelper.addUniqueEnumStyleName(this, Alignment.class, alignment);
 }
예제 #9
0
 /** {@inheritDoc} */
 @Override
 public void setEmphasis(final Emphasis emphasis) {
   StyleHelper.addUniqueEnumStyleName(this, Emphasis.class, emphasis);
 }
 /** {@inheritDoc} */
 @Override
 public void setHiddenOn(final DeviceSize deviceSize) {
   StyleHelper.setHiddenOn(this, deviceSize);
 }
 /** {@inheritDoc} */
 @Override
 public void setVisibleOn(final DeviceSize deviceSize) {
   StyleHelper.setVisibleOn(this, deviceSize);
 }
예제 #12
0
 @Override
 public void setHiddenOn(final String deviceSizeString) {
   StyleHelper.setHiddenOn(this, deviceSizeString);
 }