de.agilecoders.wicket.extensions.markup.html.bootstrap.icon.FontAwesome5IconType Java Examples
The following examples show how to use
de.agilecoders.wicket.extensions.markup.html.bootstrap.icon.FontAwesome5IconType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RoomForm.java From openmeetings with Apache License 2.0 | 6 votes |
@Override protected void populateItem(final ListItem<Client> item) { Client c = item.getModelObject(); BootstrapAjaxLink<String> del = new BootstrapAjaxLink<>("clientDelete", Buttons.Type.Outline_Danger) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { kickUser(item.getModelObject()); updateClients(target); } }; del.setIconType(FontAwesome5IconType.times_s) .add(newOkCancelDangerConfirm(this, getString("833"))); item.add(new Label("clientId", "" + c.getUserId())) .add(new Label("clientLogin", "" + c.getUser().getLogin())) .add(del); }
Example #2
Source File: OAuthForm.java From openmeetings with Apache License 2.0 | 6 votes |
@Override protected void populateItem(final ListItem<Map.Entry<String, String>> item) { final Map.Entry<String, String> entry = item.getModelObject(); BootstrapAjaxLink<String> del = new BootstrapAjaxLink<>("delete", Buttons.Type.Outline_Danger) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { OAuthServer s = OAuthForm.this.getModelObject(); s.getMapping().remove(entry.getKey()); updateMapping(); target.add(attrsContainer); } }; del.setIconType(FontAwesome5IconType.times_s) .add(newOkCancelDangerConfirm(this, getString("833"))); item.add(new Label("key", Model.of(entry.getKey()))) .add(new Label("value", Model.of(entry.getValue()))) .add(del); }
Example #3
Source File: AbstractOmDateTimePicker.java From openmeetings with Apache License 2.0 | 6 votes |
public AbstractOmDateTimePicker(String id, IModel<T> model, String format) { super(id, model, new DatetimePickerConfig() //.useLocale(WebSession.get().getLocale().toLanguageTag()) .withFormat(patch(format)) .with(new DatetimePickerIconConfig() .useDateIcon(FontAwesome5IconType.calendar_s) .useTimeIcon(FontAwesome5IconType.clock_s) .useUpIcon(FontAwesome5IconType.arrow_up_s) .useDownIcon(FontAwesome5IconType.arrow_down_s) .usePreviousIcon(FontAwesome5IconType.arrow_left_s) .useNextIcon(FontAwesome5IconType.arrow_right_s) .useTodayIcon(FontAwesome5IconType.calendar_check_s) .useClearIcon(FontAwesome5IconType.eraser_s) .useCloseIcon(FontAwesome5IconType.times_s)) ); setRenderBodyOnly(false); }
Example #4
Source File: RoomMenuPanel.java From openmeetings with Apache License 2.0 | 5 votes |
@Override protected void onInitialize() { exitMenuItem = new RoomMenuItem(getString("308"), getString("309"), FontAwesome5IconType.sign_out_alt_s) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { chatDao.closeMessages(getUserId()); exit(target); } }; filesMenu = new RoomMenuItem(getString("245"), null, false); actionsSubMenu.init(); pollsSubMenu.init(); add((menuPanel = new MenuPanel("menu", getMenu())).setVisible(isVisible())); add(askBtn.add(AttributeModifier.replace(ATTR_TITLE, getString("84")))); Label demo = new Label("demo", Model.of("")); Room r = room.getRoom(); add(demo.setVisible(r.isDemoRoom() && r.getDemoTime() != null && room.getRoom().getDemoTime().intValue() > 0)); if (demo.isVisible()) { demo.add(new OmTimerBehavior(room.getRoom().getDemoTime().intValue(), "637") { private static final long serialVersionUID = 1L; @Override protected void onTimer(int remain) { getComponent().add(AttributeModifier.replace(ATTR_TITLE, getText(getString("637"), remain))); } @Override protected void onFinish(AjaxRequestTarget target) { exit(target); } }); } super.onInitialize(); }
Example #5
Source File: Captcha.java From openmeetings with Apache License 2.0 | 5 votes |
@Override protected void onInitialize() { super.onInitialize(); add(captchaText.setLabel(new ResourceModel("captcha.text")).add(new IValidator<String>() { private static final long serialVersionUID = 1L; @Override public void validate(IValidatable<String> validatable) { if (!randomText.equals(validatable.getValue())) { validatable.error(new ValidationError(getString("bad.captcha.text"))); } } }).setOutputMarkupId(true)); add(new BootstrapAjaxLink<>("refresh", Model.of(""), Buttons.Type.Outline_Info, new ResourceModel("lbl.refresh")) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { captchaImageResource.invalidate(); target.add(captcha); } @Override protected Icon newIcon(String markupId) { return new Icon(markupId, FontAwesome5IconType.sync_s); } }); }
Example #6
Source File: ConfirmationDialog.java From openmeetings with Apache License 2.0 | 5 votes |
private BootstrapAjaxLink<String> getOkButton() { if (okButton == null) { okButton = new BootstrapAjaxLink<>("button", null, Buttons.Type.Outline_Danger, new ResourceModel("54")) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { close(target); onConfirm(target); } }; okButton.setIconType(FontAwesome5IconType.exclamation_triangle_s); } return okButton; }
Example #7
Source File: CuratorWorkflowActionBarItemGroup.java From webanno with Apache License 2.0 | 5 votes |
public String getStateClass() { AnnotatorState state = page.getModelObject(); if (curationDocumentService.isCurationFinished(state.getDocument())) { return FontAwesome5IconType.lock_s.cssClassName(); } else { return FontAwesome5IconType.lock_open_s.cssClassName(); } }
Example #8
Source File: AnnotatorWorkflowActionBarItemGroup.java From webanno with Apache License 2.0 | 5 votes |
public String getStateClass() { AnnotatorState state = page.getModelObject(); if (documentService.isAnnotationFinished(state.getDocument(), state.getUser())) { return FontAwesome5IconType.lock_s.cssClassName(); } else { return FontAwesome5IconType.lock_open_s.cssClassName(); } }
Example #9
Source File: JEXLTransformerWidget.java From syncope with Apache License 2.0 | 4 votes |
@Override protected Icon getIcon(final String iconid) { return new Icon(iconid, FontAwesome5IconType.redo_s); }
Example #10
Source File: ItemTransformerWidget.java From syncope with Apache License 2.0 | 4 votes |
@Override protected Icon getIcon(final String iconid) { return new Icon(iconid, FontAwesome5IconType.magic_s); }
Example #11
Source File: RemediationsWidget.java From syncope with Apache License 2.0 | 4 votes |
@Override protected Icon getIcon(final String iconid) { return new Icon(iconid, FontAwesome5IconType.medkit_s); }
Example #12
Source File: UserRequestFormsWidget.java From syncope with Apache License 2.0 | 4 votes |
@Override protected Icon getIcon(final String iconid) { return new Icon(iconid, FontAwesome5IconType.handshake_r); }