From be70a03ff47b6da247fc64a347bb23a1fb6c826a Mon Sep 17 00:00:00 2001 From: Sascha Becher Date: Thu, 28 Sep 2023 14:27:03 +0200 Subject: [PATCH] Issue #522: MultiChoice should support databindings Additionally enable access to controls of the MultiChoice. --- .../widgets/opal/multichoice/MultiChoice.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/widgets/opal/multichoice/org.eclipse.nebula.widgets.opal.multichoice/src/org/eclipse/nebula/widgets/opal/multichoice/MultiChoice.java b/widgets/opal/multichoice/org.eclipse.nebula.widgets.opal.multichoice/src/org/eclipse/nebula/widgets/opal/multichoice/MultiChoice.java index 596567607..eb0afbaa3 100644 --- a/widgets/opal/multichoice/org.eclipse.nebula.widgets.opal.multichoice/src/org/eclipse/nebula/widgets/opal/multichoice/MultiChoice.java +++ b/widgets/opal/multichoice/org.eclipse.nebula.widgets.opal.multichoice/src/org/eclipse/nebula/widgets/opal/multichoice/MultiChoice.java @@ -1422,4 +1422,32 @@ public void setShowSelectUnselectAll(final boolean showSelectUnselectAll) { createPopup(); } + /** + * @param selection elements to select + */ + public void setSelected(Set selection) { + setSelection(selection); + } + + /** + * @return selected elements + */ + public Set getSelected() { + return this.selection; + } + + /** + * @return text control + */ + public Text getTextControl() { + return this.text; + } + + /** + * @return the arrow button + */ + public Button getArrowButton() { + return this.arrow; + } + }