/** * @see org.apache.wicket.ajax.markup.html.AjaxLink#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override public void onClick(final AjaxRequestTarget target) { AjaxIconLinkPanel.this.onClick(target); } });
/** * @param id * @param type * @param tooltip */ @SuppressWarnings("serial") public AjaxIconLinkPanel(final String id, final IconType type, final IModel<String> tooltip) { super(id, type, tooltip); setLink(new AjaxLink<Void>(IconLinkPanel.LINK_ID) { /** * @see org.apache.wicket.ajax.markup.html.AjaxLink#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override public void onClick(final AjaxRequestTarget target) { AjaxIconLinkPanel.this.onClick(target); } }); }
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<ContactEntryDO> it = model.getObject().getContactEntries().iterator(); while (it.hasNext() == true) { if (it.next() == newEntryValue) { it.remove(); } } rebuildEntrys(); target.add(mainContainer); } });
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<ContactEntryDO> it = model.getObject().getContactEntries().iterator(); while (it.hasNext() == true) { if (it.next() == entry) { it.remove(); } } rebuildEntrys(); target.add(mainContainer); } });
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<EmailValue> it = emails.iterator(); while (it.hasNext() == true) { if (it.next() == newEmailValue) { it.remove(); } } rebuildEmails(); model.setObject(contactDao.getEmailValuesAsXml(emails)); target.add(mainContainer); } });
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<SocialMediaValue> it = socialMediaValues.iterator(); while (it.hasNext() == true) { if (it.next() == newSocialMediaValue) { it.remove(); } } rebuildSocialMedias(); model.getObject().setSocialMediaValues(contactDao.getSocialMediaValuesAsXml(socialMediaValues)); target.add(mainContainer); } });
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<PhoneValue> it = phones.iterator(); while (it.hasNext() == true) { if (it.next() == phone) { it.remove(); } } rebuildPhones(); model.setObject(contactDao.getPhoneValuesAsXml(phones)); target.add(mainContainer); } });
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<SocialMediaValue> it = socialMediaValues.iterator(); while (it.hasNext() == true) { if (it.next() == socialMediaValue) { it.remove(); } } rebuildSocialMedias(); model.getObject().setSocialMediaValues(contactDao.getSocialMediaValuesAsXml(socialMediaValues)); target.add(mainContainer); } });
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<EmailValue> it = emails.iterator(); while (it.hasNext() == true) { if (it.next() == email) { it.remove(); } } rebuildEmails(); model.setObject(contactDao.getEmailValuesAsXml(emails)); target.add(mainContainer); } });
/** * @see org.projectforge.web.wicket.flowlayout.AjaxIconLinkPanel#onClick(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); final Iterator<PhoneValue> it = phones.iterator(); while (it.hasNext() == true) { if (it.next() == newPhoneValue) { it.remove(); } } rebuildPhones(); model.setObject(contactDao.getPhoneValuesAsXml(phones)); target.add(mainContainer); } });