Package com.jidesoft.list

Examples of com.jidesoft.list.GroupList


   
    // build help
    final HelpViewer h = new HelpViewer(helpID);
   
    // build list
    final GroupList gl = new GroupList(listModel);
    gl.setCellRenderer(new IconRenderer());
    gl.setLayoutOrientation(JList.HORIZONTAL_WRAP);
    gl.addListSelectionListener(new ListSelectionListener() {
     
      @Override public void valueChanged(ListSelectionEvent lse) {
        if (lse.getValueIsAdjusting()) {
          return;
        }
       
        // update help
        h.setId(((INewFormElement) gl.getSelectedValue()).getHelpID());
       
      }
    });
   
    // build layout
    JPanel left = new JPanel(new BorderLayout());
    left.add(new YHeader(title, icon), BorderLayout.NORTH);
    left.add(gl, BorderLayout.CENTER);
   
    // show
    if (YDialog.show(title, YFactory.createHorizontPanel(left, h, "newform." + helpID), true) == false) {
      return null;
    }
   
    // add it?
    if (gl.getSelectedValue() != null) {
      return (INewFormElement) gl.getSelectedValue();
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of com.jidesoft.list.GroupList

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.