Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.AbstractBehavior


          }
          onJunctionLinkClicked(target, node);
          getTreeGridBody().updateTree(target);
        }
      });
      junctionLink.add(new AbstractBehavior() {
        private static final long serialVersionUID = 1L;

        public void onComponentTag(Component component, ComponentTag tag) {
          if (getTreeGridBody().isNodeExpanded2(node)) {
            tag.put("class", "imxt-junction-open");
View Full Code Here


    add(topToolbarContainer = new RepeatingView("topToolbarContainer"));
    add(bottomToolbarContainer = new RepeatingView("bottomToolbarContainer"));
    add(headerToolbarContainer = new RepeatingView("headerToolbarContainer"));

    // renders the initialization javascript right after the grid itself
    add(new AbstractBehavior() {
      private static final long serialVersionUID = 1L;

      @Override
      public void onRendered(Component component) {
        renderInitializationJavascript(getResponse());
View Full Code Here

        : options;
    this.features = (features == null) ? new ArrayList<Feature>()
        : features;
    this.featureStyles = (featureStyles == null) ? new ArrayList<FeatureStyle>()
        : featureStyles;
    add(new AbstractBehavior() {

      private static final long serialVersionUID = 1L;

      @Override
      public void renderHead(Component c, IHeaderResponse response) {
View Full Code Here

  public ImageCropper(String id, IModel<String> model, final YuiImageCropperSettings settings) {
    super(id, model);

    setOutputMarkupId(true);

    add(new AbstractBehavior() {
      private static final long serialVersionUID = 1L;

      @Override
      public void onRendered(Component component) {
        StringBuffer buffer = new StringBuffer();
View Full Code Here

          pushService.removePushChannelDisconnectedListener(this);
        }
      }
    });

    add(new AbstractBehavior()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public void renderHead(final Component component, final IHeaderResponse response)
View Full Code Here

        if (triggerComponent != null)
            triggerComponent.add(createTriggerBehavior());
    }

    private IBehavior createTriggerBehavior() {
        return new AbstractBehavior() {
            public void onComponentTag(Component component, ComponentTag tag) {
                super.onComponentTag(component, tag);
                tag.put("onclick", getStartEditorScriptName() + "();");
            }
        };
View Full Code Here

    // NOTE: trying to stop page serialization on each update.
    setVersioned(false);

    this.provider = aliasDataProvider;

    add(new AbstractBehavior() {

      @Override
      public void renderHead(Component c, IHeaderResponse response) {
        response.renderCSSReference(CSS);
      }});
View Full Code Here

    if (markersToShow.isEmpty()) {
      log.warn("Empty list provided to GMap2.fitMarkers method.");
      return;
    }

    this.add(new AbstractBehavior() {
      private static final long serialVersionUID = 1L;

      public void renderHead(IHeaderResponse response) {
        StringBuffer buf = new StringBuffer();
        buf.append("var bounds = new GLatLngBounds();\n");
View Full Code Here

      protected int getRowNumber() {
        return -1;
      }
    };
    item.add(row);
    item.add(new AbstractBehavior() {

      private static final long serialVersionUID = 1L;

      @Override
      public void onComponentTag(Component component, ComponentTag tag) {
View Full Code Here

   
    if(getParent() != null) {
      /*
       * Add the css to our parent incase the bar is not initially visible.
       */
      getParent().add(new AbstractBehavior() {

        /**
         *
         */
        private static final long serialVersionUID = 1L;
View Full Code Here

TOP

Related Classes of org.apache.wicket.behavior.AbstractBehavior

Copyright © 2018 www.massapicom. 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.