private static Group renderGroupedCellToggle(final double cellWidth, final double cellHeight, final boolean isCollapsed) { return new GroupingToggle(cellWidth, cellHeight, isCollapsed); }
@Override public boolean onGroupingToggle(double cellX, double cellY, double cellWidth, double cellHeight) { return GroupingToggle.onHotSpot(cellX, cellY, cellWidth, cellHeight); }
/** * Constructor for the widget. * @param cellWidth Width of the containing cell. * @param cellHeight Height of the containing cell. * @param isGrouped true is the cell is collapsed. */ @SuppressWarnings("unused") public GroupingToggle(final double cellWidth, final double cellHeight, final boolean isGrouped) { toggle.setText(isGrouped ? TOGGLE_ICON_EXPAND : TOGGLE_ICON_COLLAPSE); toggle.setX(cellWidth - TOGGLE_FONT_SIZE - PADDING); toggle.setY(TOGGLE_FONT_SIZE + PADDING); add(toggle); }
/** * Constructor for the widget. * @param cellWidth Width of the containing cell. * @param cellHeight Height of the containing cell. * @param isGrouped true is the cell is collapsed. */ @SuppressWarnings("unused") public GroupingToggle(final double cellWidth, final double cellHeight, final boolean isGrouped) { toggle.setText(isGrouped ? TOGGLE_ICON_EXPAND : TOGGLE_ICON_COLLAPSE); toggle.setX(cellWidth - TOGGLE_FONT_SIZE - PADDING); toggle.setY(TOGGLE_FONT_SIZE + PADDING); add(toggle); }
private static Group renderGroupedCellToggle(final double cellWidth, final double cellHeight, final boolean isCollapsed) { return new GroupingToggle(cellWidth, cellHeight, isCollapsed); }
@Override public boolean onGroupingToggle(double cellX, double cellY, double cellWidth, double cellHeight) { return GroupingToggle.onHotSpot(cellX, cellY, cellWidth, cellHeight); }