Moxkiriyaプロジェクト事前開発用の作業部屋
Revision | 059f44fe67165dd01e78758d260001045553078a (tree) |
---|---|
Zeit | 2018-10-10 23:10:12 |
Autor | Harold_Andoh <andolloyd@gmai...> |
Commiter | Harold_Andoh |
[Moxkiriya7]
@@ -60,30 +60,32 @@ public class Main extends Application { | ||
60 | 60 | WikiMainWindow.CloseType closeType = WikiMainWindow.CloseType.EXIT; |
61 | 61 | |
62 | 62 | do { |
63 | + String AppRoot = null; | |
64 | + String wikiroot = null; | |
63 | 65 | String selectedParty = loadSelectedParty(); |
64 | 66 | |
65 | 67 | if(selectedParty != null) { |
66 | - String AppRoot = settingManager_.get(SettingManager.SETINGKEY_MOXKIRIYAROOT); | |
67 | - String wikiroot = settingManager_.get(SettingManager.SETTINGSKEY_WIKIROOT); | |
68 | - | |
69 | - if( (AppRoot == null) | |
70 | - || (wikiroot == null)) { | |
71 | - /* | |
72 | - * selectPartyを未設定の場合 | |
73 | - */ | |
74 | - Stage stage = new Stage(StageStyle.UNDECORATED); | |
75 | - stage.initOwner(primaryStage); | |
76 | - showConfigSettingsDialog(stage, selectedParty); | |
77 | - } | |
78 | - | |
68 | + AppRoot = settingManager_.get(SettingManager.SETINGKEY_MOXKIRIYAROOT); | |
69 | + wikiroot = settingManager_.get(SettingManager.SETTINGSKEY_WIKIROOT); | |
70 | + } | |
71 | + | |
72 | + if( (AppRoot == null) | |
73 | + || (wikiroot == null)) { | |
79 | 74 | /* |
80 | - * Show a wiki main window. | |
75 | + * selectPartyを未設定の場合 | |
81 | 76 | */ |
82 | - closeType = showWikiMainWindow(); | |
83 | - | |
84 | - if(closeType == WikiMainWindow.CloseType.RESTART) { | |
85 | - wikiMainWindow_.closeSession(); | |
86 | - } | |
77 | + Stage stage = new Stage(StageStyle.UNDECORATED); | |
78 | + stage.initOwner(primaryStage); | |
79 | + showConfigSettingsDialog(stage, selectedParty); | |
80 | + } | |
81 | + | |
82 | + /* | |
83 | + * Show a wiki main window. | |
84 | + */ | |
85 | + closeType = showWikiMainWindow(); | |
86 | + | |
87 | + if(closeType == WikiMainWindow.CloseType.RESTART) { | |
88 | + wikiMainWindow_.closeSession(); | |
87 | 89 | } |
88 | 90 | } while(closeType != WikiMainWindow.CloseType.EXIT); |
89 | 91 | } catch(Exception e) { |
@@ -70,7 +70,7 @@ | ||
70 | 70 | <URL value="@application.css" /> |
71 | 71 | </stylesheets> |
72 | 72 | </AnchorPane> |
73 | - <Hyperlink id="hyperlinkMain" fx:id="webViewHyperlinkMain" alignment="CENTER" onMouseClicked="#onMouseClickedWebViewHyperlinkMain" prefHeight="30.0" prefWidth="100.0" style="" styleClass="webViewMainHyperlink" text="%key.Hyperlink.Main" textAlignment="CENTER" textOverrun="ELLIPSIS" AnchorPane.leftAnchor="180.0" AnchorPane.topAnchor="55.0"> | |
73 | + <Hyperlink id="hyperlinkMain" fx:id="webViewHyperlinkMain" alignment="CENTER" onMouseClicked="#onMouseClickedWebViewHyperlinkMain" prefHeight="30.0" prefWidth="100.0" style="" text="%key.Hyperlink.Main" textAlignment="CENTER" textOverrun="ELLIPSIS" AnchorPane.leftAnchor="180.0" AnchorPane.topAnchor="55.0"> | |
74 | 74 | <stylesheets> |
75 | 75 | <URL value="@application.css" /> |
76 | 76 | </stylesheets> |
@@ -98,9 +98,9 @@ | ||
98 | 98 | <URL value="@application.css" /> |
99 | 99 | </stylesheets> |
100 | 100 | </AnchorPane> |
101 | - <AnchorPane id="webViewHistoryAnchorPane" fx:id="webViewAnchorPaneHistory" prefHeight="528.0" prefWidth="843.0" style="" styleClass="webViewHistoryAnchorPane" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="180.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="80.0"> | |
101 | + <AnchorPane id="webViewHistoryAnchorPane" fx:id="webViewAnchorPaneHistory" prefHeight="528.0" prefWidth="843.0" style="" styleClass="webViewMainAnchorPane" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="180.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="85.0"> | |
102 | 102 | <children> |
103 | - <AnchorPane fx:id="webViewHistoryBreadcrumbs" prefHeight="40.0" prefWidth="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> | |
103 | + <AnchorPane fx:id="webViewHistoryBreadcrumbs" prefHeight="35.0" prefWidth="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="5.0"> | |
104 | 104 | <children> |
105 | 105 | <FlowPane fx:id="webViewHistoryBreadcrumbsPane" prefHeight="40.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> |
106 | 106 | <padding> |
@@ -136,11 +136,16 @@ | ||
136 | 136 | <URL value="@application.css" /> |
137 | 137 | </stylesheets> |
138 | 138 | </AnchorPane> |
139 | - <Hyperlink fx:id="webViewHyperlinkHistory" alignment="CENTER" maxWidth="-1.0" onMouseClicked="#onMouseClickedWebViewHyperlinkHistory" prefHeight="30.0" prefWidth="100.0" style="" styleClass="webViewHistoryHyperlink" text="%key.Hyperlink.History" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="55.0"> | |
139 | + <Hyperlink fx:id="webViewHyperlinkHistory" alignment="CENTER" maxWidth="-1.0" onMouseClicked="#onMouseClickedWebViewHyperlinkHistory" prefHeight="30.0" prefWidth="100.0" style="" text="%key.Hyperlink.History" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="55.0"> | |
140 | 140 | <stylesheets> |
141 | 141 | <URL value="@application.css" /> |
142 | 142 | </stylesheets> |
143 | 143 | </Hyperlink> |
144 | + <Label prefHeight="29.999900000002526" prefWidth="594.0" styleClass="webViewGapspace" text="" AnchorPane.leftAnchor="280.0" AnchorPane.rightAnchor="100.0" AnchorPane.topAnchor="55.0"> | |
145 | + <stylesheets> | |
146 | + <URL value="@application.css" /> | |
147 | + </stylesheets> | |
148 | + </Label> | |
144 | 149 | </children> |
145 | 150 | </AnchorPane> |
146 | 151 | <AnchorPane fx:id="AnchorPaneContentList" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="535.0" prefWidth="590.0" visible="false" AnchorPane.bottomAnchor="70.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="73.0"> |
@@ -262,6 +262,8 @@ public class WikiMainWindowController implements Initializable { | ||
262 | 262 | wikiEngine_.setPageDataMap(pageData); |
263 | 263 | loadWikiContent(); |
264 | 264 | |
265 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
266 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
265 | 267 | webViewAnchorPaneMain.setVisible(true); |
266 | 268 | webViewAnchorPaneHistory.setVisible(false); |
267 | 269 | } catch (Exception e) { |
@@ -331,6 +333,8 @@ public class WikiMainWindowController implements Initializable { | ||
331 | 333 | } |
332 | 334 | }); |
333 | 335 | |
336 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
337 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
334 | 338 | webViewAnchorPaneMain.setVisible(true); |
335 | 339 | webViewAnchorPaneHistory.setVisible(false); |
336 | 340 | } |
@@ -500,6 +504,8 @@ public class WikiMainWindowController implements Initializable { | ||
500 | 504 | wikiEngine_.setPageDataMap(map); |
501 | 505 | loadWikiContent(); |
502 | 506 | |
507 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
508 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
503 | 509 | webViewAnchorPaneMain.setVisible(true); |
504 | 510 | webViewAnchorPaneHistory.setVisible(false); |
505 | 511 | } |
@@ -538,6 +544,9 @@ public class WikiMainWindowController implements Initializable { | ||
538 | 544 | AnchorPaneEdit.setVisible(false); |
539 | 545 | AnchorPaneContentList.setVisible(false); |
540 | 546 | AnchorPaneWebView.setVisible(true); |
547 | + | |
548 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
549 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
541 | 550 | webViewAnchorPaneMain.setVisible(true); |
542 | 551 | webViewAnchorPaneHistory.setVisible(false); |
543 | 552 | } |
@@ -601,6 +610,9 @@ public class WikiMainWindowController implements Initializable { | ||
601 | 610 | AnchorPaneEdit.setVisible(false); |
602 | 611 | AnchorPaneContentList.setVisible(false); |
603 | 612 | AnchorPaneWebView.setVisible(true); |
613 | + | |
614 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
615 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
604 | 616 | webViewAnchorPaneMain.setVisible(true); |
605 | 617 | webViewAnchorPaneHistory.setVisible(false); |
606 | 618 |
@@ -628,6 +640,9 @@ public class WikiMainWindowController implements Initializable { | ||
628 | 640 | AnchorPaneEdit.setVisible(false); |
629 | 641 | AnchorPaneContentList.setVisible(false); |
630 | 642 | AnchorPaneWebView.setVisible(true); |
643 | + | |
644 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
645 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
631 | 646 | webViewAnchorPaneMain.setVisible(true); |
632 | 647 | webViewAnchorPaneHistory.setVisible(false); |
633 | 648 |
@@ -643,6 +658,9 @@ public class WikiMainWindowController implements Initializable { | ||
643 | 658 | try { |
644 | 659 | wikiEngine_.refreshSession(); |
645 | 660 | loadWikiContent(); |
661 | + | |
662 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
663 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
646 | 664 | webViewAnchorPaneMain.setVisible(true); |
647 | 665 | webViewAnchorPaneHistory.setVisible(false); |
648 | 666 | } catch (Exception e) { |
@@ -655,6 +673,9 @@ public class WikiMainWindowController implements Initializable { | ||
655 | 673 | try { |
656 | 674 | wikiEngine_.setPageDataMap(WikiEngine.MAINPAGE_TITLE); |
657 | 675 | loadWikiContent(); |
676 | + | |
677 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
678 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
658 | 679 | webViewAnchorPaneMain.setVisible(true); |
659 | 680 | webViewAnchorPaneHistory.setVisible(false); |
660 | 681 | } catch (Exception e) { |
@@ -673,6 +694,8 @@ public class WikiMainWindowController implements Initializable { | ||
673 | 694 | |
674 | 695 | @FXML |
675 | 696 | public void onMouseClickedWebViewHyperlinkMain() { |
697 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
698 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
676 | 699 | webViewAnchorPaneMain.setVisible(true); |
677 | 700 | webViewAnchorPaneHistory.setVisible(false); |
678 | 701 | } |
@@ -702,6 +725,8 @@ public class WikiMainWindowController implements Initializable { | ||
702 | 725 | } |
703 | 726 | } |
704 | 727 | |
728 | + webViewHyperlinkMain.setId("webViewMainHyperlinkInactive"); | |
729 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkActive"); | |
705 | 730 | webViewAnchorPaneMain.setVisible(false); |
706 | 731 | webViewAnchorPaneHistory.setVisible(true); |
707 | 732 |
@@ -738,6 +763,9 @@ public class WikiMainWindowController implements Initializable { | ||
738 | 763 | wikiEngine_.clearHistory(); |
739 | 764 | wikiEngine_.setPageDataMap(WikiEngine.MAINPAGE_TITLE); |
740 | 765 | loadWikiContent(); |
766 | + | |
767 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
768 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
741 | 769 | webViewAnchorPaneMain.setVisible(true); |
742 | 770 | webViewAnchorPaneHistory.setVisible(false); |
743 | 771 | } catch (Exception e) { |
@@ -806,6 +834,9 @@ public class WikiMainWindowController implements Initializable { | ||
806 | 834 | */ |
807 | 835 | AnchorPaneWebView.setVisible(true); |
808 | 836 | AnchorPaneEdit.setVisible(false); |
837 | + | |
838 | + webViewHyperlinkMain.setId("webViewMainHyperlinkActive"); | |
839 | + webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive"); | |
809 | 840 | webViewAnchorPaneMain.setVisible(true); |
810 | 841 | webViewAnchorPaneHistory.setVisible(false); |
811 | 842 | } |
@@ -11,19 +11,18 @@ | ||
11 | 11 | } |
12 | 12 | |
13 | 13 | .webViewMainAnchorPane { |
14 | - -fx-border-color:#f5f5f5; | |
14 | + -fx-border-color:#c0c0c0; | |
15 | 15 | -fx-border-style:solid; |
16 | - -fx-border-width:1px; | |
16 | + -fx-border-width:0px 1px 1px 1px; | |
17 | 17 | -fx-background-color: #f5f5f5; |
18 | 18 | } |
19 | 19 | |
20 | -.webViewHistoryAnchorPane { | |
21 | - -fx-border-color:#dcdcdc; | |
20 | +.webViewGapspace { | |
21 | + -fx-border-color:#c0c0c0; | |
22 | 22 | -fx-border-style:solid; |
23 | - -fx-border-width:1px; | |
24 | - -fx-background-color: #dcdcdc; | |
23 | + -fx-border-width:0px 0px 1px 0px; | |
24 | + -fx-background-color: transparent; | |
25 | 25 | } |
26 | - | |
27 | 26 | .webViewHistoryContentAnchorPane { |
28 | 27 | -fx-border-color:#c0c0c0; |
29 | 28 | -fx-border-style:solid; |
@@ -36,17 +35,17 @@ | ||
36 | 35 | -fx-alignment:center; |
37 | 36 | } |
38 | 37 | |
39 | -.webViewMainHyperlink { | |
38 | +#webViewMainHyperlinkActive { | |
40 | 39 | -fx-background-color: #f5f5f5; |
41 | - -fx-border-color: #f5f5f5; | |
42 | - -fx-border-width: 1px; | |
40 | + -fx-border-color: #c0c0c0; | |
41 | + -fx-border-width:1px 1px 0px 1px; | |
43 | 42 | -fx-border-style: solid; |
44 | 43 | } |
45 | 44 | |
46 | -.webViewHistoryHyperlink { | |
47 | - -fx-background-color: #dcdcdc; | |
48 | - -fx-border-color: #dcdcdc; | |
49 | - -fx-border-width: 1px; | |
45 | +#webViewMainHyperlinkInactive { | |
46 | + -fx-background-color: #e0e0e0; | |
47 | + -fx-border-color: #c0c0c0; | |
48 | + -fx-border-width:1px 1px 1px 1px; | |
50 | 49 | -fx-border-style: solid; |
51 | 50 | } |
52 | 51 |