|
|
|
@ -107,11 +107,44 @@ public class StartupPageWindow extends JFrame {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initCenter(StartupPageModel pageModel) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initHeaderPanel(); |
|
|
|
|
|
|
|
|
|
initWorkspacePanel(pageModel); |
|
|
|
|
|
|
|
|
|
initRecentOpenPanel(pageModel); |
|
|
|
|
initContentPanel(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initHeaderPanel() { |
|
|
|
|
this.body = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
this.body.setBackground(new Color(0, 0, 0, 0)); |
|
|
|
|
JPanel headerPanel = createHeader(); |
|
|
|
|
this.body.add(headerPanel, BorderLayout.NORTH); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initRecentOpenPanel(StartupPageModel pageModel) { |
|
|
|
|
|
|
|
|
|
this.recentOpenPanel = generateRecentOpenPanel(pageModel); |
|
|
|
|
this.body.add(recentOpenPanel, BorderLayout.SOUTH); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initContentPanel() { |
|
|
|
|
this.contentPane = new JPanel() { |
|
|
|
|
@Override |
|
|
|
|
protected void paintComponent(Graphics g) { |
|
|
|
|
super.paintComponent(g); |
|
|
|
|
g.drawImage(BACKGROUND_IMAGE, 0, 0, SCREEN_SIZE.width, SCREEN_SIZE.height, this); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
this.contentPane.setLayout(getCenterLayout(body)); |
|
|
|
|
this.contentPane.add(this.body, BorderLayout.CENTER); |
|
|
|
|
this.contentPane.setPreferredSize(this.body.getPreferredSize()); |
|
|
|
|
|
|
|
|
|
add(this.contentPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initWorkspacePanel(StartupPageModel pageModel) { |
|
|
|
|
|
|
|
|
|
// Workspace-description
|
|
|
|
|
this.workspacePanel = generateWorkspacePanel(pageModel); |
|
|
|
@ -129,21 +162,6 @@ public class StartupPageWindow extends JFrame {
|
|
|
|
|
repaint(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.recentOpenPanel = generateRecentOpenPanel(pageModel); |
|
|
|
|
this.body.add(recentOpenPanel, BorderLayout.SOUTH); |
|
|
|
|
this.contentPane = new JPanel() { |
|
|
|
|
@Override |
|
|
|
|
protected void paintComponent(Graphics g) { |
|
|
|
|
super.paintComponent(g); |
|
|
|
|
g.drawImage(BACKGROUND_IMAGE, 0, 0, SCREEN_SIZE.width, SCREEN_SIZE.height, this); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
this.contentPane.setLayout(getCenterLayout(body)); |
|
|
|
|
this.contentPane.add(this.body, BorderLayout.CENTER); |
|
|
|
|
this.contentPane.setPreferredSize(this.body.getPreferredSize()); |
|
|
|
|
|
|
|
|
|
add(this.contentPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
|