dialog.setPosition(new PositionOptions()
.setAt(new PositionAlignmentOptions(PositionRelation.TOP))
.setMy(new PositionAlignmentOptions(PositionRelation.TOP))
.setOf("#" + dialogContainer.getMarkupId())
);
dialog.setShow(new DialogAnimateOption("fold"));
dialog.setHide(new DialogAnimateOption(100));
dialog.setButtons(new DialogButton("Close", JsScope.quickScope(dialog.close()))
.setIcons(UiIcon.CLOSE, null)
);
dialogContainer.add(dialog);