Package DisplayProject.table

Examples of DisplayProject.table.FormattedCellRenderer


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

            //  === Column model setup ===

            // TextValue converted from qqds_DataField
            ArrayColumn qq_t_t_listArray_TextValue_Column = new ArrayColumn("TextValue", 0, 83, new FormattedCellRenderer(getqq_t_t_listArray_TextValue()), new FormattedCellEditor(getqq_t_t_listArray_TextValue()), true);
            qq_t_t_listArray_TextValue_Column.setHeaderValue("TextValue");
            qq_t_t_listArray_TextValue_Column.setVisible(true);
            qq_t_t_list.addColumn(qq_t_t_listArray_TextValue_Column);

            // IntegerValue converted from qqds_DataField
            ArrayColumn qq_t_t_listArray_IntegerValue_Column = new ArrayColumn("IntegerValue", 1, 83, new FormattedCellRenderer(getqq_t_t_listArray_IntegerValue()), new FormattedCellEditor(getqq_t_t_listArray_IntegerValue()), true);
            qq_t_t_listArray_IntegerValue_Column.setHeaderValue("IntegerValue");
            qq_t_t_listArray_IntegerValue_Column.setVisible(true);
            qq_t_t_list.addColumn(qq_t_t_listArray_IntegerValue_Column);

            //  === End column model ===
View Full Code Here


      TableColumn column = getColumnModel().getColumn(columnAtPoint);
      if (column instanceof ArrayColumn) {
        ArrayColumn arrayColumn = (ArrayColumn) column;
        TableCellRenderer renderer = arrayColumn.getRenderer();
        if (renderer instanceof FormattedCellRenderer) {
          FormattedCellRenderer formatedRenderer = (FormattedCellRenderer) renderer;
          statusTextValue = (TextData) formatedRenderer.getDataFieldOriginalComponent().getClientProperty(StatusText.cSTATUS_TEXT);
        } else if (renderer instanceof ComboBoxCellRenderer) {
          statusTextValue = (TextData) ((ComboBoxCellRenderer)renderer).getComboBox().getClientProperty(StatusText.cSTATUS_TEXT);
        } else {
          Component tableCellRendererComponent = renderer.getTableCellRendererComponent(ArrayField.this, null, false, false, 0, 0);
          if (tableCellRendererComponent instanceof JComponent) {
View Full Code Here

                null); // null value
        dataField.setFormatterFactory(factory);
        if (dataField.getTable() != null) {
            JTable table = dataField.getTable();
            ArrayColumn ac = (ArrayColumn) table.getColumnModel().getColumn(dataField.getTableColumn());
            ac.setCellRenderer(new FormattedCellRenderer(nf, SwingUtilities.LEFT));
        }
    }
View Full Code Here

            qq_OrderList.setVisibleRows(8);

            //  === Column model setup ===

            // CustomerName converted from qqds_DataField
            ArrayColumn qq_OrderListArray_CustomerName_Column = new ArrayColumn("CustomerName", 0, new FormattedCellRenderer(getqq_OrderListArray_CustomerName()), new FormattedCellEditor(getqq_OrderListArray_CustomerName()), false);
            qq_OrderListArray_CustomerName_Column.setHeaderValue("CustomerName");
            qq_OrderListArray_CustomerName_Column.setVisible(true);
            qq_OrderList.addColumn(qq_OrderListArray_CustomerName_Column);

            // StockName converted from qqds_DataField
            ArrayColumn qq_OrderListArray_StockName_Column = new ArrayColumn("StockName", 1, new FormattedCellRenderer(getqq_OrderListArray_StockName()), new FormattedCellEditor(getqq_OrderListArray_StockName()), true);
            qq_OrderListArray_StockName_Column.setHeaderValue("StockName");
            qq_OrderListArray_StockName_Column.setVisible(true);
            qq_OrderList.addColumn(qq_OrderListArray_StockName_Column);

            // Quantity converted from qqds_DataField
            ArrayColumn qq_OrderListArray_Quantity_Column = new ArrayColumn("Quantity", 2, new FormattedCellRenderer(getqq_OrderListArray_Quantity()), new FormattedCellEditor(getqq_OrderListArray_Quantity()), true);
            qq_OrderListArray_Quantity_Column.setHeaderValue("Quantity");
            qq_OrderListArray_Quantity_Column.setVisible(true);
            qq_OrderList.addColumn(qq_OrderListArray_Quantity_Column);

            // Price converted from qqds_DataField
            ArrayColumn qq_OrderListArray_Price_Column = new ArrayColumn("Price", 3, new FormattedCellRenderer(getqq_OrderListArray_Price()), new FormattedCellEditor(getqq_OrderListArray_Price()), true);
            qq_OrderListArray_Price_Column.setHeaderValue("Price");
            qq_OrderListArray_Price_Column.setVisible(true);
            qq_OrderList.addColumn(qq_OrderListArray_Price_Column);

            // Type converted from qqds_DataField
            ArrayColumn qq_OrderListArray_Type_Column = new ArrayColumn("Type", 4, new FormattedCellRenderer(getqq_OrderListArray_Type()), new FormattedCellEditor(getqq_OrderListArray_Type()), true);
            qq_OrderListArray_Type_Column.setHeaderValue("Type");
            qq_OrderListArray_Type_Column.setVisible(true);
            qq_OrderList.addColumn(qq_OrderListArray_Type_Column);

            // SelectedForTrade converted from qqds_ToggleField
View Full Code Here

            qq_people.setVisibleRows(3);

            //  === Column model setup ===

            // Name converted from qqds_DataField
            ArrayColumn qq_peopleArray_Name_Column = new ArrayColumn("Name", 0, 143, new FormattedCellRenderer(getqq_peopleArray_Name()), new FormattedCellEditor(getqq_peopleArray_Name()), true);
            qq_peopleArray_Name_Column.setHeaderValue("Name");
            qq_peopleArray_Name_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_Name_Column);

            // size converted from qqds_DataField
            ArrayColumn qq_peopleArray_size_Column = new ArrayColumn("size", 1, 66, new FormattedCellRenderer(getqq_peopleArray_size()), new FormattedCellEditor(getqq_peopleArray_size()), true);
            qq_peopleArray_size_Column.setHeaderValue("Size");
            qq_peopleArray_size_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_size_Column);

            // Department converted from qqds_DropList
            ArrayColumn qq_peopleArray_Department_Column = new ArrayColumn("Department", 2, getqq_peopleArray_Department().getMinimumSize().width, new ComboBoxCellRenderer(getqq_peopleArray_Department()), DropFillinFactory.newDropListEditor(getqq_peopleArray_Department()), true);
            qq_peopleArray_Department_Column.setHeaderValue("Department");
            qq_peopleArray_Department_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_Department_Column);

            // but converted from qqds_PushButton
            ArrayColumn qq_peopleArray_but_Column = new ArrayColumn("but", 3, 30, new ButtonCellRenderer(getqq_peopleArray_but()), new ButtonCellEditor(getqq_peopleArray_but()), true);
            qq_peopleArray_but_Column.setHeaderValue(" ");
            qq_peopleArray_but_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_but_Column);

            // Skill converted from qqds_FillInField
            ArrayColumn qq_peopleArray_Skill_Column = new ArrayColumn("Skill", 4, getqq_peopleArray_Skill().getMinimumSize().width, new FillInFieldCellRenderer(getqq_peopleArray_Skill()), new FillInFieldCellEditor(getqq_peopleArray_Skill()), true);
            qq_peopleArray_Skill_Column.setHeaderValue("Skill");
            qq_peopleArray_Skill_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_Skill_Column);

            // date converted from qqds_DataField
            ArrayColumn qq_peopleArray_date_Column = new ArrayColumn("date", 5, 100, new FormattedCellRenderer(getqq_peopleArray_date()), new FormattedCellEditor(getqq_peopleArray_date()), true);
            qq_peopleArray_date_Column.setHeaderValue("Date");
            qq_peopleArray_date_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_date_Column);

            //  === End column model ===
View Full Code Here

                null); // null value
        dataField.setFormatterFactory(factory);
        if (dataField.getTable() != null) {
            JTable table = dataField.getTable();
            ArrayColumn ac = (ArrayColumn) table.getColumnModel().getColumn(dataField.getTableColumn());
            ac.setCellRenderer(new FormattedCellRenderer(nf, SwingUtilities.LEFT));
        }
    }
View Full Code Here

      TableColumn column = getColumnModel().getColumn(columnAtPoint);
      if (column instanceof ArrayColumn) {
        ArrayColumn arrayColumn = (ArrayColumn) column;
        TableCellRenderer renderer = arrayColumn.getRenderer();
        if (renderer instanceof FormattedCellRenderer) {
          FormattedCellRenderer formatedRenderer = (FormattedCellRenderer) renderer;
          statusTextValue = (TextData) formatedRenderer.getDataFieldOriginalComponent().getClientProperty(StatusText.cSTATUS_TEXT);
        } else if (renderer instanceof ComboBoxCellRenderer) {
          statusTextValue = (TextData) ((ComboBoxCellRenderer)renderer).getComboBox().getClientProperty(StatusText.cSTATUS_TEXT);
        } else {
          Component tableCellRendererComponent = renderer.getTableCellRendererComponent(ArrayField.this, null, false, false, 0, 0);
          if (tableCellRendererComponent instanceof JComponent) {
View Full Code Here

TOP

Related Classes of DisplayProject.table.FormattedCellRenderer

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.