Package org.odlabs.wiquery.ui.dialog

Examples of org.odlabs.wiquery.ui.dialog.Dialog$DialogAjaxBehavior


    super(id);
    final WebMarkupContainer dialogContainer = new WebMarkupContainer("dialogContainer");
    dialogContainer.setOutputMarkupId(true);
    add(dialogContainer);
   
    final Dialog dialog = new Dialog("dialog");
    dialog.setResizable(true);
    dialog.setTitle("Dialog title");
    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);
   
    final AjaxLink<Void> openDialog = new AjaxLink<Void>("openDialog") {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick(AjaxRequestTarget target) {
        target.appendJavaScript(dialog.open().render().toString());
      }
    };
    dialogContainer.add(openDialog);
  }
View Full Code Here


                }

                li.add(label4count);
                li.add(link);

                final Dialog dialog = new Dialog("confirmation").setWidth(400).
                        setTitle("Delete Saved Search " + name + "?");
                dialog.add(new AjaxFallbackLink("button") {

                    @Override
                    public void onClick(AjaxRequestTarget target) {
                        dialog.close(target);
                        SavedSearchPanel.this.onRemove(target, ssId);
                    }
                });
                li.add(dialog);
                Link removeLink = new AjaxFallbackLink("removeLink") {

                    @Override
                    public void onClick(AjaxRequestTarget target) {
                        if (target != null)
                            dialog.open(target);
                    }
                };
                li.add(removeLink);
            }
        };
View Full Code Here

      }
    };
   
    add(openDialog);
   
    dialog = new Dialog("dialog");
    dialog.setModal(true);
    dialog.setAutoOpen(false);
    add(dialog);
   
    add(dialog);
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.ui.dialog.Dialog$DialogAjaxBehavior

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.