Results 1 to 3 of 3

Thread: listview display row / column

  1. #1

    Default listview display row / column

    Hello, i want to display a list of thumb.

    I saw the example and i'm based on them.

    You can see in attachment the listview-mine is my result (based on example source code) and the "real" source code of the example for a dnd between a tree and a listview.

    In fact, the list item are not next to the other

    I have change in the source code :

    Code:
    final ExampleServiceAsync service = (ExampleServiceAsync) GWT.create(ExampleService.class);  
             ServiceDefTarget endpoint = (ServiceDefTarget) service;  
             String moduleRelativeURL = GWT.getModuleBaseURL() + "service";  
             endpoint.setServiceEntryPoint(moduleRelativeURL);  
           
             RpcProxy proxy = new RpcProxy() {  
               @Override  
               protected void load(Object loadConfig, AsyncCallback callback) {  
                 service.getPhotos(callback);  
               }  
             };
    By :
    Code:
    MemoryProxy<List<ListThumbItem>> proxy = new MemoryProxy<List<ListThumbItem>>(getThumbs());
    And getThumbs return a List<ListThumbItem>. Where ListThumbItem is :
    Code:
    public class ListThumbItem implements BeanModelTag, Serializable
    {
        private static final long serialVersionUID = -3977830532355314498L;
    
        private String name;
        private long size;
        private String path;
    
        public ListThumbItem(String theName, String thePath)
        {
            path = thePath;
            name = theName;
        }
    
        public String getPath()
        {
            return path;
        }
    
        public void setPath(String path)
        {
            this.path = path;
        }
    
        public String getName()
        {
            return name;
        }
    
        public void setName(String name)
        {
            this.name = name;
        }
    
        public long getSize()
        {
            return size;
        }
    
        public void setSize(long size)
        {
            this.size = size;
        }
    }
    Do you have some idea of why the list is not diplayed correctly ?

    Thanks a lot.
    Attached Images Attached Images

  2. #2

    Default same problem

    I have the same problem

  3. #3

    Default

    Hello, after some time to find a solution, i found !!!!

    This comportement is because we don't use the css...

    You "just" need to put the css is copy (it is a gxt css : listview.css join with examples), link this in your html page.
    And make sure to copy the original code source (you can modify access to data, how get them, its ok) but have the template with good id, and the Id : setId("images-view"); for your list.

    And it will be ok.

    V

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •