@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()); } });
@Override protected void onModelSelected(final AjaxRequestTarget target, final SkillDO skill) { super.onModelSelected(target, skill); if (target != null) { target.add(SkillRatingEditForm.this.fs.getFieldset()); } } };
/** * mark panel, if content already exist. * * @param panel */ private void setMark(final FieldsetPanel panel, final boolean paint) { if (paint == true) { panel.getFieldset().get(0).add(new AttributeModifier("style", new Model<String>( "background: #FCF8E3; border: 1px solid #FBEED5; border-radius: 4px; padding-left: 5px; padding-right: 10px; padding-bottom: 4px;"))); } else { panel.getFieldset().get(0).add(new AttributeModifier("style", new Model<String>("border: 1px solid whiteSmoke; border-radius: 4px; padding-left: 5px; padding-right: 10px; padding-bottom: 4px;"))); } }
/** * Hook method which is called, when the skill is set by auto complete field * * @param target * @param skillDo */ protected void onModelSelected(final AjaxRequestTarget target, final SkillDO skillDo) { target.add(fieldsetPanel.getFieldset()); target.add(divContainer); target.add(userselectContainer); }
/** * Hook method which is called, when the task is set by auto complete field * * @param target * @param taskDo */ protected void onModelSelected(final AjaxRequestTarget target, final TaskDO taskDo) { target.add(fieldsetPanel.getFieldset()); target.add(divContainer); target.add(userselectContainer); }
/** * @see org.projectforge.web.task.TaskSelectPanel#onModelSelected(org.apache.wicket.ajax.AjaxRequestTarget, * org.projectforge.business.task.TaskDO) */ @Override protected void onModelSelected(final AjaxRequestTarget target, final TaskDO taskDO) { refresh(); super.onModelSelected(target, taskDO); if (cost2ChoiceFieldset != null) { target.add(cost2ChoiceFieldset.getFieldset()); } } };
visited.add(component); fsPanel.getFieldset().add(new ErrorHighlightBehavior());
private boolean appendFieldset(GridBuilder gridBuilder, final String label, final String value, final String... labelParameters) { if (StringUtils.isBlank(value) == true) { return false; } final FieldsetPanel fs = gridBuilder.newFieldset(I18nHelper.getLocalizedMessage(label, (Object[]) labelParameters)).suppressLabelForWarning(); DivTextPanel divTextPanel = new DivTextPanel(fs.newChildId(), value); WebMarkupContainer fieldset = fs.getFieldset(); fieldset.add(AttributeAppender.append("class", "vacationPanel")); if (label.contains("vacation.subtotal") || label.contains("vacation.availablevacation")) { WebMarkupContainer fieldsetLabel = (WebMarkupContainer) fieldset.get("label"); WebMarkupContainer fieldsetControls = (WebMarkupContainer) fieldset.get("controls"); fieldsetLabel.add(AttributeModifier.replace("class", "control-label-bold")); fieldsetControls.add(AttributeModifier.replace("class", "controls-bold")); } fs.add(divTextPanel); return true; } }
public SkillSelectPanel(final FieldsetPanel fieldsetPanel, final IModel<SkillDO> model, final ISelectCallerPage caller, final String selectProperty) { super(fieldsetPanel.newChildId(), model, caller, selectProperty); this.fieldsetPanel = fieldsetPanel; fieldsetPanel.getFieldset().setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true); SkillDO skill = model.getObject(); if (Hibernate.isInitialized(skill) == false) { skill = getSkillTree().getSkillById(skill.getId()); model.setObject(skill); } divContainer = new WebMarkupContainer("div") { private static final long serialVersionUID = -8150112323444983335L; /** * @see org.apache.wicket.Component#isVisible() */ @Override public boolean isVisible() { // display only, if we are not in ajax skill select mode return ajaxSkillSelectMode == false; } }; divContainer.setOutputMarkupId(true); divContainer.setOutputMarkupPlaceholderTag(true); add(divContainer); ajaxSkillSelectMode = false; }
public TaskSelectPanel(final FieldsetPanel fieldsetPanel, final IModel<TaskDO> model, final ISelectCallerPage caller, final String selectProperty) { super(fieldsetPanel.newChildId(), model, caller, selectProperty); this.fieldsetPanel = fieldsetPanel; fieldsetPanel.getFieldset().setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true); TaskDO task = model.getObject(); if (Hibernate.isInitialized(task) == false) { task = getTaskTree().getTaskById(task.getId()); model.setObject(task); } divContainer = new WebMarkupContainer("div") { private static final long serialVersionUID = -8150112323444983335L; /** * @see org.apache.wicket.Component#isVisible() */ @Override public boolean isVisible() { // display only, if we are not in ajax task select mode return ajaxTaskSelectMode == false; } }; divContainer.setOutputMarkupId(true); divContainer.setOutputMarkupPlaceholderTag(true); add(divContainer); ajaxTaskSelectMode = false; }
startDateField.getFieldset().setOutputMarkupPlaceholderTag(true); startDateField.getFieldset().setOutputMarkupId(true); startDateField.getFieldset().setOutputMarkupId(true); startDateTimePanel = new DateTimePanel(startDateField.newChildId(), new PropertyModel<Date>(data, "startDate"), (DateTimePanelSettings) DateTimePanelSettings.get().withSelectStartStopTime(true) endDateField.getFieldset().setOutputMarkupPlaceholderTag(true); endDateField.getFieldset().setOutputMarkupId(true); endDateField.getFieldset().setOutputMarkupId(true); endDateTimePanel = new DateTimePanel(endDateField.newChildId(), new PropertyModel<Date>(data, "endDate"), (DateTimePanelSettings) DateTimePanelSettings.get().withSelectStartStopTime(true)
fs.getFieldset().setOutputMarkupId(true); final LabelValueChoiceRenderer<SkillRating> ratingChoiceRenderer = new LabelValueChoiceRenderer<SkillRating>(this, SkillRating.values());
fs.getFieldset().setOutputMarkupId(true); skillSelectPanel.init(); skillSelectPanel.setRequired(true); fs.getFieldset().setOutputMarkupId(true); final LabelValueChoiceRenderer<SkillRating> ratingChoiceRenderer = new LabelValueChoiceRenderer<SkillRating>(this, SkillRating.values());
frequencyChoice.setNullValid(false); recurrenceFieldset.add(frequencyChoice); recurrenceFieldset.getFieldset().setOutputMarkupId(true); frequencyChoice.add(new AjaxFormComponentUpdatingBehavior("change") panel.getLabel().setEscapeModelStrings(false); recurrenceIntervalFieldset.add(panel); recurrenceIntervalFieldset.getFieldset().setOutputMarkupId(true); panel.getLabel().setEscapeModelStrings(false); recurrenceWeekIntervalFieldset.add(panel); recurrenceWeekIntervalFieldset.getFieldset().setOutputMarkupId(true); addNewDayButtons(); recurrenceMonthIntervalFieldset.getFieldset().setOutputMarkupId(true); modeOneDropDownChoiceMonth.setNullValid(false).setOutputMarkupId(true); recurrenceMonthModeSecondFieldset.add(modeOneDropDownChoiceMonth); recurrenceMonthModeSecondFieldset.getFieldset().setOutputMarkupId(true); modeTwoDropDownChoiceMonth.setNullValid(false).setOutputMarkupId(true); recurrenceMonthModeSecondFieldset.add(modeTwoDropDownChoiceMonth); recurrenceMonthModeSecondFieldset.getFieldset().setOutputMarkupId(true); panel.getLabel().setEscapeModelStrings(false); recurrenceYearIntervalFieldset.add(panel); recurrenceYearIntervalFieldset.getFieldset().setOutputMarkupId(true); modeOneDropDownChoiceYear.setNullValid(false).setOutputMarkupId(true);
fsExternalSubscriptionUrl.getFieldset().setOutputMarkupId(true); fsExternalSubscriptionUrl.getFieldset().setOutputMarkupPlaceholderTag(true); fsExternalSubscriptionUrl.getFieldset().setVisible(data.isExternalSubscription() == true); fsExternalSubscriptionUrl.addHelpIcon(new ResourceModel("plugins.teamcal.externalsubscription.label.tooltip"), new ResourceModel( fsExternalSubscriptionInterval.getFieldset().setOutputMarkupId(true); fsExternalSubscriptionInterval.getFieldset().setOutputMarkupPlaceholderTag(true); fsExternalSubscriptionInterval.getFieldset().setVisible(data.isExternalSubscription() == true);
fs.getFieldset().setOutputMarkupId(true); if (getSkillTree().isRootNode(data) == true) { fs.setVisible(false);
cost2ChoiceFieldset.getFieldset().setOutputMarkupId(true); cost2ChoiceFieldset.getFieldset().setOutputMarkupPlaceholderTag(true); cost2List = getTaskTree().getKost2List(data.getTaskId()); final LabelValueChoiceRenderer<Integer> cost2ChoiceRenderer = getCost2LabelValueChoiceRenderer(
"parentTaskId"); fs.add(parentTaskSelectPanel); fs.getFieldset().setOutputMarkupId(true); parentTaskSelectPanel.init(); if (getTaskTree().isRootNode(data) == false) {