ImageResource asc = table.getResources().sortAscending(); ImageResource desc = table.getResources().sortDescending(); if (asc != null) { sortAscIconWidth = asc.getWidth() + ICON_PADDING;
/** * Get the HTML representation of the sort icon. These are loaded lazily so * the compiler has a chance to strip this method, and the icon source code, * if the user overrides renderHeader. * * @param isAscending true for the ascending icon, false for descending * @return the rendered HTML */ private SafeHtml getSortIcon(boolean isAscending) { if (isAscending) { if (sortAscIconHtml == null) { AbstractImagePrototype proto = AbstractImagePrototype.create(table.getResources().sortAscending()); sortAscIconHtml = SafeHtmlUtils.fromTrustedString(proto.getHTML()); } return sortAscIconHtml; } else { if (sortDescIconHtml == null) { AbstractImagePrototype proto = AbstractImagePrototype.create(table.getResources().sortDescending()); sortDescIconHtml = SafeHtmlUtils.fromTrustedString(proto.getHTML()); } return sortDescIconHtml; } } }
public DefaultCellTableBuilder(AbstractCellTable<T> cellTable) { super(cellTable); // Cache styles for faster access. Style style = cellTable.getResources().style(); evenRowStyle = style.evenRow(); oddRowStyle = style.oddRow(); selectedRowStyle = " " + style.selectedRow(); cellStyle = style.cell(); evenCellStyle = " " + style.evenRowCell(); oddCellStyle = " " + style.oddRowCell(); firstColumnStyle = " " + style.firstColumn(); lastColumnStyle = " " + style.lastColumn(); selectedCellStyle = " " + style.selectedRowCell(); }
Style style = getTable().getResources().style(); String className = isBuildingFooter() ? style.footer() : style.header(); String sortableStyle = " " + style.sortableHeader();
ImageResource asc = table.getResources().sortAscending(); ImageResource desc = table.getResources().sortDescending(); if (asc != null) { sortAscIconWidth = asc.getWidth() + ICON_PADDING;
ImageResource asc = table.getResources().sortAscending(); ImageResource desc = table.getResources().sortDescending(); if (asc != null) { sortAscIconWidth = asc.getWidth() + ICON_PADDING;
/** * Get the HTML representation of the sort icon. These are loaded lazily so * the compiler has a chance to strip this method, and the icon source code, * if the user overrides renderHeader. * * @param isAscending true for the ascending icon, false for descending * @return the rendered HTML */ private SafeHtml getSortIcon(boolean isAscending) { if (isAscending) { if (sortAscIconHtml == null) { AbstractImagePrototype proto = AbstractImagePrototype.create(table.getResources().sortAscending()); sortAscIconHtml = SafeHtmlUtils.fromTrustedString(proto.getHTML()); } return sortAscIconHtml; } else { if (sortDescIconHtml == null) { AbstractImagePrototype proto = AbstractImagePrototype.create(table.getResources().sortDescending()); sortDescIconHtml = SafeHtmlUtils.fromTrustedString(proto.getHTML()); } return sortDescIconHtml; } } }
/** * Get the HTML representation of the sort icon. These are loaded lazily so * the compiler has a chance to strip this method, and the icon source code, * if the user overrides renderHeader. * * @param isAscending true for the ascending icon, false for descending * @return the rendered HTML */ private SafeHtml getSortIcon(boolean isAscending) { if (isAscending) { if (sortAscIconHtml == null) { AbstractImagePrototype proto = AbstractImagePrototype.create(table.getResources().sortAscending()); sortAscIconHtml = SafeHtmlUtils.fromTrustedString(proto.getHTML()); } return sortAscIconHtml; } else { if (sortDescIconHtml == null) { AbstractImagePrototype proto = AbstractImagePrototype.create(table.getResources().sortDescending()); sortDescIconHtml = SafeHtmlUtils.fromTrustedString(proto.getHTML()); } return sortDescIconHtml; } } }
public DefaultCellTableBuilder(AbstractCellTable<T> cellTable) { super(cellTable); // Cache styles for faster access. Style style = cellTable.getResources().style(); evenRowStyle = style.evenRow(); oddRowStyle = style.oddRow(); selectedRowStyle = " " + style.selectedRow(); cellStyle = style.cell(); evenCellStyle = " " + style.evenRowCell(); oddCellStyle = " " + style.oddRowCell(); firstColumnStyle = " " + style.firstColumn(); lastColumnStyle = " " + style.lastColumn(); selectedCellStyle = " " + style.selectedRowCell(); }
public DefaultCellTableBuilder(AbstractCellTable<T> cellTable) { super(cellTable); // Cache styles for faster access. Style style = cellTable.getResources().style(); evenRowStyle = style.evenRow(); oddRowStyle = style.oddRow(); selectedRowStyle = " " + style.selectedRow(); cellStyle = style.cell(); evenCellStyle = " " + style.evenRowCell(); oddCellStyle = " " + style.oddRowCell(); firstColumnStyle = " " + style.firstColumn(); lastColumnStyle = " " + style.lastColumn(); selectedCellStyle = " " + style.selectedRowCell(); }
Style style = getTable().getResources().style(); String className = isBuildingFooter() ? style.footer() : style.header(); String sortableStyle = " " + style.sortableHeader();
Style style = getTable().getResources().style(); String className = isBuildingFooter() ? style.footer() : style.header(); String sortableStyle = " " + style.sortableHeader();