Package DisplayProject.controls

Examples of DisplayProject.controls.ScrollList$ScrollListCellRenderer


              Dimension minimum = super.getMinimumSize();
             
              if (minimum == null) {
                minimum = new Dimension(10,10);
              }
              ScrollList scrollList = (ScrollList)underlyingComponent;
              List<ListElement> items = scrollList.getElementList();
             
              // TF:19/07/2009:The size for an empty list or a null list is 80 pixels in Forte, including the scrollbar
              if (items == null || items.size() == 0) {
                minimum.width = 80;
              }
              else {
                minimum.width = scrollList.getWidthForData();
                if (this.verticalScrollBar.isVisible()) {
                  minimum.width += this.verticalScrollBar.getWidth();
                }
              }
//              minimum.width = Math.max(minimum.width, ((ScrollList)((JViewport)this.getComponent(0)).getComponent(0)).getWidthForModel());
View Full Code Here


                    ScrollBar.getMinimumValue(bar),
                    ScrollBar.getMaximumValue(bar),
                    ScrollBar.getViewSize(bar));
              }
              else if (newComponent instanceof ScrollList) {
                ScrollList sl = (ScrollList)newComponent;
                ScrollList orig = (ScrollList)origComponent;
                topLevelManager.bindComponent(sl, BindingManager.getDataObjectPath(origComponent),
                    ElementList.get(orig),
                    orig.getSelectionModel().getSelectionMode() == ListSelectionModel.SINGLE_SELECTION);
              }
              else {
                topLevelManager.bindComponent(newComponent, BindingManager.getDataObjectPath(origComponent));
              }
            }
View Full Code Here

    private ListFieldFactory() {
        super();
    }

    public static ScrollList newScrollList(){
        ScrollList jl = new ScrollList();
        return jl;
    }
View Full Code Here

              Dimension minimum = super.getMinimumSize();
             
              if (minimum == null) {
                minimum = new Dimension(10,10);
              }
              ScrollList scrollList = (ScrollList)underlyingComponent;
              List<ListElement> items = scrollList.getElementList();
             
              // TF:19/07/2009:The size for an empty list or a null list is 80 pixels in Forte, including the scrollbar
              if (items == null || items.size() == 0) {
                minimum.width = 80;
              }
              else {
                minimum.width = scrollList.getWidthForData();
                if (this.verticalScrollBar.isVisible()) {
                  minimum.width += this.verticalScrollBar.getWidth();
                }
              }
//              minimum.width = Math.max(minimum.width, ((ScrollList)((JViewport)this.getComponent(0)).getComponent(0)).getWidthForModel());
View Full Code Here

TOP

Related Classes of DisplayProject.controls.ScrollList$ScrollListCellRenderer

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.