@Test public void testAddRemoveAttributeButton() throws Exception { view.addRemoveAttributeButton(null, false); verify(view).add(widgetCaptor.capture()); assertTrue(widgetCaptor.getValue() instanceof Anchor); }
public void addRemoveAttributeButton(final Command clickHandler, final boolean isEditable) { deleteColumnManagementAnchorWidget.init(attribute, clickHandler); deleteColumnManagementAnchorWidget.setEnabled(isEditable); add(deleteColumnManagementAnchorWidget); }
AttributeColumnConfigRowView extends HorizontalPanel { public void addRemoveAttributeButton(final Command clickHandler, final boolean isEditable) { deleteColumnManagementAnchorWidget.init(attribute, clickHandler); deleteColumnManagementAnchorWidget.setEnabled(isEditable); add(deleteColumnManagementAnchorWidget); } }
AttributeColumnConfigRowView extends HorizontalPanel { public void addRemoveAttributeButton(final Command clickHandler, final boolean isEditable) { deleteColumnManagementAnchorWidget.init(attribute, clickHandler); deleteColumnManagementAnchorWidget.setEnabled(isEditable); add(deleteColumnManagementAnchorWidget); } AttributeColumnConfigRowView(); @Inject  AttributeColumnConfigRowView(final DeleteColumnManagementAnchorWidget deleteColumnManagementAnchorWidget); }
AttributeColumnConfigRowView extends HorizontalPanel { public void addRemoveAttributeButton(final Command clickHandler, final boolean isEditable) { deleteColumnManagementAnchorWidget.init(attribute, clickHandler); deleteColumnManagementAnchorWidget.setEnabled(isEditable); add(deleteColumnManagementAnchorWidget); } AttributeColumnConfigRowView(); @Inject  AttributeColumnConfigRowView(final DeleteColumnManagementAnchorWidget deleteColumnManagementAnchorWidget); void addRemoveAttributeButton(final Command clickHandler,
                                         final boolean isEditable); void addColumnLabel(AttributeCol52 attributeColumn); void addDefaultValue(AttributeCol52 attributeColumn,
                                boolean isEditable,
                                DefaultValueWidgetFactory.DefaultValueChangedEventHandler handler); CheckBox addUseRowNumberCheckBox(AttributeCol52 attributeColumn,
                                            boolean isEditable,
                                            ClickHandler clickHandler); CheckBox addReverseOrderCheckBox(AttributeCol52 attributeColumn,
                                            boolean isEditable,
                                            ClickHandler clickHandler); CheckBox addHideColumnCheckBox(AttributeCol52 attributeColumn,
                                          ClickHandler clickHandler); }
AttributeColumnConfigRowView extends HorizontalPanel { public void addRemoveAttributeButton(final Command clickHandler, final boolean isEditable) { deleteColumnManagementAnchorWidget.init(attribute, clickHandler); deleteColumnManagementAnchorWidget.setEnabled(isEditable); add(deleteColumnManagementAnchorWidget); } AttributeColumnConfigRowView(); @Inject  AttributeColumnConfigRowView(final DeleteColumnManagementAnchorWidget deleteColumnManagementAnchorWidget); void addRemoveAttributeButton(final Command clickHandler,
                                         final boolean isEditable); void addColumnLabel(AttributeCol52 attributeColumn); void addDefaultValue(AttributeCol52 attributeColumn,
                                boolean isEditable,
                                DefaultValueWidgetFactory.DefaultValueChangedEventHandler handler); CheckBox addUseRowNumberCheckBox(AttributeCol52 attributeColumn,
                                            boolean isEditable,
                                            ClickHandler clickHandler); CheckBox addReverseOrderCheckBox(AttributeCol52 attributeColumn,
                                            boolean isEditable,
                                            ClickHandler clickHandler); CheckBox addHideColumnCheckBox(AttributeCol52 attributeColumn,
                                          ClickHandler clickHandler);  }