Examples of IndicatingAjaxFallbackLink


Examples of org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxFallbackLink

                File file = (File) item.getModelObject();
                boolean last = item.getIndex() == getList().size() - 1;
               
                // the link to the current path item
                Label name = new Label("pathItem", file.getName() + "/");
                Link link = new IndicatingAjaxFallbackLink("pathItemLink", item
                        .getModel()) {

                    @Override
                    public void onClick(AjaxRequestTarget target) {
                        pathItemClicked((File) getModelObject(), target);
                    }

                };
                link.add(name);
                item.add(link);
                link.setEnabled(!last);
            }

        });
    }
View Full Code Here

Examples of org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxFallbackLink

                // odd/even alternate style
                item.add(new SimpleAttributeModifier("class",
                        item.getIndex() % 2 == 0 ? "even" : "odd"));
               
                // navigation/selection links
                AjaxFallbackLink link = new IndicatingAjaxFallbackLink("nameLink") {

                    @Override
                    public void onClick(AjaxRequestTarget target) {
                        linkNameClicked((File) item.getModelObject(), target);
                    }
                   
                };
                link.add(new Label("name", item.getModel()) {
                    @Override
                    public IConverter getConverter(Class type) {
                        return FILE_NAME_CONVERTER;
                    }
                });
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.