/** * Set the column that displays the hierarchy of this grid's data. By * default the hierarchy will be displayed in the first column. * <p> * Setting a hierarchy column by calling this method also sets the column to * be visible and not hidable. * <p> * <strong>Note:</strong> Changing the Renderer of the hierarchy column is * not supported. * * @param column * the column to use for displaying hierarchy */ public void setHierarchyColumn(Column<T, ?> column) { Objects.requireNonNull(column, "column may not be null"); if (!getColumns().contains(column)) { throw new IllegalArgumentException( "Given column is not a column of this TreeGrid"); } column.setHidden(false); column.setHidable(false); getState().hierarchyColumnId = getInternalIdForColumn(column); }
setHidable(DesignAttributeHandler.readAttribute("hidable", attributes, boolean.class));
.setSortProperty(columnId) .setSortable(false) .setHidable(false); c.setStyleGenerator(obj -> { Object value = c.getValueProvider().apply(obj);
.setCaption(getCaptionFromId("account")) .setSortable(true) .setHidable(false) .setRenderer(new HtmlRenderer()); this.addColumn(GLEntry::getLayer).setId("layer") .setCaption(getCaptionFromId("layer")) .setSortable(true) .setHidable(false); this.addColumn(entry -> { String detail = entry.getTransaction() != null ? entry.getTransaction().getDetail() : ""; .setCaption(getCaptionFromId("detail")) .setSortable(true) .setHidable(false); this.addColumn(entry -> entry.getTags() != null ? entry.getTags().toString() : "") .setId("tags") .setCaption(getCaptionFromId("tags")) .setSortable(true) .setHidable(false); this.addColumn(entry -> entry.isDebit() ? entry.getAmount() : null) .setId("debit") .setCaption(getCaptionFromId("debit")) .setSortable(true) .setHidable(false); this.addColumn(entry -> entry.isCredit() ? entry.getAmount() : null) .setId("credit") .setCaption(getCaptionFromId("credit"))
column.setHidable(true); if (propertyColumn.isHidden()) { column.setHidden(true); column.setHidable(false);
.setCaption(getCaptionFromId("timestamp")) .setSortable(true) .setHidable(false); entryGrid.addColumn(GLEntry::getBalance) .setId("balance") .setCaption(getCaptionFromId("balance")) .setSortable(true) .setHidable(false); entryGrid.sort("timestamp"); entryGrid.setColumnOrder("timestamp","detail","tags","layer","debit","credit","balance");
gridColumn.setMaximumWidth(column.getMaximumWidth()); gridColumn.setHidden(column.isCollapsed()); gridColumn.setHidable(column.isCollapsible() && column.getOwner().isColumnsCollapsingAllowed()); gridColumn.setResizable(column.isResizable()); gridColumn.setSortable(column.isSortable() && column.getOwner().isSortable());
@Override protected void setHiddenColumns() { for (final Object propertyId : HIDDEN_COLUMNS) { getColumn(propertyId).setHidden(true); } getColumn(VIRT_PROP_RUN).setHidable(false); getColumn(VIRT_PROP_APPROVE).setHidable(false); getColumn(VIRT_PROP_PAUSE).setHidable(false); getColumn(VIRT_PROP_DELETE).setHidable(false); getColumn(VIRT_PROP_UPDATE).setHidable(false); getColumn(VIRT_PROP_COPY).setHidable(false); }
@Override protected void setHiddenColumns() { getColumn(ProxyMessage.PXY_MSG_ID).setHidable(false); getColumn(ProxyMessage.PXY_MSG_VALUE).setHidable(false); }
@Override protected void setHiddenColumns() { for (final Object propertyId : HIDDEN_COLUMNS) { getColumn(propertyId).setHidden(true); } getColumn(VIRT_PROP_RUN).setHidable(false); getColumn(VIRT_PROP_APPROVE).setHidable(false); getColumn(VIRT_PROP_PAUSE).setHidable(false); getColumn(VIRT_PROP_DELETE).setHidable(false); getColumn(VIRT_PROP_UPDATE).setHidable(false); getColumn(VIRT_PROP_COPY).setHidable(false); }
@Override protected void setHiddenColumns() { getColumn(VIRT_PROP_FORCED).setHidable(false); getColumn(VIRT_PROP_TIMEFORCED).setHidable(false); getColumn(VIRT_PROP_ACTION_CANCEL).setHidable(false); getColumn(VIRT_PROP_ACTION_FORCE).setHidable(false); getColumn(VIRT_PROP_ACTION_FORCE_QUIT).setHidable(false); getColumn(ProxyAction.PXY_ACTION_MAINTENANCE_WINDOW).setHidden(true); getColumn(ProxyAction.PXY_ACTION_MAINTENANCE_WINDOW).setHidable(true); }
public void updateCollapsible() { if (gridColumn != null) { gridColumn.setHidable(collapsible && owner.isColumnsCollapsingAllowed()); } }
@Override protected void setHiddenColumns() { getColumn(ProxyMessage.PXY_MSG_ID).setHidable(false); getColumn(ProxyMessage.PXY_MSG_VALUE).setHidable(false); }
@Override protected void setMaximizedHiddenColumns() { getColumn(ProxyAction.PXY_ACTION_ID).setHidden(false); getColumn(ProxyAction.PXY_ACTION_ID).setHidable(true); getColumn(ProxyAction.PXY_ACTION_ROLLOUT_NAME).setHidden(false); getColumn(ProxyAction.PXY_ACTION_ROLLOUT_NAME).setHidable(true); }
/** * Sets the standard behavior of columns to be hidable. If implementors * needs other behavior they have to concern about it. */ protected void setColumnsHidable() { // Allow column hiding for (final Column c : getColumns()) { c.setHidable(true); } }
/** * Sets the standard behavior of columns to be hidable. If implementors * needs other behavior they have to concern about it. */ protected void setColumnsHidable() { // Allow column hiding for (final Column c : getColumns()) { c.setHidable(true); } }
@Override protected void setMaximizedHiddenColumns() { getColumn(ProxyAction.PXY_ACTION_ID).setHidden(false); getColumn(ProxyAction.PXY_ACTION_ID).setHidable(true); getColumn(ProxyAction.PXY_ACTION_ROLLOUT_NAME).setHidden(false); getColumn(ProxyAction.PXY_ACTION_ROLLOUT_NAME).setHidable(true); }
@Override protected void setHiddenColumns() { getColumn(ProxyActionStatus.PXY_AS_STATUS).setHidable(false); getColumn(ProxyActionStatus.PXY_AS_CREATED_AT).setHidable(false); }
@Override protected void setHiddenColumns() { getColumn(VIRT_PROP_FORCED).setHidable(false); getColumn(VIRT_PROP_TIMEFORCED).setHidable(false); getColumn(VIRT_PROP_ACTION_CANCEL).setHidable(false); getColumn(VIRT_PROP_ACTION_FORCE).setHidable(false); getColumn(VIRT_PROP_ACTION_FORCE_QUIT).setHidable(false); getColumn(ProxyAction.PXY_ACTION_MAINTENANCE_WINDOW).setHidden(true); getColumn(ProxyAction.PXY_ACTION_MAINTENANCE_WINDOW).setHidable(true); }
@Override protected void setHiddenColumns() { getColumn(ProxyActionStatus.PXY_AS_STATUS).setHidable(false); getColumn(ProxyActionStatus.PXY_AS_CREATED_AT).setHidable(false); }