IDEMPIERE-2033 Add Reset button on CustomizeGridView panel / based on suggested patch from Nicolas Micoud (nmicoud)

This commit is contained in:
Carlos Ruiz 2019-07-26 21:53:48 +02:00
parent c370554e30
commit 8c7ef51521
1 changed files with 5 additions and 1 deletions

View File

@ -51,6 +51,7 @@ import org.compiere.model.MTab;
import org.compiere.model.Query;
import org.compiere.model.X_AD_Tab_Customization;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.compiere.util.NamePair;
@ -131,7 +132,7 @@ public class CustomizeGridViewPanel extends Panel
private boolean uiCreated;
private boolean m_saved = false;
private ConfirmPanel confirmPanel = new ConfirmPanel(true);
private ConfirmPanel confirmPanel = new ConfirmPanel(true, false, true, false, false, false);
/**
* Static Layout
@ -290,6 +291,9 @@ public class CustomizeGridViewPanel extends Panel
} else if (event.getTarget().equals(
confirmPanel.getButton(ConfirmPanel.A_CANCEL))) {
getParent().detach();
} else if (event.getTarget().equals(confirmPanel.getButton(ConfirmPanel.A_RESET))) {
tableSeqs.clear();
loadData();
}
}