Package DisplayProject

Examples of DisplayProject.ArrayColumn


            ((ArrayFieldModel)qq_arrayMaskTester.getModel()).setAllowsAppend(true);

            //  === Column model setup ===

            // <TestMask1> converted from qqds_DataField
            ArrayColumn qq_arrayMaskTesterArray_TestMask1_Column = new ArrayColumn("TestMask1", 0, 98, new FormattedCellRenderer(getqq_arrayMaskTesterArray_TestMask1()), new FormattedCellEditor(getqq_arrayMaskTesterArray_TestMask1()), true);
            qq_arrayMaskTesterArray_TestMask1_Column.setHeaderValue("TestMask1");
            qq_arrayMaskTesterArray_TestMask1_Column.setVisible(true);
            qq_arrayMaskTester.addColumn(qq_arrayMaskTesterArray_TestMask1_Column);

            // <TestMask2> converted from qqds_DataField
            ArrayColumn qq_arrayMaskTesterArray_TestMask2_Column = new ArrayColumn("TestMask2", 1, 111, new FormattedCellRenderer(getqq_arrayMaskTesterArray_TestMask2()), new FormattedCellEditor(getqq_arrayMaskTesterArray_TestMask2()), true);
            qq_arrayMaskTesterArray_TestMask2_Column.setHeaderValue("TestMask2");
            qq_arrayMaskTesterArray_TestMask2_Column.setVisible(true);
            qq_arrayMaskTester.addColumn(qq_arrayMaskTesterArray_TestMask2_Column);

            //  === End column model ===

            TableFactory.postModelArrayField(qq_arrayMaskTester);
View Full Code Here


            ((ArrayFieldModel)qq_things.getModel()).setAllowsAppend(true);

            //  === Column model setup ===

            // name converted from qqds_DataField
            ArrayColumn qq_thingsArray_name_Column = new ArrayColumn("name", 0, 131, new FormattedCellRenderer(getqq_thingsArray_name()), new FormattedCellEditor(getqq_thingsArray_name()), true);
            qq_thingsArray_name_Column.setHeaderValue("name");
            qq_thingsArray_name_Column.setVisible(true);
            qq_things.addColumn(qq_thingsArray_name_Column);

            // size converted from qqds_DropList
            ArrayColumn qq_thingsArray_size_Column = new ArrayColumn("size", 1, getqq_thingsArray_size().getMinimumSize().width, new ComboBoxCellRenderer(getqq_thingsArray_size()), DropFillinFactory.newDropListEditor(getqq_thingsArray_size()), true);
            qq_thingsArray_size_Column.setHeaderValue("size");
            qq_thingsArray_size_Column.setVisible(true);
            qq_things.addColumn(qq_thingsArray_size_Column);

            // Colour converted from qqds_RadioList
            ArrayColumn qq_thingsArray_Colour_Column = new ArrayColumn("Colour", 2, 206, new RadioListCellRenderer(getqq_thingsArray_Colour()), new RadioListCellEditor(getqq_thingsArray_Colour()), true);
            qq_thingsArray_Colour_Column.setHeaderValue("Colour");
            qq_thingsArray_Colour_Column.setVisible(true);
            qq_things.addColumn(qq_thingsArray_Colour_Column);

            //  === End column model ===

            TableFactory.postModelArrayField(qq_things);
View Full Code Here

            ((ArrayFieldModel)qq_ArrayTester.getModel()).setAllowsAppend(true);

            //  === Column model setup ===

            // DateField converted from qqds_DataField
            ArrayColumn qq_ArrayTesterArray_DateField_Column = new ArrayColumn("DateField", 0, 87, new FormattedCellRenderer(getqq_ArrayTesterArray_DateField()), new FormattedCellEditor(getqq_ArrayTesterArray_DateField()), true);
            qq_ArrayTesterArray_DateField_Column.setHeaderValue("DateField");
            qq_ArrayTesterArray_DateField_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_DateField_Column);

            // ValidatingField converted from qqds_DataField
            ArrayColumn qq_ArrayTesterArray_ValidatingField_Column = new ArrayColumn("ValidatingField", 1, 84, new FormattedCellRenderer(getqq_ArrayTesterArray_ValidatingField()), new FormattedCellEditor(getqq_ArrayTesterArray_ValidatingField()), true);
            qq_ArrayTesterArray_ValidatingField_Column.setHeaderValue("ValidatingField");
            qq_ArrayTesterArray_ValidatingField_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_ValidatingField_Column);

            // ToggleValue converted from qqds_ToggleField
            ArrayColumn qq_ArrayTesterArray_ToggleValue_Column = new ArrayColumn("ToggleValue", 2, 60, new CheckBoxCellRenderer(getqq_ArrayTesterArray_ToggleValue()), new CheckBoxCellEditor(getqq_ArrayTesterArray_ToggleValue()), true);
            qq_ArrayTesterArray_ToggleValue_Column.setHeaderValue("ToggleField");
            qq_ArrayTesterArray_ToggleValue_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_ToggleValue_Column);

            // DropValue converted from qqds_DropList
            ArrayColumn qq_ArrayTesterArray_DropValue_Column = new ArrayColumn("DropValue", 3, getqq_ArrayTesterArray_DropValue().getMinimumSize().width, new ComboBoxCellRenderer(getqq_ArrayTesterArray_DropValue()), DropFillinFactory.newDropListEditor(getqq_ArrayTesterArray_DropValue()), true);
            qq_ArrayTesterArray_DropValue_Column.setHeaderValue("DropValue");
            qq_ArrayTesterArray_DropValue_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_DropValue_Column);

            // InvalidColumn converted from qqds_DataField
            ArrayColumn qq_ArrayTesterArray_InvalidColumn_Column = new ArrayColumn("InvalidColumn", 4, 80, new FormattedCellRenderer(getqq_ArrayTesterArray_InvalidColumn()), new FormattedCellEditor(getqq_ArrayTesterArray_InvalidColumn()), false);
            qq_ArrayTesterArray_InvalidColumn_Column.setHeaderValue("Disabled");
            qq_ArrayTesterArray_InvalidColumn_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_InvalidColumn_Column);

            // FloatValue converted from qqds_DataField
            ArrayColumn qq_ArrayTesterArray_FloatValue_Column = new ArrayColumn("FloatValue", 5, 66, new FormattedCellRenderer(getqq_ArrayTesterArray_FloatValue()), new FormattedCellEditor(getqq_ArrayTesterArray_FloatValue()), true);
            qq_ArrayTesterArray_FloatValue_Column.setHeaderValue("Column 6");
            qq_ArrayTesterArray_FloatValue_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_FloatValue_Column);

            // <Gender> converted from qqds_RadioList
            ArrayColumn qq_ArrayTesterArray_Gender_Column = new ArrayColumn("Gender", 6, 116, new RadioListCellRenderer(getqq_ArrayTesterArray_Gender()), new RadioListCellEditor(getqq_ArrayTesterArray_Gender()), true);
            qq_ArrayTesterArray_Gender_Column.setHeaderValue("Column 6");
            qq_ArrayTesterArray_Gender_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_Gender_Column);

            // ValidateButton converted from qqds_PushButton
            ArrayColumn qq_ArrayTesterArray_ValidateButton_Column = new ArrayColumn("ValidateButton", 7, 48, new ButtonCellRenderer(getqq_ArrayTesterArray_ValidateButton()), new ButtonCellEditor(getqq_ArrayTesterArray_ValidateButton()), true);
            qq_ArrayTesterArray_ValidateButton_Column.setHeaderValue("Column 5");
            qq_ArrayTesterArray_ValidateButton_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_ValidateButton_Column);

            //  === End column model ===

            TableFactory.postModelArrayField(qq_ArrayTester);
View Full Code Here

            qq_aList1.setVisibleRows(3);

            //  === Column model setup ===

            //  converted from qqds_TextGraphic
            ArrayColumn qq_aList1Array_aList1Array_LabelLbl_Column = new ArrayColumn("", 0, 31, new TextGraphicCellRenderer(getqq_aList1Array_aList1Array_LabelLbl()), null, false);
            qq_aList1Array_aList1Array_LabelLbl_Column.setHeaderValue("Column 1");
            qq_aList1Array_aList1Array_LabelLbl_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aList1Array_LabelLbl_Column);

            // aDataField converted from qqds_DataField
            ArrayColumn qq_aList1Array_aDataField_Column = new ArrayColumn("aDataField", 1, 115, new FormattedCellRenderer(getqq_aList1Array_aDataField()), new FormattedCellEditor(getqq_aList1Array_aDataField()), true);
            qq_aList1Array_aDataField_Column.setHeaderValue("Column 2");
            qq_aList1Array_aDataField_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aDataField_Column);

            // aTextField converted from qqds_TextField
            ArrayColumn qq_aList1Array_aTextField_Column = new ArrayColumn("aTextField", 2, 168, new TextFieldCellRenderer(getqq_aList1Array_aTextField_sp()), new TextFieldCellEditor(getqq_aList1Array_aTextField_sp()), true);
            qq_aList1Array_aTextField_Column.setHeaderValue("Column 3");
            qq_aList1Array_aTextField_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aTextField_Column);

            // aRadioList converted from qqds_RadioList
            ArrayColumn qq_aList1Array_aRadioList_Column = new ArrayColumn("aRadioList", 3, 98, new RadioListCellRenderer(getqq_aList1Array_aRadioList()), new RadioListCellEditor(getqq_aList1Array_aRadioList()), true);
            qq_aList1Array_aRadioList_Column.setHeaderValue("aRadioList");
            qq_aList1Array_aRadioList_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aRadioList_Column);

            // aDropList converted from qqds_DropList
            ArrayColumn qq_aList1Array_aDropList_Column = new ArrayColumn("aDropList", 4, getqq_aList1Array_aDropList().getMinimumSize().width, new ComboBoxCellRenderer(getqq_aList1Array_aDropList()), DropFillinFactory.newDropListEditor(getqq_aList1Array_aDropList()), true);
            qq_aList1Array_aDropList_Column.setHeaderValue("Column 6");
            qq_aList1Array_aDropList_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aDropList_Column);

            // aFillinField converted from qqds_FillInField
            ArrayColumn qq_aList1Array_aFillinField_Column = new ArrayColumn("aFillinField", 5, getqq_aList1Array_aFillinField().getMinimumSize().width, new FillInFieldCellRenderer(getqq_aList1Array_aFillinField()), new FillInFieldCellEditor(getqq_aList1Array_aFillinField()), true);
            qq_aList1Array_aFillinField_Column.setHeaderValue("Column 7");
            qq_aList1Array_aFillinField_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aFillinField_Column);

            // aCheckBox converted from qqds_ToggleField
            ArrayColumn qq_aList1Array_aCheckBox_Column = new ArrayColumn("aCheckBox", 6, 50, new CheckBoxCellRenderer(getqq_aList1Array_aCheckBox()), new CheckBoxCellEditor(getqq_aList1Array_aCheckBox()), true);
            qq_aList1Array_aCheckBox_Column.setHeaderValue("Column 8");
            qq_aList1Array_aCheckBox_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aCheckBox_Column);

            // aPushButton converted from qqds_PushButton
            ArrayColumn qq_aList1Array_aPushButton_Column = new ArrayColumn("aPushButton", 7, 47, new ButtonCellRenderer(getqq_aList1Array_aPushButton()), new ButtonCellEditor(getqq_aList1Array_aPushButton()), true);
            qq_aList1Array_aPushButton_Column.setHeaderValue("Column 9");
            qq_aList1Array_aPushButton_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aPushButton_Column);

            //  converted from qqds_PictureGraphic
            ArrayColumn qq_aList1Array_aList1Array_PictureGraphic58_Column = new ArrayColumn("", 8, 16, getqq_aList1Array_aList1Array_PictureGraphic58(), null, false);
            qq_aList1Array_aList1Array_PictureGraphic58_Column.setHeaderValue("Column 10");
            qq_aList1Array_aList1Array_PictureGraphic58_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aList1Array_PictureGraphic58_Column);

            //  === End column model ===

            TableFactory.postModelArrayField(qq_aList1);
View Full Code Here

            ((ArrayFieldModel)qq_aList.getModel()).setAllowsAppend(true);

            //  === Column model setup ===

            //  converted from qqds_TextGraphic
            ArrayColumn qq_aListArray_aListArray_LabelLbl1_Column = new ArrayColumn("", 0, 31, new TextGraphicCellRenderer(getqq_aListArray_aListArray_LabelLbl1()), null, false);
            qq_aListArray_aListArray_LabelLbl1_Column.setHeaderValue("Column 1");
            qq_aListArray_aListArray_LabelLbl1_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aListArray_LabelLbl1_Column);

            // aDataField converted from qqds_DataField
            ArrayColumn qq_aListArray_aDataField_Column = new ArrayColumn("aDataField", 1, 115, new FormattedCellRenderer(getqq_aListArray_aDataField()), new FormattedCellEditor(getqq_aListArray_aDataField()), true);
            qq_aListArray_aDataField_Column.setHeaderValue("Column 2");
            qq_aListArray_aDataField_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aDataField_Column);

            // aTextField converted from qqds_TextField
            ArrayColumn qq_aListArray_aTextField_Column = new ArrayColumn("aTextField", 2, 168, new TextFieldCellRenderer(getqq_aListArray_aTextField_sp()), new TextFieldCellEditor(getqq_aListArray_aTextField_sp()), true);
            qq_aListArray_aTextField_Column.setHeaderValue("Column 3");
            qq_aListArray_aTextField_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aTextField_Column);

            // aRadioList converted from qqds_RadioList
            ArrayColumn qq_aListArray_aRadioList_Column = new ArrayColumn("aRadioList", 3, 98, new RadioListCellRenderer(getqq_aListArray_aRadioList()), new RadioListCellEditor(getqq_aListArray_aRadioList()), true);
            qq_aListArray_aRadioList_Column.setHeaderValue("aRadioList");
            qq_aListArray_aRadioList_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aRadioList_Column);

            // aDropList converted from qqds_DropList
            ArrayColumn qq_aListArray_aDropList_Column = new ArrayColumn("aDropList", 4, getqq_aListArray_aDropList().getMinimumSize().width, new ComboBoxCellRenderer(getqq_aListArray_aDropList()), DropFillinFactory.newDropListEditor(getqq_aListArray_aDropList()), true);
            qq_aListArray_aDropList_Column.setHeaderValue("Column 6");
            qq_aListArray_aDropList_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aDropList_Column);

            // aFillinField converted from qqds_FillInField
            ArrayColumn qq_aListArray_aFillinField_Column = new ArrayColumn("aFillinField", 5, getqq_aListArray_aFillinField().getMinimumSize().width, new FillInFieldCellRenderer(getqq_aListArray_aFillinField()), new FillInFieldCellEditor(getqq_aListArray_aFillinField()), true);
            qq_aListArray_aFillinField_Column.setHeaderValue("Column 7");
            qq_aListArray_aFillinField_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aFillinField_Column);

            // aCheckBox converted from qqds_ToggleField
            ArrayColumn qq_aListArray_aCheckBox_Column = new ArrayColumn("aCheckBox", 6, 50, new CheckBoxCellRenderer(getqq_aListArray_aCheckBox()), new CheckBoxCellEditor(getqq_aListArray_aCheckBox()), true);
            qq_aListArray_aCheckBox_Column.setHeaderValue("Column 8");
            qq_aListArray_aCheckBox_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aCheckBox_Column);

            // aPushButton converted from qqds_PushButton
            ArrayColumn qq_aListArray_aPushButton_Column = new ArrayColumn("aPushButton", 7, 47, new ButtonCellRenderer(getqq_aListArray_aPushButton()), new ButtonCellEditor(getqq_aListArray_aPushButton()), true);
            qq_aListArray_aPushButton_Column.setHeaderValue("Column 9");
            qq_aListArray_aPushButton_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aPushButton_Column);

            //  converted from qqds_PictureGraphic
            ArrayColumn qq_aListArray_aListArray_PictureGraphic71_Column = new ArrayColumn("", 8, 16, getqq_aListArray_aListArray_PictureGraphic71(), null, false);
            qq_aListArray_aListArray_PictureGraphic71_Column.setHeaderValue("Column 10");
            qq_aListArray_aListArray_PictureGraphic71_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aListArray_PictureGraphic71_Column);

            //  === End column model ===

            TableFactory.postModelArrayField(qq_aList);
View Full Code Here

         */
        //  Some test code to see if code below could be simplified
        if (this.getSorter().isSorting())  {
            int column = this.getSorter().getSortColumn();
            ArrayColumnModel columnModel = this.getColumnModel();
            ArrayColumn arrayColumn = columnModel.getRealColumn(column);
            TextData name = new TextData();
            name.setValue(arrayColumn.getName());
            if (name.moveToString("Item")) {
                name = name.copyRange(name.getOffset());
            }
            boolean ascending = (this.getSorter().getSortDirection() == TableSorter.ASCENDING);

View Full Code Here

        if (acm.getRealColumnCount() > 0) {
            columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
        }
        */
        for (int i = 0; i < acm.getRealColumnCount(); i++){
            ArrayColumn col = (ArrayColumn)acm.getRealColumn(i);
            columns.add(this.getOutlineColumn(col, false));
        }
        return columns;
    }
View Full Code Here

              // TF:19/3/08: Added in a factor to make the columns approximately as wide as they are in Forte.
                colWidth = (int)(UIutils.colsToPixels(col.getMaxCharacters(), this) * UIutils.FORTE_COLUMNS_SCALING_FACTOR);
            }
            AlignedCellRenderer renderer = new AlignedCellRenderer(alignment, col.getName().toString());
            renderer.setInsets(0, 2, 0, 2);
            ArrayColumn ac = new ArrayColumn(col.getName().toString(),
                    colNum,
                    colWidth,
                    renderer,
                    false,
                    new Integer(col.getTitleMsgNum()));
           
            // CraigM:18/07/2008 - We need to set the size policy as it is used in ArrayFieldModel.resizeColumnIfNecessary()
            ac.setSizePolicy(col.getSizePolicy());
           
            // TF:19/06/2008:In Forte, the user could always adjust the widths of the columns in a list view. If we use
            // setMinWidth (as the ArrayColumn constructor does) then the user cannot reduce the columns smaller than
            // their initial size. Hence we use setMinWidth(0) and setPreferredWith. This is done here rather than in
            // the array column constructor as this rule applies only for list views, not array fields.
            ac.setMinWidth(0);
            ac.setPreferredWidth(colWidth);
           
            col.setArrayColumn(ac);
            cm.addColumn(ac, col.getTitle().toString(), col.getState() != Constants.FS_INVISIBLE);

            propNames[colNum] = col.getName().toString();
View Full Code Here

   
    // CraigM:01/05/2008:Use the total array collection (including invisible columns)
    ArrayList<ArrayColumn> allColumns = acm.getColumnList();

    for (int i = 0; i < allColumns.size(); i++){
            ArrayColumn col = allColumns.get(i);
            if (col.getTitleMsgNumber() > 0){
              String titleString = mcat.getString(setNumber, col.getTitleMsgNumber());
              col.setHeaderValue(titleString);
            }
        }
  }
View Full Code Here

     * @return integer index of the first visible column.
     */
    public int getFirstVisibleColumnIndex() {
        ArrayColumnModel acm = (ArrayColumnModel)this.table.getColumnModel();
        for (int i = 0; i < acm.getRealColumnCount(); i++){
            ArrayColumn col = (ArrayColumn)acm.getRealColumn(i);
          if (col.isVisible()) {
            return i;
          }
        }
    return -1;
  }
View Full Code Here

TOP

Related Classes of DisplayProject.ArrayColumn

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.