Examples of ButtonBehavior


Examples of com.google.code.jqwicket.ui.button.ButtonBehavior

public class ButtonPage extends DemoPage {

  @SuppressWarnings("serial")
  public ButtonPage() {

    add(new Button("button1").add(new ButtonBehavior()));

    Button b2 = new Button("button2");
    b2.add(new ButtonBehavior());
    add(b2);

    Link<Void> b3 = new Link<Void>("button3") {
      @Override
      public void onClick() {
        // do something here
      }
    };
    b3.add(new ButtonBehavior(new ButtonOptions().label("my label")
        .disabled(true)));
    add(b3);
  }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.button.ButtonBehavior

            @Override
            protected void onInitialize() {
                super.onInitialize();

                add(new ButtonBehavior(Buttons.Type.Primary));
                add(new LoadingBehavior(Model.of("loading...")));
            }

            @Override
            public void onClick(AjaxRequestTarget target) {
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.button.ButtonBehavior

     * @param label The button label
     * @return The new button instance
     */
    private AbstractLink createButton(final String label) {
        AbstractLink button = new BookmarkablePageLink<Void>(ButtonList.getButtonMarkupId(), ComponentsPage.class).setBody(Model.of(label));
        button.add(new ButtonBehavior());

        return button;
    }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.button.ButtonBehavior

            @Override
            protected void onInitialize() {
                super.onInitialize();

                add(new ButtonBehavior());
            }

            @Override
            protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
                System.out.print(dateBean);
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.button.ButtonBehavior

            @Override
            protected void onInitialize() {
                super.onInitialize();

                add(new ButtonBehavior());
            }

            @Override
            protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
                success("Selected color is: " + colorPicker.getModelObject());
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.button.ButtonBehavior

     */
    public ModalCloseButton(final IModel<String> label) {
        super("button", label);

        setBody(getDefaultModel());
        buttonBehavior = new ButtonBehavior(Buttons.Type.Default);

        add(new AttributeModifier("data-dismiss", "modal"));
        add(buttonBehavior);
    }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.button.ButtonBehavior

        // do nothing
    }

    @Override
    protected void addButtonBehavior(final IModel<Buttons.Type> buttonType, final IModel<Buttons.Size> buttonSize) {
        final ButtonBehavior buttonBehavior = new ButtonBehavior(buttonType, buttonSize);

        btn.add(buttonBehavior);
        caret.add(buttonBehavior);
    }
View Full Code Here

Examples of org.odlabs.wiquery.ui.button.ButtonBehavior

    final Form<Void> form = new Form<Void>("form");
    add(form);
   
    // Simple button
    Button simpleButton = new Button("simpleButton");
    simpleButton.add(new ButtonBehavior()
        .setIcons(UiIcon.HOME, null)
        .setLabel("Simple button")
    );
    form.add(simpleButton);
   
    // Button without text
    Button buttonWithoutText = new Button("buttonWithoutText");
    buttonWithoutText.add(new ButtonBehavior()
        .setIcons(UiIcon.HOME, null)
        .setText(false)
    );
    form.add(buttonWithoutText);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.