private void addPart(Component btn) { CfgInfo cfgInfo = (CfgInfo) btn.getAttribute("cfgInfo"); CfgValue newPartValue = CfgParser.buildCfgValue(cfgInfo, null, 1, 1); btn.setParent(null); if (buttonPanel.getChildren().isEmpty()) { addBtn.setVisible(false); } addValue_(newPartValue); }
private Row addRow(Row row, Object value, Object... cellValue) { for (Object obj : cellValue) { if ((obj instanceof String) == true) { Label label = new Label(); label.setValue((String) obj); label.setParent(row); } else if ((obj instanceof Component) == true) { ((Component) obj).setParent(row); } } return row; }