mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30:42 +00:00
StartPage init into private methods
This commit is contained in:
parent
d7affc2999
commit
07a7218192
@ -32,6 +32,14 @@ public class StartPageView extends VerticalLayout implements ControlPanelView {
|
|||||||
Scroller scroller = new Scroller(content);
|
Scroller scroller = new Scroller(content);
|
||||||
scroller.setSizeFull();
|
scroller.setSizeFull();
|
||||||
scroller.setScrollDirection(Scroller.ScrollDirection.BOTH);
|
scroller.setScrollDirection(Scroller.ScrollDirection.BOTH);
|
||||||
|
setAlignItems(Alignment.CENTER);
|
||||||
|
add(scroller, controlPanel);
|
||||||
|
disableControlPanel();
|
||||||
|
createContent();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void createContent() {
|
||||||
content.add(new MathjaxDisplay(getTranslation("abs-rule")));
|
content.add(new MathjaxDisplay(getTranslation("abs-rule")));
|
||||||
content.add(new MathjaxUnification("\\(conswwwwwwWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
|
content.add(new MathjaxUnification("\\(conswwwwwwWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
|
||||||
+ "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
|
+ "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
|
||||||
@ -42,32 +50,33 @@ public class StartPageView extends VerticalLayout implements ControlPanelView {
|
|||||||
content.add(new MathjaxProofTree(getTranslation("demo-tree")));
|
content.add(new MathjaxProofTree(getTranslation("demo-tree")));
|
||||||
content.add(new MathjaxProofTree(getTranslation("demo-tree")));
|
content.add(new MathjaxProofTree(getTranslation("demo-tree")));
|
||||||
content.add(new MathjaxProofTree(getTranslation("demo-tree")));
|
content.add(new MathjaxProofTree(getTranslation("demo-tree")));
|
||||||
setAlignItems(Alignment.CENTER);
|
}
|
||||||
add(scroller, controlPanel);
|
|
||||||
|
private void disableControlPanel() {
|
||||||
|
controlPanel.setEnabledFirstStep(false);
|
||||||
|
controlPanel.setEnabledLastStep(false);
|
||||||
|
controlPanel.setEnabledNextStep(false);
|
||||||
|
controlPanel.setEnabledPreviousStep(false);
|
||||||
|
controlPanel.setEnabledShareButton(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void shareButton() {
|
public void shareButton() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void firstStepButton() {
|
public void firstStepButton() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void lastStepButton() {
|
public void lastStepButton() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void nextStepButton() {
|
public void nextStepButton() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void previousStepButton() {
|
public void previousStepButton() {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user