bookMark.add(bookMarkTitle);
final VerticalPanel bookMarkType = new VerticalPanel();
final RadioButton typePrivate = new RadioButton("priorityFilter",
prefsUtils.getMsg("gadgetLabelHigh"));
final RadioButton typePublic = new RadioButton("priorityFilter",
prefsUtils.getMsg("gadgetLabelMedium"));
typePrivate.setValue(true);
bookMarkType.add(typePrivate);
bookMarkType.add(typePublic);
final Button saveButton = new Button(
prefsUtils.getMsg("gadgetLabelSave"));
addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
addItemPanel.add(bookMark);
//addItemPanel.add(new HTML(" "));
//addItemPanel.add(bookMarkType);
addItemPanel.add(new HTML(" "));
addItemPanel.add(saveButton);
addDisclosurePanel.add(addItemPanel);
ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
add.setStyleName("gadglet-ActionLabel");
addDisclosurePanel.setHeader(add);
mainPanel.add(addDisclosurePanel);
mainPanel.add(results);
RootPanel.get().add(mainPanel.getGadgetPanel());
saveButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
changeBookMarkQry.setRequestAction(ReqActionTypes.ADD);
changeBookMarkQry.clearParamList();
String bookMarkType = "";
if (typePrivate.getValue())
bookMarkType = BookMarkType.PRIVATE.toString();
else if (typePublic.getValue())
bookMarkType = BookMarkType.PUBLIC.toString();
else
bookMarkType = BookMarkType.PRIVATE.toString();
changeBookMarkQry.addParam(Params.BOOKMARK_TYPE.getParamName(),