Package com.dci.intellij.dbn.data.editor.ui

Examples of com.dci.intellij.dbn.data.editor.ui.TextFieldWithTextEditor


    private static final CompoundBorder BUTTON_BORDER = new CompoundBorder(BUTTON_OUTSIDE_BORDER, new CompoundBorder(BUTTON_LINE_BORDER, BUTTON_INSIDE_BORDER));


    public DatasetTableCellEditorWithTextEditor(DatasetEditorTable table) {
        super(table, createTextField(table.getDataset().getProject()));
        TextFieldWithTextEditor editorComponent = getEditorComponent();
        JTextField textField = editorComponent.getTextField();
        textField.setBorder(new EmptyBorder(EMPTY_INSETS));
        JLabel button = editorComponent.getButton();
        button.setBackground(textField.getBackground());
        button.setBorder(BUTTON_BORDER);
    }
View Full Code Here


        button.setBackground(textField.getBackground());
        button.setBorder(BUTTON_BORDER);
    }

    private static TextFieldWithTextEditor createTextField(Project project) {
        return new TextFieldWithTextEditor(project) {
            @Override
            public void setEditable(boolean editable) {
                super.setEditable(editable);
                Color background = getTextField().getBackground();
                setBackground(background);
View Full Code Here

        }
    }

    @Override
    public void setEditable(boolean editable) {
        TextFieldWithTextEditor editorComponent = getEditorComponent();
        editorComponent.setEditable(editable);
    }
View Full Code Here

                        }
                    }
                }
                editorComponent = textFieldWithPopup;
            } else if (genericDataType.is(GenericDataType.BLOB, GenericDataType.CLOB)) {
                editorComponent = new TextFieldWithTextEditor(project);
            } else {
                editorComponent = new BasicDataEditorComponent();
            }
        } else {
            editorComponent = new BasicDataEditorComponent();
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.data.editor.ui.TextFieldWithTextEditor

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.