Skip to content

Fix create button#3

Open
bhamrickatmills wants to merge 3 commits into
MillsMCS:completefrom
bhamrickatmills:fix-create-button
Open

Fix create button#3
bhamrickatmills wants to merge 3 commits into
MillsMCS:completefrom
bhamrickatmills:fix-create-button

Conversation

@bhamrickatmills
Copy link
Copy Markdown

No description provided.

// field is empty or invalid.
createButton.disableProperty()
.bind(listView.getSelectionModel().selectedItemProperty().isNull()
.or(wordExistsProperty.not()).or(modifiedProperty.not())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, but I'd put one .or clause per line.

.or(definitionTextArea.textProperty().isEmpty()));
}

// Does the word already exist in our list
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add question mark.

}

// Does the word already exist in our list
private boolean isNewWord(String w) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants