diff --git a/src/main/java/edu/kit/typicalc/view/content/infocontent/ImageSlide.java b/src/main/java/edu/kit/typicalc/view/content/infocontent/ImageSlide.java index 92cb7b9..411e158 100644 --- a/src/main/java/edu/kit/typicalc/view/content/infocontent/ImageSlide.java +++ b/src/main/java/edu/kit/typicalc/view/content/infocontent/ImageSlide.java @@ -10,6 +10,9 @@ import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.i18n.LocaleChangeEvent; import com.vaadin.flow.i18n.LocaleChangeObserver; +/** + * A Slide for the vaadin carousel-addon. This Slide consists of an image and a text. + */ @CssImport("./styles/view/image-slide.css") public class ImageSlide extends Slide implements LocaleChangeObserver { @@ -24,8 +27,13 @@ public class ImageSlide extends Slide implements LocaleChangeObserver { private Image image; private final String imagePathKey; + /** + * Create a new ImageSlide with a key for the path of the image and a key for the text. + * + * @param imgPathKey key for the path of the image + * @param textKey key for the text + */ public ImageSlide(String imgPathKey, String textKey) { - // move to css slideLayout = new VerticalLayout(); this.imagePathKey = imgPathKey; image = new Image(getTranslation(imgPathKey), StringUtils.EMPTY); diff --git a/src/main/java/edu/kit/typicalc/view/content/infocontent/StartPageView.java b/src/main/java/edu/kit/typicalc/view/content/infocontent/StartPageView.java index ee2d7f4..ba6e52c 100644 --- a/src/main/java/edu/kit/typicalc/view/content/infocontent/StartPageView.java +++ b/src/main/java/edu/kit/typicalc/view/content/infocontent/StartPageView.java @@ -19,6 +19,9 @@ import edu.kit.typicalc.view.content.ControlPanel; import edu.kit.typicalc.view.content.ControlPanelView; import edu.kit.typicalc.view.main.MainViewImpl; +/** + * The starting page of the application. Presents an introduction to the user. + */ @Route(value = "", layout = MainViewImpl.class) @PageTitle(MainViewImpl.PAGE_TITLE) @JsModule("./src/mathjax-setup.js") @@ -45,6 +48,9 @@ public class StartPageView extends VerticalLayout implements ControlPanelView, L private final Text linkText; private final Anchor link; + /** + * Fills the view with content. + */ public StartPageView() { controlPanel = new ControlPanel(this, this); controlPanel.setId(CONTROL_PANEL_ID);