Examples of InputPanel


Examples of org.jitterbit.ui.input.InputPanel

    protected final TextInputField2 getNameField() {
        return nameField;
    }

    protected final JComponent getNameFieldLayout() {
        InputPanel namePanel = new InputPanel();
        namePanel.setOpaque(false);
        InputFieldLayoutUtils.layoutOneColumn(namePanel, new InputField[] { nameField }, true, false);
        return InvisiblePanel.newPanel(namePanel.getUi());
    }
View Full Code Here

Examples of org.jitterbit.ui.input.InputPanel

        this.responseModel = responseModel;
        removeAction = new RemoveOperationAction(responseModel);
        editAction = new EditOperationAction();
        table = new OperationTable(responseModel, editAction, removeAction);
        addAction = new AddOperationAction();
        panel = new InputPanel();
        if (parent != null) {
            parent.addInputPanel(panel);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.input.InputPanel

        titleLabel = createTitleLabel(title);
        browseButton = new KongaButton(new BrowseAction());
    }

    private InputPanel createInputPanel() {
        InputPanel p = new InputPanel(new BorderLayout());
        siteImplementor = new InputPanelSiteImplementor(p);
        siteImplementor.addInputChangeListener(new InputChangeListener() {

            @Override
            public void inputChanged(InputChangeEvent e) {
View Full Code Here

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

            name.error(getString("userPref.error.nameDoesAlreadyExist"));
          }
        }
      });
      name.add(WicketUtils.setFocus());
      fs.add(new InputPanel(fs.newChildId(), name));
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // User
      data.setUser(PFUserContext.getUser());
View Full Code Here

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

            maxLength = UserPrefEntryDO.MAX_STRING_VALUE_LENGTH;
          }
          final MaxLengthTextField textField = new MaxLengthTextField(InputPanel.WICKET_ID, new PropertyModel<String>(param, "value"),
              maxLength);
          textField.setRequired(param.isRequired());
          fs.add(new InputPanel(fs.newChildId(), textField));
        }
      }
    }
  }
View Full Code Here

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

      gridBuilder.newSplitPanel(GridSize.COL50);
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("searchFilter"));
      final TextField<String> searchField = new TextField<String>(InputPanel.WICKET_ID, new PropertyModel<String>(getSearchFilter(),
          "searchString"));
      searchField.add(WicketUtils.setFocus());
      fs.add(new InputPanel(fs.newChildId(), searchField));
      fs.add(new IconPanel(fs.newIconChildId(), IconType.HELP, getString("tooltip.lucene.link")).setOnClickLocation(getRequestCycle(),
          WebConstants.DOC_LINK_HANDBUCH_LUCENE, true), FieldSetIconPosition.TOP_RIGHT);
    }
    {
      gridBuilder.newSplitPanel(GridSize.COL50);
View Full Code Here

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

    fieldSetsPanel = gridBuilder.getPanel();
    for (final ScriptParameter parameter : scriptParameters) {
      final FieldsetPanel fs = gridBuilder.newFieldset(StringUtils.capitalize(parameter.getParameterName()),
          getString("scripting.script.parameter") + " " + (index + 1));
      parameterFieldsets[index] = fs;
      InputPanel inputPanel = null;
      if (parameter.getType() == ScriptParameterType.INTEGER) {
        inputPanel = fs.add(new TextField<Integer>(fs.getTextFieldId(), new PropertyModel<Integer>(parameter, "intValue")));
      } else if (parameter.getType() == ScriptParameterType.STRING) {
        inputPanel = fs.add(new TextField<String>(fs.getTextFieldId(), new PropertyModel<String>(parameter, "stringValue")));
      } else if (parameter.getType() == ScriptParameterType.DECIMAL) {
        inputPanel = fs.add(new TextField<BigDecimal>(fs.getTextFieldId(), new PropertyModel<BigDecimal>(parameter, "decimalValue")));
      } else if (parameter.getType() == ScriptParameterType.DATE || parameter.getType() == ScriptParameterType.TIME_PERIOD) {
        final String property = parameter.getType() == ScriptParameterType.TIME_PERIOD ? "timePeriodValue.fromDate" : "dateValue";
        datePanel1[index] = new DatePanel(fs.newChildId(), new PropertyModel<Date>(parameter, property));
        fs.add(datePanel1[index]);
        if (parameter.getType() == ScriptParameterType.TIME_PERIOD) {
          fs.add(new DivTextPanel(fs.newChildId(), " - "));
          datePanel2[index] = new DatePanel(fs.newChildId(), new PropertyModel<Date>(parameter, "timePeriodValue.toDate"));
          fs.add(datePanel2[index]);
          quickSelectPanel[index] = new QuickSelectPanel(fs.newChildId(), parentPage, "quickSelect:" + index, datePanel1[index]);
          fs.add(quickSelectPanel[index]);
          quickSelectPanel[index].init();
        }
      } else if (parameter.getType() == ScriptParameterType.TASK) {
        final TaskSelectPanel taskSelectPanel = new TaskSelectPanel(fs, new PropertyModel<TaskDO>(parameter, "task"), parentPage, "taskId:"
            + index);
        fs.add(taskSelectPanel);
        taskSelectPanel.init();
        taskSelectPanel.setRequired(true);
      } else if (parameter.getType() == ScriptParameterType.USER) {
        final UserSelectPanel userSelectPanel = new UserSelectPanel(fs.newChildId(), new PropertyModel<PFUserDO>(parameter, "user"),
            parentPage, "userId:" + index);
        fs.add(userSelectPanel);
        userSelectPanel.init();
        userSelectPanel.setRequired(true);
      } else {
        throw new UnsupportedOperationException("Parameter type: " + parameter.getType() + " not supported.");
      }
      if (focusSet == false) {
        if (inputPanel != null) {
          WicketUtils.setFocus(inputPanel.getField());
          focusSet = true;
        }
      }
      index++;
    }
View Full Code Here

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

        posGridBuilder.newSplitPanel(GridSize.COL50, true);
        if (rechnungsPosition != null) {
          // Order
          posGridBuilder.newSubSplitPanel(gridSize); // COL25
          final FieldsetPanel fieldset = posGridBuilder.newFieldset(getString("fibu.auftrag")).setLabelSide(false);
          fieldset.add(new InputPanel(fieldset.newChildId(), new AuftragsPositionFormComponent(InputPanel.WICKET_ID,
              new PropertyModel<AuftragsPositionDO>(position, "auftragsPosition"), false)));
          fieldset.add(new IconPanel(fieldset.newIconChildId(), IconType.GOTO, getString("show")) {
            /**
             * @see org.apache.wicket.markup.html.link.Link#onClick()
             */
 
View Full Code Here

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

      gridBuilder.newSplitPanel(GridSize.COL50);
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("searchFilter"));
      final TextField<String> searchField = new TextField<String>(InputPanel.WICKET_ID, new PropertyModel<String>(getSearchFilter(),
          "searchString"));
      searchField.add(WicketUtils.setFocus());
      fs.add(new InputPanel(fs.newChildId(), searchField));
      // fs.add(new IconPanel(fs.newIconChildId(), IconType.HELP, getString("tooltip.lucene.link")).setOnClickLocation(getRequestCycle(),
      // WebConstants.DOC_LINK_HANDBUCH_LUCENE, true), FieldSetIconPosition.TOP_RIGHT);
    }
    {
      gridBuilder.newSplitPanel(GridSize.COL50);
View Full Code Here

Examples of org.zeroexchange.web.components.form.InputPanel

    public void populateItem(Item<ICellPopulator<T>> cellItem,
            String componentId, IModel<T> rowModel) {
        final Serializable entityId = rowModel.getObject().getId();
        displayedResourcesIds.add(entityId);

        InputPanel inputPanel = new InputPanel(componentId) {

            @Override
            protected Component createControl(String controlId) {
                CheckBox checkbox = new AjaxCheckBox(controlId, new Model<Boolean>(){
                    @Override
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.