public FieldSelectorWidget(Field field, FieldConstraintHelper helper, ScenarioParentWidget parent) { this.field = field; this.helper = helper; this.parent = parent; this.clickMe = CommonAltedImages.INSTANCE.Edit(); this.clickMe.addClickHandler(this); }
public DeleteButton() { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), CommonConstants.INSTANCE.DeleteItem() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if ( Window.confirm( TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveThisItem() ) ) { scenario.removeExecutionTrace( previousEx ); parent.renderEditor(); } } } ); } }
private void addActionsButtonsToLayout( String title, ClickHandler addBelowListener, ClickHandler moveDownListener, ClickHandler moveUpListener ) { final DirtyableHorizontalPane hp = new DirtyableHorizontalPane(); Image addPattern = CommonAltedImages.INSTANCE.NewItemBelow(); addPattern.setTitle( title ); addPattern.addClickHandler( addBelowListener ); Image moveDown = CommonAltedImages.INSTANCE.MoveDown(); moveDown.setTitle( Constants.INSTANCE.MoveDown() ); moveDown.addClickHandler( moveDownListener ); Image moveUp = CommonAltedImages.INSTANCE.MoveUp(); moveUp.setTitle( Constants.INSTANCE.MoveUp() ); moveUp.addClickHandler( moveUpListener ); hp.add( addPattern ); hp.add( moveDown ); hp.add( moveUp ); layout.setWidget( currentLayoutRow, 4, hp ); layout.getFlexCellFormatter().setHorizontalAlignment( currentLayoutRow, 4, HasHorizontalAlignment.ALIGN_CENTER ); layout.getFlexCellFormatter().setVerticalAlignment( currentLayoutRow, 4, HasVerticalAlignment.ALIGN_MIDDLE ); }
private Widget choice() { Image clickme = CommonAltedImages.INSTANCE.Edit(); clickme.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { showTypeChoice( (Widget) event.getSource() ); } } ); return clickme; }
public DeleteButton(final RetractFact retractFact) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveThisRetractStatement() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { retractList.remove( retractFact ); scenario.getFixtures().remove( retractFact ); parent.renderEditor(); } } ); } }
visualFormatFormatter ); ImageButton select = new ImageButton( CommonAltedImages.INSTANCE.Edit() ); select.addClickHandler( new ClickHandler() { public void onClick( ClickEvent event ) {
public DeleteButton() { super( CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveCallMethod() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { onDelete(); } } ); } }
Image clickme = CommonAltedImages.INSTANCE.Edit(); clickme.addClickHandler( new ClickHandler() {
public DeleteButton(final FixtureList definitionList) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveThisBlockOfData() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { onDelete(); } } ); } }
public DeleteButton(final VerifyFact verifyFact) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.DeleteTheExpectationForThisFact() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if ( Window.confirm( TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveThisExpectation() ) ) { scenario.removeFixture( verifyFact ); parent.renderEditor(); } } } ); } }
public DeleteFieldRowButton(final Fact fact, final String fieldName) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveThisRow()); addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (fact instanceof FactData) { if (Window.confirm(TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveRow0(fieldName))) { ScenarioHelper.removeFields(definitionList, fieldName); } } else if (fact instanceof Fact) { if (Window.confirm(TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveRow0(fieldName))) { fact.removeField(fieldName); } } parent.renderEditor(); } }); } }
public DeleteFactColumnButton(final FactData fact) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveTheColumnForScenario(fact.getName())); addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (scenario.isFactDataReferenced(fact)) { Window.alert(TestScenarioConstants.INSTANCE.CanTRemoveThisColumnAsTheName0IsBeingUsed(fact.getName())); } else if (Window.confirm(TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveColumn0(fact.getName()))) { scenario.removeFixture(fact); definitionList.remove(fact); parent.renderEditor(); } } }); } }
cellEditor ); Image del = CommonAltedImages.INSTANCE.DeleteItemSmall(); del.setAltText(TestScenarioConstants.INSTANCE.RemoveThisFieldExpectation()); del.setTitle(TestScenarioConstants.INSTANCE.RemoveThisFieldExpectation());
0, new SmallLabel( acticateRuleFlowGroup.getName() ) ); Image image = CommonAltedImages.INSTANCE.DeleteItemSmall(); image.setAltText(TestScenarioConstants.INSTANCE.RemoveThisRuleFlowActivation()); ImageButton del = new ImageButton(image,
h ); Image del = CommonAltedImages.INSTANCE.DeleteItemSmall(); del.setAltText(TestScenarioConstants.INSTANCE.RemoveThisRuleExpectation()); del.setTitle(TestScenarioConstants.INSTANCE.RemoveThisRuleExpectation());