Package DisplayProject

Examples of DisplayProject.OutlineColumnDesc


        }
        return qq_aOLF_DVSMALLICON;
    }
    public OutlineColumnDesc getqq_aOLF_DVNodeText() {
        if (qq_aOLF_DVNodeText == null) {
            qq_aOLF_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Text", 0);
        }
        return qq_aOLF_DVNodeText;
    }
View Full Code Here


            qq_list = value;
            this.qq_Listeners.firePropertyChange("qq_list", oldValue, value);
        }
        public OutlineColumnDesc getqq_list_DVNodeText() {
            if (qq_list_DVNodeText == null) {
                qq_list_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "", 0);
            }
            return qq_list_DVNodeText;
        }
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, "Text", 0);
        }
        return qq_aOutlineField_DVNodeText;
    }
View Full Code Here

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

            // Work out what is our first indented column. It's the one with the firstIndent property
            // set true, or the first one after that if that column is invisible.
            Array_Of_OutlineColumnDesc<OutlineColumnDesc> columnList = this.parent.getColumnList(false);
            boolean found = false;
            for (int col=0; col<columnList.size(); col++) {
                OutlineColumnDesc colDec = columnList.get(col);
                if (colDec.getIsFirstIndent()) {
                    found = true;
                }
                if (colDec.getState() != Constants.FS_INVISIBLE && found) {
                  firstIndentCol = col;
                  break;
                }
            }

            // Layout the data into a grid, setting the correct width of each data item to
            // match the column width.
            int col = 0;
            for (int realCol=0; realCol<columnList.size(); realCol++) {
              OutlineColumnDesc colDec = columnList.get(realCol);
              if (colDec.getState() != Constants.FS_INVISIBLE) {
                  Object data = this.parent.getData((DisplayNode)value,realCol);
                  this.parent.setJLabel(data, this.cachedJLabels[col]);
 
                  // Set the column alignment
                  switch (colDec.getAlignment()) {
                      case Constants.TA_RIGHT:
                          this.cachedJLabels[col].setHorizontalAlignment(SwingConstants.RIGHT);
                          break;
                      case Constants.TA_CENTER:
                          this.cachedJLabels[col].setHorizontalAlignment(SwingConstants.CENTER);
View Full Code Here

            int firstIndentCol = 0;

            // Work out what is our first indented column.
            for (int col=0; col<this.parent.getColumnList(false).size(); col++) {
                OutlineColumnDesc colDec = (OutlineColumnDesc)this.parent.getColumnList(false).get(col);
                if (colDec.getIsFirstIndent()) {
                    firstIndentCol = col;
                    break;
                }
            }

            // Layout the data into a grid, setting the correct width of each data item to
            // match the column width.
            for (int col=0; col<this.parent.getColumnList(false).size(); col++) {
                Object data = this.parent.getData((DisplayNode)value,col);
                this.parent.setJLabel(data, this.cachedJLabels[col]);
                OutlineColumnDesc colDec = (OutlineColumnDesc)this.parent.getColumnList(false).get(col);

                // Set the column alignment
                switch (colDec.getAlignment()) {
                    case Constants.TA_RIGHT:
                        this.cachedJLabels[col].setHorizontalAlignment(SwingConstants.RIGHT);
                        break;
                    case Constants.TA_CENTER:
                        this.cachedJLabels[col].setHorizontalAlignment(SwingConstants.CENTER);
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

            gbc.gridy = 0;
            this.headerLabelsPanel.add(this.headerLeftControlPad, gbc);

            // Add new labels header labels
            for (int i=0; i<this.columns.size(); i++) {
                OutlineColumnDesc colDec = (OutlineColumnDesc)this.columns.get(i);
                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 (i==0) {
                  gbc.gridx = 0;
                }
                else {
                  gbc.gridx = i+1;
                }
                gbc.gridy = 0;

                // The last label fills up the rest of the space
                if (i == this.columns.size()-1) {
                    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
        for (int i=0; i<this.headerLabels.length; i++) {
            OutlineColumnDesc colDesc = (OutlineColumnDesc)this.columns.get(i);

            // 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

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.