Package org.apache.wicket.markup.html.form

Examples of org.apache.wicket.markup.html.form.CheckBox


      // MarkupContainer row for remember me checkbox
      WebMarkupContainer rememberMeRow = new WebMarkupContainer("rememberMeRow");
      add(rememberMeRow);

      // Add rememberMe checkbox
      rememberMeRow.add(new CheckBox("rememberMe", new PropertyModel(SignInPanel.this,
          "rememberMe")));

      // Make form values persistent
      setPersistent(rememberMe);
View Full Code Here


      // add(DateTextField.forShortStyle("dateProperty").add(new
      // DatePicker()));

      add(new RequiredTextField("integerInRangeProperty", Integer.class).add(NumberValidator
          .range(0, 100)));
      add(new CheckBox("booleanProperty"));
      add(new Multiply("multiply"));
      add(new Label("multiplyLabel", new PropertyModel(getModel(), "multiply"))
          .setComponentBorder(new BeforeAndAfterBorder()));
      RadioChoice rc = new RadioChoice("numberRadioChoice", NUMBERS).setSuffix("");
      rc.setLabel(new Model("number"));
View Full Code Here

    super(id, new CompoundPropertyModel<Server>(server));
    setOutputMarkupId(true);
    this.listContainer = listContainer;

    add(new RequiredTextField<String>("name").setLabel(Model.of(WebSession.getString(1500))));
    add(new CheckBox("active"));
    add(new RequiredTextField<String>("address").setLabel(Model.of(WebSession.getString(1501))));
    add(new TextField<Integer>("port"));
    add(new TextField<String>("user"));
    add(new TextField<String>("pass"));
    add(new TextField<String>("webapp"));
View Full Code Here

    super(id, new CompoundPropertyModel<LdapConfig>(ldapConfig));
    setOutputMarkupId(true);
    this.listContainer = listContainer;
   
    add(new RequiredTextField<String>("name").setLabel(Model.of(WebSession.getString(1108))));
    add(new CheckBox("isActive"));
    add(forDatePattern("inserted", WEB_DATE_PATTERN));
    add(new Label("insertedby.login"));
    add(forDatePattern("updated", WEB_DATE_PATTERN));
    add(new Label("updatedby.login"));
    add(new RequiredTextField<String>("configFileName").setLabel(Model.of(WebSession.getString(1115))));
    add(new CheckBox("addDomainToUserName"));
    add(new TextField<String>("domain"));
    add(new TextArea<String>("comment"));

    // attach an ajax validation behavior to all form component's keydown
    // event and throttle it down to once per second
View Full Code Here

    form.add(new TextField<String>("subject"));
    DefaultWysiwygToolbar toolbar = new DefaultWysiwygToolbar("toolbarContainer");
    form.add(toolbar);
    form.add(new WysiwygEditor("message", toolbar));
    form.add(roomParamsBlock.setOutputMarkupId(true));
    final CheckBox bookedRoom = new CheckBox("bookedRoom");
    form.add(bookedRoom.setOutputMarkupId(true).add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;
     
      @Override
      protected void onEvent(AjaxRequestTarget target) {
        PrivateMessage p = MessageDialog.this.getModelObject();
View Full Code Here

      List<LdapConfig> ldaps = getBean(LdapConfigDao.class).getLdapConfigs();
      domain = ldaps.get(0);
      add(new WebMarkupContainer("ldap")
        .add(new DropDownChoice<LdapConfig>("domain", new PropertyModel<LdapConfig>(SignInDialog.this, "domain")
            , ldaps, new ChoiceRenderer<LdapConfig>("name", "ldapConfigId"))).setVisible(ldaps.size() > 1));
      add(new CheckBox("rememberMe", new PropertyModel<Boolean>(SignInDialog.this, "rememberMe")).setOutputMarkupId(true));
      add(new AjaxButton("submit") { //FAKE button so "submit-on-enter" works as expected
        private static final long serialVersionUID = -3612671587183668912L;

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
View Full Code Here

    add(new DropDownChoice<Type>("type", Arrays.asList(Type.values())));
    add(new Label("ownerId"));
    add(forDatePattern("starttime", WEB_DATE_PATTERN));
    add(forDatePattern("updatetime", WEB_DATE_PATTERN));

    add(new CheckBox("forceTimeZoneCheck"));

    final String field159 = WebSession.getString(159);
    final String field160 = WebSession.getString(160);

    add(new DropDownChoice<Integer>("status", Arrays.asList(0, 1), new IChoiceRenderer<Integer>() {
View Full Code Here

  public OAuthForm(String id, WebMarkupContainer listContainer, OAuthServer server) {
    super(id, new CompoundPropertyModel<OAuthServer>(server));
    this.listContainer = listContainer;
    setOutputMarkupId(true);
   
    add(new CheckBox("isEnabled"));
    add(new RequiredTextField<String>("name").setLabel(Model.of(WebSession.getString(1573))));
    add(new TextField<String>("iconUrl").setLabel(Model.of(WebSession.getString(1575))));
    add(new RequiredTextField<String>("clientId").setLabel(Model.of(WebSession.getString(1576))));
    add(new RequiredTextField<String>("clientSecret").setLabel(Model.of(WebSession.getString(1577))));
    redirectUriText = (TextField<String>) new TextField<String>("redirectUri", Model.of("")).setLabel(Model.of(WebSession.getString(1587)));
View Full Code Here

    add(new DropDownChoice<RoomType>("roomtype", Application.getBean(RoomTypeDao.class).getAll(WebSession.getLanguage()),
        new ChoiceRenderer<RoomType>("label.value", "roomtypes_id")));

    add(new TextArea<String>("comment"));

    add(new CheckBox("appointment"));
    add(new CheckBox("ispublic"));

    List<Organisation> orgList = Application.getBean(OrganisationDao.class).get(0, Integer.MAX_VALUE);
    List<RoomOrganisation> orgRooms = new ArrayList<RoomOrganisation>(orgList.size());
    for (Organisation org : orgList) {
      orgRooms.add(new RoomOrganisation(org));
    }
    ListMultipleChoice<RoomOrganisation> orgChoiceList = new ListMultipleChoice<RoomOrganisation>(
        "roomOrganisations", orgRooms,
        new ChoiceRenderer<RoomOrganisation>("organisation.name",
            "organisation.organisation_id"));
    orgChoiceList.setMaxRows(6);
    add(orgChoiceList);

    add(new CheckBox("isDemoRoom"));
    TextField<Integer> demoTime = new TextField<Integer>("demoTime");
    demoTime.setLabel(new Model<String>(WebSession.getString(637)));
    add(demoTime);
    add(new CheckBox("allowUserQuestions"));
    add(new CheckBox("isAudioOnly"));
    add(new CheckBox("allowFontStyles"));
    add(new CheckBox("isClosed"));
    add(new TextField<String>("redirectURL"));
    add(new CheckBox("waitForRecording"));
    add(new CheckBox("allowRecording"));

    add(new CheckBox("hideTopBar"));
    add(new CheckBox("hideChat"));
    add(new CheckBox("hideActivitiesAndActions"));
    add(new CheckBox("hideFilesExplorer"));
    add(new CheckBox("hideActionsMenu"));
    add(new CheckBox("hideScreenSharing"));
    add(new CheckBox("hideWhiteboard"));
    add(new CheckBox("showMicrophoneStatus"));
    add(new CheckBox("chatModerated"));
    add(new CheckBox("chatOpened"));
    add(new CheckBox("filesOpened"));
    add(new CheckBox("autoVideoSelect"))
   
    // Users in this Room
    clientsContainer = new WebMarkupContainer("clientsContainer");
    clients = new ListView<Client>("clients", clientsInRoom){
      private static final long serialVersionUID = 8542589945574690054L;

      @Override
      protected void populateItem(final ListItem<Client> item) {
        Client client = item.getModelObject();
        item.add(new Label("clientId", "" + client.getId()))
          .add(new Label("clientLogin", "" + client.getUsername()))
          .add(new WebMarkupContainer("clientDelete").add(new AjaxEventBehavior("onclick"){

          private static final long serialVersionUID = 1L;

          @Override
          protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
            super.updateAjaxAttributes(attributes);
            attributes.getAjaxCallListeners().add(new ConfirmCallListener(833L));
          }
         
          @Override
          protected void onEvent(AjaxRequestTarget target) {
            Client c = item.getModelObject();
            getBean(IUserService.class).kickUserByStreamId(getSid(), c.getStreamid()
                , c.getServer() == null ? 0 : c.getServer().getId());
           
            updatClients(target);
          }
        }));
      }
    };
    add(clientsContainer.add(clients.setOutputMarkupId(true)).setOutputMarkupId(true));
   
    // Moderators
    moderators =  new ListView<RoomModerator>("moderators", moderatorsInRoom) {
      private static final long serialVersionUID = -7935197812421549677L;

      @Override
      protected void populateItem(final ListItem<RoomModerator> item) {
        final RoomModerator moderator = item.getModelObject();
        item.add(new Label("isSuperModerator", "" + moderator.getIsSuperModerator()))
          .add(new Label("userId", "" + moderator.getUser().getUser_id()))
          .add(new Label("uName", "" + moderator.getUser().getFirstname() + " " + moderator.getUser().getLastname()))
          .add(new Label("email", ""+ moderator.getUser().getAdresses().getEmail()))
          .add(new WebMarkupContainer("delete").add(new AjaxEventBehavior("onclick"){
          private static final long serialVersionUID = 1L;

          @Override
          protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
            super.updateAjaxAttributes(attributes);
            attributes.getAjaxCallListeners().add(new ConfirmCallListener(833L));
          }
         
          @Override
          protected void onEvent(AjaxRequestTarget target) {
            Application.getBean(RoomModeratorsDao.class).removeRoomModeratorByUserId(moderator.getRoomModeratorsId());
            updateModerators(target);
          }
        }));

        item.add(AttributeModifier.replace("class", (item.getIndex() % 2 == 1) ? "even" : "odd"));
      }
    };

    // FIXME: Room user moderator list
    CheckBox isModeratedRoom = new CheckBox("isModeratedRoom");
        add(isModeratedRoom.setOutputMarkupId(true));

    moderatorContainer = new WebMarkupContainer("moderatorContainer");
   
    add(moderatorContainer.add(moderators).setOutputMarkupId(true));
   
View Full Code Here

    add(email = new RequiredTextField<String>("adresses.email"));
    email.setLabel(Model.of(WebSession.getString(137)));
    email.add(RfcCompliantEmailAddressValidator.getInstance());
    add(new TextField<String>("adresses.phone"));
    add(new CheckBox("sendSMS"));
    DateTextField age = new DateTextField("age");
    DatePicker datePicker = new DatePicker() {
      private static final long serialVersionUID = 1L;

      @Override
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.form.CheckBox

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.