Package com.googlecode.wicket.jquery.ui.form.button

Examples of com.googlecode.wicket.jquery.ui.form.button.Button


        new ListView<OAuthServer>("oauthList", getBean(OAuth2Dao.class).getEnabledOAuthServers()) {
          private static final long serialVersionUID = 1L;

          @Override
          protected void populateItem(final ListItem<OAuthServer> item) {
            Button btn = new Button("oauthBtn");
            Image icon = new Image("icon", new Model<String>());
            icon.setVisible(item.getModelObject().getIconUrl() != null &&
                !"".equals(item.getModelObject().getIconUrl()));
            icon.add(new AttributeModifier("src", new AbstractReadOnlyModel<String>() {

              private static final long serialVersionUID = 7257002837120721882L;

              @Override
              public String getObject() {
                return item.getModelObject().getIconUrl();
              }
             
            }));
            btn.add(icon);
            btn.add(new Label("label", item.getModelObject().getName()))
            .add(new AjaxEventBehavior("click") {
              private static final long serialVersionUID = 1L;
             
              @Override
              protected void onEvent(AjaxRequestTarget target) {
View Full Code Here


    super(id, model);
    add(new WebMarkupContainer("step1").add(new PublicRoomsEventBehavior()));
    add(new WebMarkupContainer("step2").add(new PublicRoomsEventBehavior()));
    add(new WebMarkupContainer("step3").add(new PublicRoomsEventBehavior()));
    add(new WebMarkupContainer("step4").add(new PublicRoomsEventBehavior()));
    add(new Button("start").add(new PublicRoomsEventBehavior()));
    add(new Button("calendar").add(new AjaxEventBehavior("onclick") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        ((MainPage)getPage()).updateContents(CALENDAR, target);
View Full Code Here

        roomContainer.add(new Label("roomName", r.getName()));
        final IModel<Integer> curUsersModel = new Model<Integer>(Application.getBean(ISessionManager.class).getClientListByRoom(r.getRooms_id()).size());
        final Label curUsers = new Label("curUsers", curUsersModel);
        roomContainer.add(curUsers.setOutputMarkupId(true));
        roomContainer.add(new Label("totalUsers", r.getNumberOfPartizipants()));
        item.add(new Button("enter").add(new RoomEnterBehavior(r.getRooms_id())));
        roomContainer.add(new AjaxLink<Void>("refresh") {
          private static final long serialVersionUID = -3426813755917489787L;

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

        new ListView<OAuthServer>("oauthList", getBean(OAuth2Dao.class).getEnabledOAuthServers()) {
          private static final long serialVersionUID = 1L;

          @Override
          protected void populateItem(final ListItem<OAuthServer> item) {
            Button btn = new Button("oauthBtn");
            Image icon = new Image("icon", new Model<String>());
            icon.setVisible(item.getModelObject().getIconUrl() != null &&
                !"".equals(item.getModelObject().getIconUrl()));
            icon.add(new AttributeModifier("src", new AbstractReadOnlyModel<String>() {

              private static final long serialVersionUID = 7257002837120721882L;

              @Override
              public String getObject() {
                return item.getModelObject().getIconUrl();
              }
             
            }));
            btn.add(icon);
            btn.add(new Label("label", item.getModelObject().getName()))
            .add(new AjaxEventBehavior("click") {
              private static final long serialVersionUID = 1L;
             
              @Override
              protected void onEvent(AjaxRequestTarget target) {
View Full Code Here

        roomContainer.add(new Label("roomName", r.getName()));
        final IModel<Integer> curUsersModel = new Model<Integer>(Application.getBean(ISessionManager.class).getClientListByRoom(r.getRooms_id()).size());
        final Label curUsers = new Label("curUsers", curUsersModel);
        roomContainer.add(curUsers.setOutputMarkupId(true));
        roomContainer.add(new Label("totalUsers", r.getNumberOfPartizipants()));
        item.add(new Button("enter").add(new RoomEnterBehavior(r.getRooms_id())));
        roomContainer.add(new AjaxLink<Void>("refresh") {
          private static final long serialVersionUID = -3426813755917489787L;

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

        new ListView<OAuthServer>("oauthList", getBean(OAuth2Dao.class).getActive()) {
          private static final long serialVersionUID = 1L;

          @Override
          protected void populateItem(final ListItem<OAuthServer> item) {
            Button btn = new Button("oauthBtn");
            Image icon = new Image("icon", new Model<String>());
            icon.setVisible(item.getModelObject().getIconUrl() != null &&
                !"".equals(item.getModelObject().getIconUrl()));
            icon.add(new AttributeModifier("src", new AbstractReadOnlyModel<String>() {

              private static final long serialVersionUID = 7257002837120721882L;

              @Override
              public String getObject() {
                return item.getModelObject().getIconUrl();
              }
             
            }));
            btn.add(icon);
            btn.add(new Label("label", item.getModelObject().getName()))
              .add(new AjaxEventBehavior("click") {
                private static final long serialVersionUID = 1L;
               
                @Override
                protected void onEvent(AjaxRequestTarget target) {
View Full Code Here

TOP

Related Classes of com.googlecode.wicket.jquery.ui.form.button.Button

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.