private void resetDataLoader(boolean shallReset) { if (_dataLoader != null) { if (shallReset) { _dataLoader.reset(); smartUpdate("_lastoffset", 0); //reset for bug 3357641 } _dataLoader = null; } if (shallReset) { // Bug ZK-373 smartUpdate("resetDataLoader", true); _currentTop = 0; _currentLeft = 0; _topPad = 0; } }
/** * Sets the inner width of this component. * The inner width is the width of the inner table. * By default, it is 100%. That is, it is the same as the width * of this component. However, it is changed when the user * is sizing the column's width. * * <p>Application developers rarely call this method, unless * they want to preserve the widths of sizable columns * changed by the user. * To preserve the widths, the developer have to store the widths of * all columns and the inner width ({@link #getInnerWidth}), * and then restore them when re-creating this component. * * @param innerWidth the inner width. If null, "100%" is assumed. * @since 3.0.0 */ public void setInnerWidth(String innerWidth) { if (innerWidth == null) innerWidth = "100%"; if (!_innerWidth.equals(innerWidth)) { _innerWidth = innerWidth; smartUpdate("innerWidth", innerWidth); } }
/** * Sets the message to display when there are no items * @param emptyMessage * @since 5.0.7 */ public void setEmptyMessage(String emptyMessage) { if (!Objects.equals(emptyMessage, _emptyMessage)) { _emptyMessage = emptyMessage; smartUpdate("emptyMessage", _emptyMessage); } }
/** Sets the visible rows. * <p>Note: if both {@link #setHeight} is specified with non-empty, * {@link #setVisibleRows(int)} is ignored * @since 8.5.0 */ public void setVisibleRows(int visibleRows) throws WrongValueException { if (visibleRows < 0) throw new WrongValueException("Illegal rows: " + visibleRows); if (_visibleRows != visibleRows) { _visibleRows = visibleRows; smartUpdate("rows", _visibleRows); } }
/** Sets the style class for the odd rows. * If the style class doesn't exist, the striping effect disappears. * You can provide different effects by providing the proper style * classes. * @since 3.0.0 */ public void setOddRowSclass(String scls) { if (scls != null && scls.length() == 0) scls = null; if (!Objects.equals(_scOddRow, scls)) { _scOddRow = scls; smartUpdate("oddRowSclass", scls); } }
addPagingListener(_pgi); if (_pgi instanceof Component) smartUpdate("paginal", _pgi);
smartUpdate("model", model instanceof GroupsListModel || model instanceof GroupsModel ? "group" : true); if (_rows != null) _rows.getChildren().clear(); smartUpdate("model", false);