selectWindow.setPaddings(5);
selectWindow.setButtonAlign(Position.CENTER);
selectWindow.setPlain(true);
com.gwtext.client.widgets.Button cancelButton = new com.gwtext.client.widgets.Button("Cancel");
cancelButton.addListener(new ButtonListenerAdapter() {
@Override
public void onClick(Button button, EventObject e) {
selectWindow.hide();
selectWindow.destroy();
}
});
com.gwtext.client.widgets.Button selectButton = new com.gwtext.client.widgets.Button("Select");
selectButton.addListener(new ButtonListenerAdapter() {
@Override
public void onClick(Button button, EventObject e) {
Collection<EntityData> tmpselection = classSelectionPanel.getSelection();
if (tmpselection == null || tmpselection.size() == 0) {
MessageBox.alert("No selection", "No entity selected. Please make a selection in the right panel.");