Skip to content

Add JavaDoc to ComboBox#65

Open
ChrisChros123 wants to merge 1 commit into
teamapps-org:masterfrom
ChrisChros123:add_documentation_2
Open

Add JavaDoc to ComboBox#65
ChrisChros123 wants to merge 1 commit into
teamapps-org:masterfrom
ChrisChros123:add_documentation_2

Conversation

@ChrisChros123
Copy link
Copy Markdown

No description provided.

import java.util.stream.Collectors;

/**
* A combo box is a drop-down list which can be expanded by pressing a button. It includes a text field
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A combo box is a drop-down list selection input with search functionality.
(I think, trying it says more than telling the whole story ;-) )

* A combo box is a drop-down list which can be expanded by pressing a button. It includes a text field
* where the user can type in a search term. The list element chosen by the user is then shown in that field.
*
* A combo box instance can either be created using the constructor or the overloaded {@link #createForList(List)} method
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

... or one of ComboBox's static factory methods.

(we might add more of these and forget to update the JavaDoc, so I think it makes sense to just hint to the fact that there are static factory methods and not describe the details of them here...)

* The {@link org.teamapps.data.extract.PropertyProvider} or its specification, the PropertyExtractor, are used to map
* the template's property names to object specific information, e.g. its attributes, that should represent the record
* in the combo box.
*/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's talk about how to improve this on the phone. I think we might want to keep one level of abstraction on the class documentation, giving a brief overview of the main concepts, and describe the details on the method level.

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