Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
#10 [Performance] Loading more then 3000 testdata entities slows very…
Browse files Browse the repository at this point in the history
… Navigation Topics.
  • Loading branch information
Naoghuman committed Mar 5, 2017
1 parent 8828a62 commit fffed08
Show file tree
Hide file tree
Showing 12 changed files with 269 additions and 674 deletions.
1 change: 1 addition & 0 deletions release/Release_v0.3.1_2017-02-dd_HH-mm.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ topic through `key terms`.

#### Enhancement
#13 [JUnit] Create UnitTests for the class DataConverter.
#10 [Performance] Loading more then 3000 testdata entities slows very Navigation Topics.



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@
*/
public interface IActionConfiguration {

public static final String ACTION__APPLICATION__CREATE_NEW_EXERCISE = "ACTION__APPLICATION__CREATE_NEW_EXERCISE"; // NOI18N

public static final String ACTION__APPLICATION__OPEN_EXERCISE = "ACTION__APPLICATION__OPEN_EXERCISE"; // NOI18N
public static final String ACTION__APPLICATION__OPEN_TERM = "ACTION__APPLICATION__OPEN_TERM"; // NOI18N
public static final String ACTION__APPLICATION__OPEN_TOPIC = "ACTION__APPLICATION__OPEN_TOPIC"; // NOI18N

public static final String ACTION__APPLICATION__REFRESH_NAVIGATION_TAB_TERMS_WITH_SELECTION = "ACTION__APPLICATION__REFRESH_NAVIGATION_TAB_TERMS_WITH_SELECTION"; // NOI18N
public static final String ACTION__APPLICATION__REFRESH_NAVIGATION_TAB_TOPICS = "ACTION__APPLICATION__REFRESH_NAVIGATION_TAB_TOPICS"; // NOI18N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public interface IApplicationConfiguration {

public static final Duration DURATION__125 = Duration.millis(125.0d);

public static final String INFO__DEFAULT_REGEX = "%s"; // NOI18N
public static final String INFO__FOUNDED_TOPICS = "application.info.founded.topics"; // NOI18N
public static final String INFO__FOUNDED_TOPIC_ELEMENTS = "application.info.founded.topicelements"; // NOI18N
public static final String INFO__NO_ENTITIES_FOUND = "0"; // NOI18N

public static final String KEY__APPLICATION__BORDER_SIGN = "application.border.sign"; // NOI18N
public static final String KEY__APPLICATION__BUILD_DATETIME = "application.build.datetime"; // NOI18N
public static final String KEY__APPLICATION__DATABASE = "application.database"; // NOI18N
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.control.TreeView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.VBox?>

<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" style="-fx-background-color: AQUAMARINE;" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.github.naoghuman.abclist.view.application.ApplicationPresenter">
Expand All @@ -21,19 +22,49 @@
<children>
<ToolBar minHeight="-Infinity" prefHeight="40.0">
<items>
<Button fx:id="bNavigationCreateNewTopic" mnemonicParsing="false" onAction="#onActionCreateNewTopic" text="+To" />
<Button fx:id="bNavigationCreateNewTerm" mnemonicParsing="false" onAction="#onActionCreateNewTerm" text="+Te" />
<Button fx:id="bNavigationToHome" disable="true" mnemonicParsing="false" onAction="#onActionNavigationToHome" text="H" />
<Button fx:id="bNavigationToPrevious" disable="true" mnemonicParsing="false" onAction="#onActionNavigationToPrevious" text="&lt;" />
<Button fx:id="bNavigationToNext" disable="true" mnemonicParsing="false" onAction="#onActionNavigationToNext" text="&gt;" />
<Button fx:id="bNavigationShowAll" disable="true" mnemonicParsing="false" onAction="#onActionNavigationShowAll" text="_" />
</items>
</ToolBar>
<TabPane fx:id="tpNavigation" tabClosingPolicy="UNAVAILABLE" VBox.vgrow="ALWAYS">
<tabs>
<Tab closable="false" text="Topics">
<content>
<TreeView fx:id="tvNavigationTopics" showRoot="false" />
<SplitPane dividerPositions="0.5" orientation="VERTICAL">
<items>
<VBox prefHeight="200.0" prefWidth="100.0">
<children>
<HBox alignment="BOTTOM_LEFT">
<children>
<Label fx:id="lInfoFoundedTopics" text="&lt;info founded topics&gt;">
<HBox.margin>
<Insets left="7.0" />
</HBox.margin>
</Label>
<Pane HBox.hgrow="ALWAYS" />
<Button mnemonicParsing="false" onAction="#onActionCreateNewTopic" text="+" />
</children>
</HBox>
<ListView fx:id="lvNavigationTopics" VBox.vgrow="ALWAYS" />
</children>
</VBox>
<VBox prefHeight="200.0" prefWidth="100.0">
<children>
<HBox alignment="BOTTOM_LEFT">
<children>
<Label fx:id="lInfoFoundedElements" text="&lt;info founded elements&gt;">
<HBox.margin>
<Insets left="7.0" />
</HBox.margin>
</Label>
<Pane HBox.hgrow="ALWAYS" />
<Button fx:id="bNavigationCreateNewExercise" mnemonicParsing="false" onAction="#onActionCreateNewExercise" text="+" />
</children>
</HBox>
<ListView fx:id="lvNavigationElements" VBox.vgrow="ALWAYS" />
</children>
</VBox>
</items>
</SplitPane>
</content>
</Tab>
<Tab closable="false" text="Terms">
Expand All @@ -50,11 +81,11 @@
<Insets bottom="14.0" left="14.0" right="14.0" />
</VBox.margin>
</ComboBox>
<Label fx:id="lInfoFoundedTerms" text="Found 0 Terms">
<VBox.margin>
<Insets left="14.0" />
</VBox.margin>
</Label>
<Label fx:id="lInfoFoundedTerms" text="Found 0 Terms">
<VBox.margin>
<Insets left="14.0" />
</VBox.margin>
</Label>
<ListView fx:id="lvNavigationTerms" VBox.vgrow="ALWAYS" />
</children>
</VBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
* @author Naoghuman
*/
public enum ENavigationType {
EXERCISE,
TERM,
TOPIC,
WELCOME;

EXERCISE,
TERM,
TOPIC,
WELCOME;

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
* @author Naoghuman
*/
public final class Navigation {

private final ENavigationType navigationType;

private final long entityId;

public Navigation(ENavigationType navigationType, long entityId) {
this.navigationType = navigationType;
this.entityId = entityId;
}

public long getEntityId() {
return entityId;
}

public ENavigationType getNavigationType() {
return navigationType;
}

}

This file was deleted.

Loading

0 comments on commit fffed08

Please sign in to comment.