branch develop updated (083eef2 -> 25f80ba)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git from 083eef2 [jgitflow-maven-plugin]Updating develop poms back to pre merge state new 25f80ba Add a way to customize ConfigCallBackUI (Fixes #4100) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 25f80ba565b2e5ad3bed57780ceff3f814cc4522 Author: Tony CHEMIT <chemit@codelutin.com> Date: Sat Dec 24 09:46:44 2016 +0100 Add a way to customize ConfigCallBackUI (Fixes #4100) Summary of changes: .../jaxx/runtime/swing/config/ConfigUIHandler.java | 31 +++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git commit 25f80ba565b2e5ad3bed57780ceff3f814cc4522 Author: Tony CHEMIT <chemit@codelutin.com> Date: Sat Dec 24 09:46:44 2016 +0100 Add a way to customize ConfigCallBackUI (Fixes #4100) --- .../jaxx/runtime/swing/config/ConfigUIHandler.java | 31 +++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/jaxx-config/src/main/java/jaxx/runtime/swing/config/ConfigUIHandler.java b/jaxx-config/src/main/java/jaxx/runtime/swing/config/ConfigUIHandler.java index b844fbf..edbcc7a 100644 --- a/jaxx-config/src/main/java/jaxx/runtime/swing/config/ConfigUIHandler.java +++ b/jaxx-config/src/main/java/jaxx/runtime/swing/config/ConfigUIHandler.java @@ -74,8 +74,19 @@ public class ConfigUIHandler { private final ConfigUI ui; + /** + * Set this container if you want to use the ui inside another one (a.k.a not in standalone mode). + */ private Container topContainer; + + /** + * To customize the config call back ui before showning it. + * + * @since 2.37 + */ + private ConfigCallBackUICustomizer configCallBackUICustomizer; + /** * To be able to veto a change of a category. * @@ -268,8 +279,11 @@ public class ConfigUIHandler { } ConfigCallBackUI lastUI = new ConfigCallBackUI(context); - lastUI.init(); + + if (configCallBackUICustomizer != null) { + configCallBackUICustomizer.customize(lastUI); + } ui.setVisible(false); parentContainer.remove(ui); parentContainer.add(lastUI); @@ -285,6 +299,21 @@ public class ConfigUIHandler { }; } + public void setConfigCallBackUICustomizer(ConfigCallBackUICustomizer configCallBackUICustomizer) { + this.configCallBackUICustomizer = configCallBackUICustomizer; + } + + /** + * To customize config call back ui. + * + * @since 2.37 + */ + public interface ConfigCallBackUICustomizer { + + void customize(ConfigCallBackUI callBackUI); + } + + protected void closeUI(Window parentWindow, ConfigUIModel model) { destroy(); -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm