List of usage examples for org.apache.wicket Component getMarkupId
public String getMarkupId(boolean createIfDoesNotExist)
From source file:org.opensingular.lib.wicket.util.behavior.CKEditorInitBehaviour.java
License:Apache License
@Override public String getScript(Component component) { return String.format(getScriptString(), component.getMarkupId(true)); }
From source file:org.opensingular.lib.wicket.util.behavior.PicklistInitBehaviour.java
License:Apache License
@Override public String getScript(Component component) { final String addAllId = UUID.randomUUID().toString(); final String removeAllId = UUID.randomUUID().toString(); String jsonConfig = ""; jsonConfig += "selectableHeader:" + stringfy(String.format(BTN_ADD, addAllId)); jsonConfig += ","; jsonConfig += "selectionHeader:" + stringfy(String.format(BTN_REMOVE, removeAllId)); final String markupId = component.getMarkupId(true); String script = "$('#" + markupId + "').multiSelect({" + jsonConfig + "});"; script += getOnClickFunction(markupId, addAllId, "select_all"); script += getOnClickFunction(markupId, removeAllId, "deselect_all"); return script; }
From source file:org.opensingular.lib.wicket.util.behavior.SlimScrollBehaviour.java
License:Apache License
@Override public String getScript(Component component) { return String.format("$('#%s').slimScroll({});", component.getMarkupId(true)); }
From source file:org.opensingular.lib.wicket.util.maps.MarkableGoogleMapsPanel.java
License:Apache License
private String stringfyId(Component c) { return "'" + c.getMarkupId(true) + "'"; }
From source file:wicketdnd.util.MarkupIdVisitor.java
License:Apache License
public void component(Component component, final IVisit<Component> visit) { if (id.equals(component.getMarkupId(false))) { visit.stop(component);//from ww w .ja v a 2 s . c o m } }