Skip to content

Commit

Permalink
rename collapsable to collapsible
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi committed Nov 18, 2024
1 parent 9b46515 commit 9466cd4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package life.qbic.datamanager.views.general;

/**
* <b>Collapsable Element Interface</b>
* <b>Collapsible Element Interface</b>
*
* <p>Collapsable elements can be collapsed into a concise view representation of an element,
* <p>Collapsible elements can be collapsed into a concise view representation of an element,
* such as e.g. a large text box with information.</p>
*
* @since 1.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import java.util.Objects;

/**
* <b>Collapsable Details</b>
* <b>Collapsible Details</b>
*
* <p>Implementation of the {@link Collapsible} interface for the Vaadin component
* {@link Details}.</p>
* <p>
* For the Vaadin {@link Details} component, it would not be necessary to provide a wrapper object. However
* the interface gives a lot of flexibility to add collapsable elements wrapping other custom
* the interface gives a lot of flexibility to add collapsible elements wrapping other custom
* components while exposing a unified behaviour.
* <p>
* Also we favor a more declarative and readable object API, like {@link #collapse()} or {@link #expand() } over
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,16 +489,16 @@ private void buildDesignSection(ProjectOverview projectInformation, Project proj
var objective = new SimpleParagraph(project.getProjectIntent().objective().objective());
details.setSummary(objectiveTitle);
details.add(objective);
var collapsableDetails = new CollapsibleDetails(details);
collapsableDetails.collapse();
collapsableDetails.addClassNames("background-color-grey", "padding-left-01", "padding-right-01",
var collapsibleDetails = new CollapsibleDetails(details);
collapsibleDetails.collapse();
collapsibleDetails.addClassNames("background-color-grey", "padding-left-01", "padding-right-01",
"line-height-01", "max-width-55rem", "text-justify", "box-corner-radius-small");

content.add(
Heading.withIconAndText(VaadinIcon.NOTEBOOK.create(), "Project ID and Title"));
content.add(new SimpleParagraph("%s - %s".formatted(projectInformation.projectCode(),
projectInformation.projectTitle())));
content.add(collapsableDetails);
content.add(collapsibleDetails);
projectDesignSection.setContent(content);
}

Expand Down

0 comments on commit 9466cd4

Please sign in to comment.