Skip to content

Commit

Permalink
Finished Commenting and Refactoring a lot of Getters and Setters in D…
Browse files Browse the repository at this point in the history
…ashboardUI

#8 #7
  • Loading branch information
sguergachi committed Oct 26, 2012
1 parent 2fcf10e commit 60190c0
Show file tree
Hide file tree
Showing 2 changed files with 400 additions and 147 deletions.
37 changes: 20 additions & 17 deletions src/aurora/V1/core/screen_handler/DashboardHandler.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Copyright 2012 Sardonix Creative.
*
* This work is licensed under the
* This work is licensed under the
* Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
* To view a copy of this license, visit
* To view a copy of this license, visit
*
* http://creativecommons.org/licenses/by-nc-nd/3.0/
*
* or send a letter to Creative Commons, 444 Castro Street, Suite 900,
* or send a letter to Creative Commons, 444 Castro Street, Suite 900,
* Mountain View, California, 94041, USA.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -45,7 +45,6 @@ public DashboardHandler(DashboardUI dashboardUI) {

public class RightListener implements ActionListener {


public void actionPerformed(ActionEvent e) {

dashboardUI.getCarousel().MoveLeft();
Expand All @@ -56,8 +55,6 @@ public void actionPerformed(ActionEvent e) {

public class LeftListener implements ActionListener {



@Override
public void actionPerformed(ActionEvent e) {

Expand All @@ -68,7 +65,6 @@ public void actionPerformed(ActionEvent e) {

public class CarouselKeyListener implements KeyListener {


@Override
public void keyTyped(KeyEvent e) {
}
Expand Down Expand Up @@ -98,13 +94,17 @@ public void keyReleased(KeyEvent e) {

if (pane == dashboardUI.getLibraryPane()) {
//action on click right Panel
GameLibraryUI libraryUI = new GameLibraryUI(dashboardUI.getStartUI().getAuroraStorage(), dashboardUI, dashboardUI.getCoreUI());
GameLibraryUI libraryUI = new GameLibraryUI(dashboardUI
.getStartUI().getAuroraStorage(), dashboardUI,
dashboardUI.getCoreUI());
libraryUI.loadUI();
} else if (pane == dashboardUI.getProfilePane()) {
GamerProfileUI profileUI = new GamerProfileUI(dashboardUI, dashboardUI.getCoreUI());
GamerProfileUI profileUI = new GamerProfileUI(dashboardUI,
dashboardUI.getCoreUI());
profileUI.loadUI();
} else if (pane == dashboardUI.getSettingsPane()) {
SettingsUI settingsUI = new SettingsUI(dashboardUI, dashboardUI.getCoreUI());
SettingsUI settingsUI = new SettingsUI(dashboardUI,
dashboardUI.getCoreUI());
settingsUI.loadUI();
} else if (pane == dashboardUI.getAuroraNetPane()) {
// do nothing for now
Expand All @@ -117,12 +117,13 @@ public void keyReleased(KeyEvent e) {

public class CarouselLibraryMouseListener implements MouseListener {


@Override
public void mouseClicked(MouseEvent e) {
System.out.println("CLICKED");
if (dashboardUI != null) {
GameLibraryUI libraryUI = new GameLibraryUI(dashboardUI.getStartUI().getAuroraStorage(), dashboardUI, dashboardUI.getCoreUI());
GameLibraryUI libraryUI = new GameLibraryUI(dashboardUI
.getStartUI().getAuroraStorage(), dashboardUI,
dashboardUI.getCoreUI());
libraryUI.loadUI();
}
}
Expand All @@ -147,7 +148,6 @@ public void mouseExited(MouseEvent e) {
///....Mouse Click Handlers...////////
public class CarouselPaneMouseListener implements MouseListener {


@Override
public void mouseClicked(MouseEvent e) {
System.out.println("CLICKED");
Expand All @@ -161,14 +161,18 @@ public void mouseClicked(MouseEvent e) {
if (pane == dashboardUI.getLibraryPane()) {
//action on click right Panel
if (dashboardUI != null) {
GameLibraryUI libraryUI = new GameLibraryUI(dashboardUI.getStartUI().getAuroraStorage(), dashboardUI, dashboardUI.getCoreUI());
GameLibraryUI libraryUI = new GameLibraryUI(dashboardUI
.getStartUI().getAuroraStorage(), dashboardUI,
dashboardUI.getCoreUI());
libraryUI.loadUI();
}
} else if (pane == dashboardUI.getProfilePane()) {
GamerProfileUI profileUI = new GamerProfileUI(dashboardUI, dashboardUI.getCoreUI());
GamerProfileUI profileUI = new GamerProfileUI(dashboardUI,
dashboardUI.getCoreUI());
profileUI.loadUI();
} else if (pane == dashboardUI.getSettingsPane()) {
SettingsUI settingsUI = new SettingsUI(dashboardUI, dashboardUI.getCoreUI());
SettingsUI settingsUI = new SettingsUI(dashboardUI,
dashboardUI.getCoreUI());
settingsUI.loadUI();
} else if (pane == dashboardUI.getAuroraNetPane()) {
// do nothing for now
Expand All @@ -195,7 +199,6 @@ public void mouseExited(MouseEvent e) {

public class carouselPaneMouseWheelListener implements MouseWheelListener {


@Override
public void mouseWheelMoved(MouseWheelEvent e) {

Expand Down
Loading

0 comments on commit 60190c0

Please sign in to comment.