public void initializeLayout()

in src/main/java/org/apache/cayenne/modeler/layout/ObjectEntityRelationshipsTabLayout.java [126:184]


    public void initializeLayout()
    {
        super.initializeLayout();

        newRelationshipButton.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.PLUS, "16px"));
        newRelationshipButton.setText(null);

        synchronizeWithDatabaseEntityButton.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.REFRESH, "16px"));
        synchronizeWithDatabaseEntityButton.setText(null);

        viewRelatedDatabaseEntityButton.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.TABLE, "16px"));
        viewRelatedDatabaseEntityButton.setText(null);

        deleteButton.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.TRASH, "16px"));
        deleteButton.setText(null);

        cutButton.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.CUT, "16px"));
        cutButton.setText(null);

        copyButton.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.COPY, "16px"));
        copyButton.setText(null);

        pasteButton.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.PASTE, "16px"));
        pasteButton.setText(null);

        attributeUsedForLockingColumn.setText(null);
        attributeIsInheritedColumn.setText(null);

        attributeUsedForLockingColumn.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.LOCK, "16px"));
        attributeIsInheritedColumn.setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.LEVEL_UP, "16px"));

        relationshipNameColumn.setCellValueFactory(cellData -> cellData.getValue().nameProperty());
        relationshipTargetColumn.setCellValueFactory(cellData -> cellData.getValue().javaTypeProperty());
        attributeDatabasePathColumn.setCellValueFactory(cellData -> cellData.getValue().databaseAttributePathProperty());
        // FIXME: See if there is a way of doing this without using the string "databaseType"...
        attributeDatabaseTypeColumn.setCellValueFactory(new PropertyValueFactory<ObjectAttributeAdapter,String>("databaseType"));

        attributeUsedForLockingColumn.setCellValueFactory(cellData -> cellData.getValue().usedForLockingProperty());
        attributeUsedForLockingColumn.setCellFactory((column) ->
            {
                return new TableCell<ObjectAttributeAdapter,Boolean>()
                    {
                        @Override
                        protected void updateItem(final Boolean item, final boolean empty)
                        {
                            super.updateItem(item, empty);

                            setAlignment(Pos.CENTER);
                            setStyle("-fx-padding: 0;");
                            setText("");

                            if (item == null || empty || item == false)
                                setGraphic(null);
                            else
                                setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.LOCK, "16px"));
                        }
                     };
            });
    }