forked from nus-cs2103-AY1617S1/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from CS2103AUG2016-F11-C2/v0.1_HongWei
UI ready for v0.2
- Loading branch information
Showing
12 changed files
with
200 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package seedu.address.ui; | ||
|
||
import javafx.scene.Node; | ||
import javafx.scene.Scene; | ||
import javafx.scene.layout.AnchorPane; | ||
import javafx.stage.Stage; | ||
import seedu.address.commons.core.LogsCenter; | ||
import java.util.logging.Logger; | ||
|
||
public class WelcomeMessage extends UiPart { | ||
private static final Logger logger = LogsCenter.getLogger(WelcomeMessage.class); | ||
private static final String FXML = "CMDoWelcome.fxml"; | ||
private static final String ICON = "/images/Logo.png"; | ||
private static final String TITLE = "Welcome"; | ||
|
||
private Stage welcomeStage; | ||
|
||
private static AnchorPane welcomePane; | ||
|
||
@Override | ||
public void setNode(Node node) { | ||
welcomePane = (AnchorPane) node; | ||
} | ||
|
||
@Override | ||
public String getFxmlPath() { | ||
return FXML; | ||
} | ||
|
||
public static WelcomeMessage load(Stage welcomeMessageStage) { | ||
logger.fine("Showing welcome page."); | ||
WelcomeMessage welcomeMessage = UiPartLoader.loadUiPart(welcomeMessageStage, welcomePane, new WelcomeMessage()); | ||
welcomeMessage.configure(); | ||
return welcomeMessage; | ||
} | ||
|
||
private void configure(){ | ||
Scene scene = new Scene(welcomePane); | ||
//Null passed as the parent stage to make it non-modal. | ||
welcomeStage = createDialogStage(TITLE, null, scene); | ||
welcomeStage.setMaximized(true); //TODO: set a more appropriate initial size | ||
setIcon(welcomeStage, ICON); | ||
} | ||
|
||
public void show() { | ||
welcomeStage.showAndWait(); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.layout.AnchorPane?> | ||
<?import java.net.URL?> | ||
<AnchorPane styleClass="anchor-pane-with-border" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" | ||
fx:controller="seedu.address.ui.ResultDisplay"> | ||
<?import javafx.scene.layout.AnchorPane?> | ||
|
||
<AnchorPane styleClass="anchor-pane-with-border" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seedu.address.ui.ResultDisplay"> | ||
<stylesheets> | ||
<URL value="@DarkTheme.css" /> | ||
<URL value="@Extensions.css" /> | ||
<URL value="@DarkTheme.css" /> | ||
</stylesheets> | ||
</AnchorPane> |
Oops, something went wrong.