Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.AbstractBehavior


        form.add( new Label("beanFormIndicatorErrorLabel", new ResourceModel("beanFormError.msg", "An error occurred on the server. Your session may have timed out.")));
       
        beanMetaData.consumeParameter(PARAM_ROWS);
       
        final HiddenField hiddenFocusField = new HiddenField<String>("focusField", new PropertyModel<String>(this, "focusField"));
        hiddenFocusField.add( new AbstractBehavior() {
            @Override
            public void onComponentTag(Component component, ComponentTag tag)
            {
                tag.put("id", "bfFocusField");
                super.onComponentTag(component, tag);
View Full Code Here


    WebMarkupContainer container = new WebMarkupContainer( NAVIGATION_UL );
    add( container );
    container.add( dataView );

    //Adds the big reference
    container.add( new AbstractBehavior() {
      @Override
      public void onComponentTag( @NotNull Component component, @NotNull ComponentTag tag ) {
        if ( dataView.getRowCount() > 6 ) {
          tag.put( "id", "big" );
        } else {
View Full Code Here

    this.locator = locator;

    // add hidden field used for managing current focus
    hidden = new HiddenField<String>("focus-tracker", new Model<String>());

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

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

   * @param fc
   *            form component
   */
  public final void enableFocusTracking(FormComponent<?> fc)
  {
    fc.add(new AbstractBehavior()
    {
      private static final long serialVersionUID = 1L;

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

    // add node component
    Component nodeComponent = newNodeComponent(NODE_COMPONENT_ID, item.getDefaultModel());
    item.add(nodeComponent);

    // add behavior that conditionally adds the "selected" CSS class name
    item.add(new AbstractBehavior()
    {
      private static final long serialVersionUID = 1L;

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

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

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

    }));

    // do distinguish between selected and unselected rows we add an
    // behavior
    // that modifies row css class.
    item.add(new AbstractBehavior()
    {
      private static final long serialVersionUID = 1L;

      /**
       * @see org.apache.wicket.behavior.AbstractBehavior#onComponentTag(org.apache.wicket.
View Full Code Here

    // add node component
    Component nodeComponent = newNodeComponent(NODE_COMPONENT_ID, item.getModel());
    item.add(nodeComponent);

    // add behavior that conditionally adds the "selected" CSS class name
    item.add(new AbstractBehavior()
    {
      private static final long serialVersionUID = 1L;

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

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

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

    this.locator = locator;

    // add hidden field used for managing current focus
    hidden = new HiddenField<String>("focus-tracker", new Model<String>());

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

      @Override
      public void onComponentTag(Component component, ComponentTag tag)
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.