if ( c instanceof ActionWorkItemSetFieldCol52 ) {
final ActionWorkItemSetFieldCol52 awisf = (ActionWorkItemSetFieldCol52) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
ActionWorkItemSetFieldPopup ed = new ActionWorkItemSetFieldPopup( model,
oracle,
new GenericColumnCommand() {
public void execute( DTColumnConfig52 column ) {
dtable.updateColumn( awisf,
(ActionWorkItemSetFieldCol52) column );
refreshActionsWidget();
}
},
awisf,
false,
isReadOnly );
ed.show();
}
} );
} else if ( c instanceof ActionSetFieldCol52 ) {
final ActionSetFieldCol52 asf = (ActionSetFieldCol52) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
ActionSetFieldPopup ed = new ActionSetFieldPopup( model,
oracle,
new GenericColumnCommand() {
public void execute( DTColumnConfig52 column ) {
dtable.updateColumn( asf,
(ActionSetFieldCol52) column );
refreshActionsWidget();
}
},
asf,
false,
isReadOnly );
ed.show();
}
} );
} else if ( c instanceof ActionWorkItemInsertFactCol52 ) {
final ActionWorkItemInsertFactCol52 awiif = (ActionWorkItemInsertFactCol52) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
ActionWorkItemInsertFactPopup ed = new ActionWorkItemInsertFactPopup( model,
oracle,
new GenericColumnCommand() {
public void execute( DTColumnConfig52 column ) {
dtable.updateColumn( awiif,
(ActionWorkItemInsertFactCol52) column );
refreshActionsWidget();
}
},
awiif,
false,
isReadOnly );
ed.show();
}
} );
} else if ( c instanceof ActionInsertFactCol52 ) {
final ActionInsertFactCol52 asf = (ActionInsertFactCol52) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
ActionInsertFactPopup ed = new ActionInsertFactPopup( model,
oracle,
new GenericColumnCommand() {
public void execute( DTColumnConfig52 column ) {
dtable.updateColumn( asf,
(ActionInsertFactCol52) column );
refreshActionsWidget();
}
},
asf,
false,
isReadOnly );
ed.show();
}
} );
} else if ( c instanceof ActionRetractFactCol52 ) {
final ActionRetractFactCol52 arf = (ActionRetractFactCol52) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
ActionRetractFactPopup ed = new ActionRetractFactPopup( model,
new GenericColumnCommand() {
public void execute( DTColumnConfig52 column ) {
dtable.updateColumn( arf,
(ActionRetractFactCol52) column );
refreshActionsWidget();
}
},
arf,
false,
isReadOnly );
ed.show();
}
} );
} else if ( c instanceof ActionWorkItemCol52 ) {
final ActionWorkItemCol52 awi = (ActionWorkItemCol52) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
ActionWorkItemPopup popup = new ActionWorkItemPopup( path,
model,
GuidedDecisionTableWidget.this,
new GenericColumnCommand() {
public void execute( DTColumnConfig52 column ) {
dtable.updateColumn( awi,
(ActionWorkItemCol52) column );
refreshActionsWidget();
}
},
awi,
workItemDefinitions,
false,
isReadOnly );
popup.show();
}
} );
} else if ( c instanceof LimitedEntryBRLActionColumn ) {
final LimitedEntryBRLActionColumn column = (LimitedEntryBRLActionColumn) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
LimitedEntryBRLActionColumnViewImpl popup = new LimitedEntryBRLActionColumnViewImpl( path,
model,
oracle,
ruleNameService,
column,
eventBus,
false,
isReadOnly );
popup.setPresenter( LIMITED_ENTRY_BRL_ACTION_PRESENTER );
popup.show();
}
} );
} else if ( c instanceof BRLActionColumn ) {
final BRLActionColumn column = (BRLActionColumn) c;
Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
edit.setAltText( GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration() );
return new ImageButton( edit,
GuidedDecisionTableConstants.INSTANCE.EditThisActionColumnConfiguration(),
new ClickHandler() {
public void onClick( ClickEvent w ) {
BRLActionColumnViewImpl popup = new BRLActionColumnViewImpl( path,
model,