Skip to content

Commit 073b7a2

Browse files
committed
More changes on upcoming 2.0-rc7 release.
1 parent 4c47736 commit 073b7a2

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

src/main/java/gwt/material/design/demo/client/application/addins/combobox/ComboBoxView.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,16 @@ void onOpenModal(ClickEvent e) {
251251
void onCloseModal(ClickEvent e) {
252252
modal.close();
253253
}
254+
255+
@UiHandler("btnTagMultiGetValue")
256+
void onTagMultiGetValue(ClickEvent e) {
257+
for (String value : comboTagsMultiple.getValue()) {
258+
MaterialToast.fireToast(value);
259+
}
260+
}
261+
262+
@UiHandler("btnTagGetValue")
263+
void onTagGetValue(ClickEvent e) {
264+
MaterialToast.fireToast(comboTags.getSingleValue());
265+
}
254266
}

src/main/java/gwt/material/design/demo/client/application/addins/combobox/ComboBoxView.ui.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,17 @@
228228

229229
<m:MaterialRow addStyleNames="code">
230230
<m:MaterialBadge text="FEATURE UPDATE" textColor="AMBER" shadow="1" layoutPosition="RELATIVE" float="RIGHT" backgroundColor="AMBER_LIGHTEN_5" />
231-
<m:MaterialColumn grid="l6 m6 s12">
232-
<m:MaterialTitle title="Tag Support" description="Note that when tagging is enabled the user can select from pre-existing options or create a new tag by picking the first choice, which is what the user has typed into the search box so far."/>
233-
<combobox:MaterialComboBox closeOnSelect="true" tags="true" placeholder="Time Zone" multiple="true" ui:field="comboTagsMultiple" />
234-
<combobox:MaterialComboBox closeOnSelect="true" tags="true" placeholder="Time Zone" ui:field="comboTags" />
231+
<m:MaterialColumn grid="l12 m12 s12">
232+
<m:MaterialTitle title="Tag Support" description="Note that when tagging is enabled the user can select from pre-existing options or create a new tag by picking the first choice, which is what the user has typed into the search box so far. Also Tag support will only work on String generic Params."/>
233+
<m:MaterialRow>
234+
<combobox:MaterialComboBox closeOnSelect="true" tags="true" placeholder="Time Zone" multiple="true" ui:field="comboTagsMultiple" grid="s12 m6 l6"/>
235+
</m:MaterialRow>
236+
<m:MaterialButton ui:field="btnTagMultiGetValue" text="Get Value" />
237+
238+
<m:MaterialRow>
239+
<combobox:MaterialComboBox closeOnSelect="true" tags="true" placeholder="Time Zone" ui:field="comboTags" grid="s12 m6 l6" />
240+
</m:MaterialRow>
241+
<m:MaterialButton ui:field="btnTagGetValue" text="Get Value" />
235242
</m:MaterialColumn>
236243
<m:MaterialColumn grid="s12">
237244
<demo:PrettyPre addStyleNames="lang-xml">

src/main/java/gwt/material/design/demo/client/application/datatable/custom/CustomDataTableView.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,4 @@ public void run() {
289289
//.log("Row Short Pressed: " + model.getId() + ", x:" + mouseEvent.getPageX() + ", y: " + mouseEvent.getPageY());
290290
});
291291
}
292-
293-
@Override
294-
protected void onAttach() {
295-
super.onAttach();
296-
297-
//Adding / removing table toolpanel action buttons / icons
298-
Panel panel = table.getScaffolding().getToolPanel();
299-
panel.clear();
300-
// Add two buttons
301-
panel.add(new MaterialIcon(IconType.FAVORITE));
302-
panel.add(new MaterialIcon(IconType.DELETE));
303-
panel.add(new MaterialIcon(IconType.MESSAGE));
304-
}
305292
}

0 commit comments

Comments
 (0)