592593594595596597598599600601602
this.maxZoom = level >= 0 ? level : 0; AjaxRequestTarget target = getRequestCycle().find(AjaxRequestTarget.class); if (target != null && findPage() != null) { target.appendJavaScript(getJSsetMaxZoom(maxZoom)); } } } /**
620621622623624625626627628629630
this.center = center; AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class); if (target != null && findPage() != null) { target.appendJavaScript(getJSsetCenter(center)); } } } /**
641642643644645646647648649650651
this.center = center; AjaxRequestTarget target = getRequestCycle().find(AjaxRequestTarget.class); if (target != null && findPage() != null) { target.appendJavaScript(getJSpanTo(center)); } } } public void setMarkerCluster(GMarkerCluster markerCluster)
122123124125126127128129130131132
latLng = null; AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class); if (target != null) { target.appendJavaScript(super.getJSremove()); } } public GLatLng getLatLng() {
150151152153154155156157158159160
events.put(event, handler); AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class); if (target != null && getPage() != null) { target.appendJavaScript(event.getJSadd(this)); } return this; }
166167168169170171172173174175176
functions.put(event, jsFunction); AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class); if (target != null && getPage() != null) { target.appendJavaScript(event.getJSadd(this, functions.get(event))); } return this; }
206207208209210211212213214215216
events.remove(event); AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class); if (target != null) { target.appendJavaScript(event.getJSclear(this)); } return this; }
979899100101102103104105106107
AjaxRequestTarget target = getRequestCycle().find(AjaxRequestTarget.class); if (target != null) { CharSequence callbackScript = getCallbackScript(component); target.appendJavaScript(callbackScript); } } /** * {@inheritDoc}
138139140141142143144145146147148
grid.resetSelectedItems(); dataSource.storeToPageParameters(); grid.markAllItemsDirty(); grid.update(); } else { target.appendJavaScript("alert('" + getString("noItemsSelected") + "');"); } } @Override public boolean isEnabled() {
149150151152153154155156157158159