Package DisplayProject

Examples of DisplayProject.OutlineColumnDesc


        qq__ProductOF = value;
        this.qq_Listeners.firePropertyChange("qq__ProductOF", oldValue, value);
    }
    public OutlineColumnDesc getqq__ProductOF_DVNodeText() {
        if (qq__ProductOF_DVNodeText == null) {
            qq__ProductOF_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Text", 0);
        }
        return qq__ProductOF_DVNodeText;
    }
View Full Code Here


      if (this.table.getDragEnabled() && col.isVisible()) {
        state = Constants.FS_DRAG;
      }

      // TF:19/06/2008:Split this out to a separate method
        OutlineColumnDesc desc = new OutlineColumnDesc(col.getAlignment(),
                false,
                false,
                // TF:19/06/2008:The max characters actually reflects the current width
                //col.getMaxCharacters(),
                UIutils.pixelsToCols((int)(col.getWidth() / UIutils.FORTE_COLUMNS_SCALING_FACTOR), this.table),
                col.getName(),
                col.getSizePolicy(),
                state,
                (String)col.getHeaderValue(),
                col.getTitleMsgNumber());
        desc.setActualWidth(col.getWidth());
       
        if (pSetArrayColLink) {
          desc.setArrayColumn(col);
        }
       
        return desc;
    }
View Full Code Here

            // Add new labels header labels
            int columnCounter = 0;
            int lastVisibleColumn = this.getLastVisibleColumn();
            boolean isFirstVisible = true;
            for (int i=0; i<this.columns.size(); i++) {
                OutlineColumnDesc colDec = (OutlineColumnDesc)this.columns.get(i);
                if (colDec.getState() != Constants.FS_INVISIBLE) {
                  String columnName = colDec.getTitle().asString();
                  gbc = new GridBagConstraints();

                  // CraigM:16/12/2008 - Cater for the fact that the control space pad is on the right of the first column
                  if (isFirstVisible) {
                    gbc.gridx = 0;
                    isFirstVisible = false;
                  }
                  else {
                    gbc.gridx = columnCounter+1;
                  }
                  gbc.gridy = 0;

                  // The last label fills up the rest of the space
                  if (i == lastVisibleColumn) {
                    gbc.weightx = 1;
                  }
                  gbc.anchor = GridBagConstraints.WEST;
                  gbc.insets = new Insets(0,0,0,OutlineField.cCOLUMN_SPACING); // Put a gap between the columns

                  JLabel headerLabel = new JLabel(columnName);
                  if (this.titleFont != null){
                      headerLabel.setFont(this.titleFont);
                  }
                  // Set the column alignment
                  switch (colDec.getAlignment()) {
                      case Constants.TA_RIGHT:
                          headerLabel.setHorizontalAlignment(SwingConstants.RIGHT);
                          break;
                      case Constants.TA_CENTER:
                          headerLabel.setHorizontalAlignment(SwingConstants.CENTER);
View Full Code Here

        }

        // Loop through each column
        int columnCounter = 0;
        for (int i=0; i<this.columns.size(); i++) {
            OutlineColumnDesc colDesc = (OutlineColumnDesc)this.columns.get(i);
            if (colDesc.getState() != Constants.FS_INVISIBLE) {
              // If they have a fixed width, then it's easy
              if (colDesc.getSizePolicy() == Constants.FP_FIXED) {
                  // CraigM:02/07/2008 - Make sure the header is still fully visible (Forte did this)
                  this.columnSizes[i] = Math.max(this.headerLabelSizes[i], (int)(OUTLINE_AVG_CHAR_SCALING_FACTOR * UIutils.colsToPixels(colDesc.getMaxCharacters(), this)));
              }
 
              // Otherwise we need to look at the data in the columns to work out the size
              else {
                  if (this.showHeader) {
View Full Code Here

        qq__ProductOF = value;
        this.qq_Listeners.firePropertyChange("qq__ProductOF", oldValue, value);
    }
    public OutlineColumnDesc getqq__ProductOF_DVNodeText() {
        if (qq__ProductOF_DVNodeText == null) {
            qq__ProductOF_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Text", 0);
        }
        return qq__ProductOF_DVNodeText;
    }
View Full Code Here

            qq_bList = value;
            this.qq_Listeners.firePropertyChange("qq_bList", oldValue, value);
        }
        public OutlineColumnDesc getqq_bList_DVNodetext() {
            if (qq_bList_DVNodetext == null) {
                qq_bList_DVNodetext = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 8, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Name", 0);
            }
            return qq_bList_DVNodetext;
        }
View Full Code Here

            }
            return qq_bList_DVNodetext;
        }
        public OutlineColumnDesc getqq_bList_Price() {
            if (qq_bList_Price == null) {
                qq_bList_Price = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 8, "price", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Price", 0);
            }
            return qq_bList_Price;
        }
View Full Code Here

        qq_aOutlineField = value;
        this.qq_Listeners.firePropertyChange("qq_aOutlineField", oldValue, value);
    }
    public OutlineColumnDesc getqq_aOutlineField_DVNodeText() {
        if (qq_aOutlineField_DVNodeText == null) {
            qq_aOutlineField_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "File Name", 0);
        }
        return qq_aOutlineField_DVNodeText;
    }
View Full Code Here

        }
        return qq_aOutlineField_DVNodeText;
    }
    public OutlineColumnDesc getqq_aOutlineField_Extension() {
        if (qq_aOutlineField_Extension == null) {
            qq_aOutlineField_Extension = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "extension", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Extension", 0);
        }
        return qq_aOutlineField_Extension;
    }
View Full Code Here

        }
        return qq_aOutlineField_Extension;
    }
    public OutlineColumnDesc getqq_aOutlineField_Size() {
        if (qq_aOutlineField_Size == null) {
            qq_aOutlineField_Size = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "size", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Size", 0);
        }
        return qq_aOutlineField_Size;
    }
View Full Code Here

TOP

Related Classes of DisplayProject.OutlineColumnDesc

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.