Package org.jitterbit.ui.widget.table

Examples of org.jitterbit.ui.widget.table.TableColumnMetaData


        undoSupport.removeListener(lst);
    }

    @Override
    public boolean isCellEditable(int rowIndex, int columnIndex) {
        TableColumnMetaData column = getColumnDescriptor(columnIndex);
        if (column == NAME) {
            return getRowObjectAt(rowIndex).isUserDefined();
        }
        return column.isEditable();
    }
View Full Code Here


    @Override
    protected boolean updateObjectWithColumnData(Object o, int rowIndex, int columnIndex, Object value) {
        assert (o instanceof JndiContextTableRow) : "Unexpected row object: " + ((o != null) ? o.getClass() : "null");
        Object oldValue = null;
        boolean sendUndoableEdit = !undoSupport.isUndoingOrRedoing();
        TableColumnMetaData column = getColumnDescriptor(columnIndex);
        if (sendUndoableEdit) {
            oldValue = getCurrentValue((JndiContextTableRow) o, column);
        }
        boolean changed = applyChangeToRow((JndiContextTableRow) o, column, value);
        if (sendUndoableEdit && changed) {
View Full Code Here

    @Override
    public boolean isCellEditable(int rowIndex, int columnIndex) {
        if (readOnly) {
            return false;
        }
        TableColumnMetaData column = getColumnDescriptor(columnIndex);
        if (column == MODE) {
            return true;
        } else if (column == RESPONSE_GENERATOR) {
            return isResponseGeneratorEnabled(rowIndex);
        }
View Full Code Here

    @Override
    public void setValueAt(Object value, int row, int columnIndex) {
        super.setValueAt(value, row, columnIndex);
        if (!externalModification) {
            TableColumnMetaData column = getColumnDescriptor(columnIndex);
            OperationId opId = getOperationId(row);
            if (column == MODE) {
                responseModel.setRunMode(opId, (OperationRunMode) value);
            } else if (column == RESPONSE_GENERATOR) {
                if (value == Boolean.TRUE) {
View Full Code Here

        }

        @Override
        public Component prepare(JTable table, TableCellRenderer renderer, Component fromDefaultPreparation,
                int row, int column) {
            TableColumnMetaData md = ((KongaTable) table).getColumnDescriptor(column);
            if (md == OperationTableModel.RESPONSE_GENERATOR) {
                fromDefaultPreparation.setEnabled(tableModel.isResponseGeneratorEnabled(row));
            }
            return fromDefaultPreparation;
        }
View Full Code Here

    public final void updateColumnWidths(TableColumnMetaData[] columnDescriptors) {
        TableColumnModel columns = getColumnModel();
        for (int n = 0; n < columnDescriptors.length; ++n) {
            TableColumn col = columns.getColumn(n);
            TableColumnMetaData desc = columnDescriptors[n];
            col.setResizable(desc.isResizable());
            col.setPreferredWidth(desc.getWidth());
            if (!desc.isResizable()) {
                col.setMinWidth(desc.getWidth());
                col.setMaxWidth(desc.getWidth());
            }
           
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.table.TableColumnMetaData

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.