TablePane.Column column = columns.get(j); if (column.isHighlighted()) { graphics.fillRect(columnX, 0, columnWidths[j], height);
/** * Set the column width. * * @param width * The encoded width of the row. If the string ends with the '*' * character, it is treated as a relative value. Otherwise, it is * considered an absolute value. */ public void setWidth(String width) { boolean relativeLocal = false; if (width.endsWith(RELATIVE_SIZE_INDICATOR)) { relativeLocal = true; setWidth(Integer.parseInt(width.substring(0, width.length() - 1)), relativeLocal); } else { setWidth(Integer.parseInt(width), relativeLocal); } }
int columnWidth = column.getWidth(); boolean isRelative = column.isRelative();
if (isColumnVisible(j)) { TablePane.Column column = columns.get(j); int columnWidth = column.getWidth(); if (column.isRelative()) { columnWidths[j] = -columnWidth; totalRelativeWeight += columnWidth;
int columnWidth = column.getWidth(); boolean isRelative = column.isRelative();
TablePane.Column column = columns.get(j); if (column.isHighlighted()) { graphics.fillRect(columnX, 0, columnWidths[j], height);
if (isColumnVisible(j)) { TablePane.Column column = columns.get(j); int columnWidth = column.getWidth(); if (column.isRelative()) { columnWidthsLocal[j] = -columnWidth; totalRelativeWeight += columnWidth;
TablePane.Column tablePaneColumn = new TablePane.Column(); tablePaneColumn.setWidth(tableViewArgument.getColumnBounds(i).width); tablePaneColumns.add(tablePaneColumn);
TablePane.Column tablePaneColumn = new TablePane.Column(); tablePaneColumn.setWidth(tableView.getColumnBounds(i).width); tablePaneColumns.add(tablePaneColumn);
/** * Set the column width. * * @param width * The encoded width of the row. If the string ends with the '*' * character, it is treated as a relative value. Otherwise, it is * considered an absolute value. */ public void setWidth(String width) { boolean relative = false; if (width.endsWith(RELATIVE_SIZE_INDICATOR)) { relative = true; width = width.substring(0, width.length() - 1); } setWidth(Integer.parseInt(width), relative); }
public MenuItemDataRenderer() { getStyles().put("padding", new Insets(2)); getColumns().add(new TablePane.Column(1, true)); getColumns().add(new TablePane.Column()); BoxPane boxPane = new BoxPane(); boxPane.add(imageView); boxPane.add(textLabel); boxPane.getStyles().put("verticalAlignment", VerticalAlignment.CENTER); boxPane.getStyles().put("padding", new Insets(0, 0, 0, 6)); TablePane.Row row = new TablePane.Row(); row.add(boxPane); row.add(keyboardShortcutLabel); getRows().add(row); imageView.getStyles().put("backgroundColor", null); }
public MenuItemDataRenderer() { getStyles().put("padding", new Insets(2)); getColumns().add(new TablePane.Column(1, true)); getColumns().add(new TablePane.Column()); BoxPane boxPane = new BoxPane(); boxPane.add(imageView); boxPane.add(textLabel); boxPane.getStyles().put("verticalAlignment", VerticalAlignment.CENTER); boxPane.getStyles().put("padding", new Insets(0, 0, 0, 6)); TablePane.Row row = new TablePane.Row(); row.add(boxPane); row.add(keyboardShortcutLabel); getRows().add(row); imageView.getStyles().put("backgroundColor", null); }
public LinkButtonDataRenderer() { getStyles().put("horizontalSpacing", 4); getColumns().add(new TablePane.Column()); getColumns().add(new TablePane.Column(1, true)); TablePane.Row row = new TablePane.Row(); row.add(imageView); row.add(label); getRows().add(row); label.getStyles().put("wrapText", true); }
@Override public void columnHighlightedChanged(TablePane.Column column) { TablePane tablePane = column.getTablePane(); repaintComponent(getColumnBounds(tablePane.getColumns().indexOf(column))); }
/** * Set the column width. * * @param width * The absolute width of the column. */ public void setWidth(int width) { setWidth(width, false); }
/** * Set the column width. * * @param width * The absolute width of the column. */ public void setWidth(int width) { setWidth(width, false); }
public LinkButtonDataRenderer() { getStyles().put("horizontalSpacing", 4); getColumns().add(new TablePane.Column()); getColumns().add(new TablePane.Column(1, true)); TablePane.Row row = new TablePane.Row(); row.add(imageView); row.add(label); getRows().add(row); label.getStyles().put("wrapText", true); }
@Override public void columnHighlightedChanged(TablePane.Column column) { TablePane tablePane = column.getTablePane(); repaintComponent(getColumnBounds(tablePane.getColumns().indexOf(column))); }