Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.AbstractBehavior


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

      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.Component,
View Full Code Here

            }

            @Override
            protected void onRowPopulated(WebMarkupContainer rowComponent) {
                super.onRowPopulated(rowComponent);
                rowComponent.add(new AbstractBehavior() {
                    @Override
                    public void onComponentTag(Component component, ComponentTag tag) {
                        BrixNode node = getNode(component.getDefaultModel());
                        if (!isNodeEnabled((JcrTreeNode) component.getDefaultModelObject()) || node == null) {
                            tag.put("class", "disabled");
View Full Code Here

                };
            }

            @Override
            protected void populateItem(Item<String> item) {
                item.add(new AbstractBehavior() {
                    private Item<?> item;

                    @Override
                    public void bind(Component component) {
                        item = (Item<?>) component;
View Full Code Here

                                target.addComponent(table);
                            }
                        });
                    }

                    item.add(new AbstractBehavior() {

                        public void onComponentTag(Component component, ComponentTag tag) {
                            if (property == DEFAULT_VALUE_EXPRESSION) {
                                tag.put("style", "width:99%");
                            } else {
View Full Code Here

            org.apache.wicket.markup.html.list.ListItem item) {
        if (property == RENDERING_ORDER) {
            Label label = (Label) item.get(0);
            OddEvenItem rowContainer = (OddEvenItem) item.getParent().getParent();
            label.setDefaultModel(new Model(rowContainer.getIndex() + 1));
            item.add(new AbstractBehavior() {

                public void onComponentTag(Component component, ComponentTag tag) {
                    tag.put("style", "width:1%");
                }
            });
View Full Code Here

                nameTextField.setEnabled(false);
                uploadForm.setEnabled(false);

                editor.add(new AttributeAppender("class", new Model("disabled"), " "));
                get("validate").add(new AttributeAppender("style", new Model("display:none;"), " "));
                add(new AbstractBehavior() {
                    @Override
                    public void renderHead(IHeaderResponse response) {
                        response.renderOnLoadJavascript(
                            "document.getElementById('mainFormSubmit').style.display = 'none';");
                        response.renderOnLoadJavascript(
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

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.