Package org.apache.wicket.ajax

Examples of org.apache.wicket.ajax.AjaxRequestTarget.appendJavascript()


            this.maxZoom = level >= 0 ? level : 0;

            AjaxRequestTarget target = getRequestCycle().find(AjaxRequestTarget.class);
            if (target != null && findPage() != null)
            {
                target.appendJavaScript(getJSsetMaxZoom(maxZoom));
            }
        }
    }

    /**
 
View Full Code Here


            this.center = center;

            AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
            if (target != null && findPage() != null)
            {
                target.appendJavaScript(getJSsetCenter(center));
            }
        }
    }

    /**
 
View Full Code Here

            this.center = center;

            AjaxRequestTarget target = getRequestCycle().find(AjaxRequestTarget.class);
            if (target != null && findPage() != null)
            {
                target.appendJavaScript(getJSpanTo(center));
            }
        }
    }
   
    public void setMarkerCluster(GMarkerCluster markerCluster)
View Full Code Here

        latLng = null;

        AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
        if (target != null)
        {
            target.appendJavaScript(super.getJSremove());
        }
    }

    public GLatLng getLatLng()
    {
View Full Code Here

        events.put(event, handler);

        AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
        if (target != null && getPage() != null)
        {
            target.appendJavaScript(event.getJSadd(this));
        }

        return this;
    }
View Full Code Here

        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;
    }
View Full Code Here

        events.remove(event);

        AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
        if (target != null)
        {
            target.appendJavaScript(event.getJSclear(this));
        }

        return this;
    }
View Full Code Here

      AjaxRequestTarget target = getRequestCycle().find(AjaxRequestTarget.class);
      if (target != null)
      {
        CharSequence callbackScript = getCallbackScript(component);
        target.appendJavaScript(callbackScript);
      }
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

                    grid.resetSelectedItems();
                    dataSource.storeToPageParameters();
                    grid.markAllItemsDirty();
                    grid.update();
                } else {
                    target.appendJavaScript("alert('" + getString("noItemsSelected") + "');");
                }
            }

            @Override
            public boolean isEnabled() {
View Full Code Here

                    grid.resetSelectedItems();
                    dataSource.storeToPageParameters();
                    grid.markAllItemsDirty();
                    grid.update();
                } else {
                    target.appendJavaScript("alert('" + getString("noItemsSelected") + "');");
                }
            }

            @Override
            public boolean isEnabled() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.