if (isEditable() && fieldFactory != null) { final Field<?> f = fieldFactory .createField(getContainerDataSource(), rowId, colId, this);
paintRow(target, cells, isEditable(), actionSet, iscomponent, indexInRowbuffer, itemId);
private void paintPartialRowUpdates(PaintTarget target, Set<Action> actionSet) throws PaintException { final boolean[] iscomponent = findCellsWithComponents(); int firstIx = getFirstUpdatedItemIndex(); int count = getUpdatedRowCount(); target.startTag("urows"); target.addAttribute("firsturowix", firstIx); target.addAttribute("numurows", count); // Partial row updates bypass the normal caching mechanism. Object[][] cells = getVisibleCellsUpdateCacheRows(firstIx, count); for (int indexInRowbuffer = 0; indexInRowbuffer < count; indexInRowbuffer++) { final Object itemId = cells[CELL_ITEMID][indexInRowbuffer]; if (shouldHideNullSelectionItem()) { // Remove null selection item if null selection is not allowed continue; } paintRow(target, cells, isEditable(), actionSet, iscomponent, indexInRowbuffer, itemId); } target.endTag("urows"); maybeThrowCacheUpdateExceptions(); }
paintRow(target, cells, isEditable(), actionSet, iscomponent, indexInRowbuffer, itemId);
/** * Instantiates a new MIB object field. * * @param resourceTypes the available resource types * @param mibGroupEditable true, if the MIB group can be modified */ public MibObjField(final List<String> resourceTypes, boolean mibGroupEditable) { table.addStyleName("light"); table.setVisibleColumns(new Object[] { "oid", "instance", "alias", "type" }); table.setColumnHeaders(new String[] { "OID", "Instance", "Alias", "Type" }); table.setEditable(!isReadOnly()); table.setSelectable(true); table.setHeight("250px"); table.setWidth("100%"); table.setTableFieldFactory(new MibObjFieldFactory(resourceTypes)); if (mibGroupEditable) { toolbar.addComponent(add); toolbar.addComponent(delete); } toolbar.setVisible(table.isEditable()); setValidationVisible(true); }
toolbar.addComponent(add); toolbar.addComponent(delete); toolbar.setVisible(table.isEditable());
toolbar.addComponent(add); toolbar.addComponent(delete); toolbar.setVisible(table.isEditable());
toolbar.addComponent(add); toolbar.addComponent(delete); toolbar.setVisible(table.isEditable());
toolbar.setVisible(table.isEditable());
toolbar.addComponent(edit); toolbar.addComponent(delete); toolbar.setVisible(table.isEditable());
toolbar.setVisible(table.isEditable());