Examples of CheckBoxPanel


Examples of limelight.ui.model.inputs.CheckBoxPanel

  private PropPanel propPanel;
  private CheckBoxPanel checkBoxPanel;

  public void install(PanelEvent event)
  {
    checkBoxPanel = new CheckBoxPanel();
    propPanel = (PropPanel)event.getRecipient();
    propPanel.add(checkBoxPanel);
    propPanel.getBackstage().put("check-box", this);
  }
View Full Code Here

Examples of org.dmrad.view.form.CheckBoxPanel

                      "org.dmlite.type.email.Email"))) {
            essentialPropertyPanel = new ExternalLinkPanel(
                entityContext, propertiesViewContext);
          } else if (propertyConfig.getPropertyClass().equals(
              "java.lang.Boolean")) {
            essentialPropertyPanel = new CheckBoxPanel(
                entityContext, propertiesViewContext);
          } else if (propertyConfig.getPropertyClass().equals(
              "java.lang.String")
              && propertyConfig.getDisplayLengthInt() > App.MIN_LONG_TEXT_LENGTH) {
            essentialPropertyPanel = new MultiLineLabelPanel(
View Full Code Here

Examples of org.dmrad.view.form.CheckBoxPanel

            propertyValuePanel = new ExternalLinkPanel(entityContext,
                propertiesViewContext);

          } else if (propertyConfig.getPropertyClass().equals(
              "java.lang.Boolean")) {
            propertyValuePanel = new CheckBoxPanel(entityContext,
                propertiesViewContext);

          } else if (propertyConfig.getPropertyClass().equals(
              "java.lang.String")
              && propertyConfig.getDisplayLengthInt() > App.MIN_LONG_TEXT_LENGTH) {
View Full Code Here

Examples of org.dmrad.view.form.CheckBoxPanel

        if (propertyConfig.getPropertyClass().equals(
            "java.lang.Boolean")) {
          ViewContext checkBoxPanelContext = new ViewContext(
              viewContext);
          checkBoxPanelContext.setWicketId("valuePanel");
          propertyValuePanel = new CheckBoxPanel(entityModelContext,
              checkBoxPanelContext);
        } else if (propertyConfig.getPropertyClass().equals(
            "java.lang.String")
            && propertyConfig.getDisplayLengthInt() > App.MIN_LONG_TEXT_LENGTH) {
          ViewContext textAreaPanelContext = new ViewContext(
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.CheckBoxPanel

      fs.add(password);
    }
    {
      final FieldsetPanel fs = new FieldsetPanel("stayLoggedIn", "").suppressLabelForWarning();
      add(fs);
      final CheckBoxPanel stayLoggedInCheckBox = fs.addCheckBox(new PropertyModel<Boolean>(this, "stayLoggedIn"), null);
      final DivPanel divPanel = new DivPanel(fs.newChildId());
      fs.add(divPanel);
      final LabelPanel labelPanel = new LabelPanel(divPanel.newChildId(), getString("login.stayLoggedIn"));
      labelPanel.setLabelFor(stayLoggedInCheckBox.getCheckBox().getMarkupId());
      divPanel.add(labelPanel);
      WicketUtils.addTooltip(labelPanel.getLabel(), getString("login.stayLoggedIn"), getString("login.stayLoggedIn.tooltip"));
      stayLoggedInCheckBox.setTooltip(getString("login.stayLoggedIn"), getString("login.stayLoggedIn.tooltip"));
    }
    final Button loginButton = new Button(SingleButtonPanel.WICKET_ID, new Model<String>("login")) {
      @Override
      public final void onSubmit()
      {
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.CheckBoxPanel

          @Override
          public void populateItem(final Item<ICellPopulator<TimesheetDO>> item, final String componentId,
              final IModel<TimesheetDO> rowModel)
          {
            final TimesheetDO timesheet = rowModel.getObject();
            final CheckBoxPanel checkBoxPanel = new CheckBoxPanel(componentId, timesheetListPage.new SelectItemModel(timesheet.getId()),
                null);
            item.add(checkBoxPanel);
            cellItemListener.populateItem(item, componentId, rowModel);
            addRowClick(item, isMassUpdateMode);
          }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.CheckBoxPanel

      });
    }
    if (access == true) {
      // external subscription
      final FieldsetPanel fsSubscription = gridBuilder.newFieldset(getString("plugins.teamcal.externalsubscription.label"));
      final CheckBoxPanel checkboxPanel = new CheckBoxPanel(fsSubscription.newChildId(), new PropertyModel<Boolean>(data,
          "externalSubscription"), null);
      // ajax stuff
      checkboxPanel.getCheckBox().add(new AjaxFormComponentUpdatingBehavior("change") {
        @Override
        protected void onUpdate(final AjaxRequestTarget target)
        {
          // update visibility
          fsExternalSubscriptionUrl.getFieldset().setVisible(data.isExternalSubscription() == true);
          fsExternalSubscriptionInterval.getFieldset().setVisible(data.isExternalSubscription() == true);
          // update components through ajax
          target.add(fsExternalSubscriptionUrl.getFieldset());
          target.add(fsExternalSubscriptionInterval.getFieldset());
        }
      });
      checkboxPanel.setTooltip(getString("plugins.teamcal.externalsubscription.label.tooltip"));

      fsSubscription.add(checkboxPanel);
      fsExternalSubscriptionUrl = gridBuilder.newFieldset(getString("plugins.teamcal.externalsubscription.url"));
      fsExternalSubscriptionUrl.getFieldset().setOutputMarkupId(true);
      fsExternalSubscriptionUrl.getFieldset().setOutputMarkupPlaceholderTag(true);
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.CheckBoxPanel

      columns.add(new CellItemListenerPropertyColumn<AddressDO>("", null, "selected", cellItemListener) {
        @Override
        public void populateItem(final Item<ICellPopulator<AddressDO>> item, final String componentId, final IModel<AddressDO> rowModel)
        {
          final AddressDO address = rowModel.getObject();
          final CheckBoxPanel checkBoxPanel = new CheckBoxPanel(componentId, addressCampaignValueListPage.new SelectItemModel(address.getId()), null);
          item.add(checkBoxPanel);
          cellItemListener.populateItem(item, componentId, rowModel);
          addRowClick(item, massUpdateMode);
        }
      });
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.CheckBoxPanel

        columnContainer.add(rowRepeater);
      }
      final WebMarkupContainer container = new WebMarkupContainer(rowRepeater.newChildId());
      rowRepeater.add(container);
      final IModel<Boolean> model = Model.of(activeTemplateEntry.isVisible(calendar.getId()) == true);
      final CheckBoxPanel checkBoxPanel = new CheckBoxPanel("isVisible", model, "");
      checkBoxPanel.getCheckBox().add(new AjaxFormComponentUpdatingBehavior("onChange") {
        private static final long serialVersionUID = 3523446385818267608L;

        @Override
        protected void onUpdate(final AjaxRequestTarget target)
        {
          final Boolean newSelection = checkBoxPanel.getCheckBox().getConvertedInput();
          final TemplateCalendarProperties properties = activeTemplateEntry.getCalendarProperties(calendar.getId());
          if (newSelection != properties.isVisible()) {
            properties.setVisible(newSelection);
            activeTemplateEntry.setDirty();
          }
        }
      });
      container.add(checkBoxPanel);
      WicketUtils.addTooltip(checkBoxPanel.getCheckBox(), getString("plugins.teamcal.filterDialog.calendarIsVisible.tooltip"));
      container.add(new Label("name", calendar.getTitle()));
      final ColorPickerPanel picker = new ColorPickerPanel("colorPicker", activeTemplateEntry.getColorCode(calendar.getId())) {
        @Override
        protected void onColorUpdate(final String selectedColor)
        {
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.CheckBoxPanel

    add(createFeedbackPanel());
    gridBuilder = newGridBuilder(this, "flowform");
    gridBuilder.newGridPanel();
    {
      final FieldsetPanel fs = gridBuilder.newFieldset("Show all");
      fs.add(new CheckBoxPanel(fs.newChildId(), new PropertyModel<Boolean>(this, "showOldUpdateScripts"), null, true) {
        /**
         * @see org.projectforge.web.wicket.flowlayout.CheckBoxPanel#onSelectionChanged(java.lang.Boolean)
         */
        @Override
        protected void onSelectionChanged(final Boolean newSelection)
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.