-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
239 additions
and
60 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
richtextfx/src/integrationTest/java/org/fxmisc/richtext/api/FxmlTest.java
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,15 @@ | ||
package org.fxmisc.richtext.api; | ||
|
||
import javafx.fxml.FXML; | ||
import javafx.scene.input.MouseEvent; | ||
|
||
public class FxmlTest | ||
{ | ||
@FXML void testWithMouseEvent( MouseEvent ME ) { | ||
// We're just checking that a property can be set in FXML | ||
} | ||
|
||
@FXML void testWithOutMouseEvent() { | ||
// We're just checking that a property can be set in FXML | ||
} | ||
} |
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
23 changes: 11 additions & 12 deletions
23
richtextfx/src/integrationTest/resources/org/fxmisc/richtext/api/FxmlTest.fxml
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,18 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.layout.VBox?> | ||
<?import org.fxmisc.richtext.StyleClassedTextArea?> | ||
<?import javafx.scene.control.ContextMenu?> | ||
<?import javafx.scene.control.MenuItem?> | ||
|
||
<VBox xmlns:fx="http://javafx.com/fxml/1"> | ||
<StyleClassedTextArea editable="true" wrapText="true" autoScrollOnDragDesired="true" | ||
contextMenuXOffset="12.0" contextMenuYOffset="34.0" > | ||
<contextMenu> | ||
<ContextMenu> | ||
<items><MenuItem text="Test Item" /></items> | ||
</ContextMenu> | ||
</contextMenu> | ||
</StyleClassedTextArea> | ||
</VBox> | ||
|
||
<StyleClassedTextArea xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.fxmisc.richtext.api.FxmlTest" | ||
editable="true" wrapText="true" autoScrollOnDragDesired="true" | ||
onInsideSelectionMousePressReleased="#testWithMouseEvent" onOutsideSelectionMousePressed="#testWithOutMouseEvent" | ||
onNewSelectionDragFinished="#testWithMouseEvent" onSelectionDropped="#testWithOutMouseEvent" | ||
contextMenuXOffset="12.0" contextMenuYOffset="34.0" > | ||
<contextMenu> | ||
<ContextMenu> | ||
<items><MenuItem text="Test Item" /></items> | ||
</ContextMenu> | ||
</contextMenu> | ||
</StyleClassedTextArea> |
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
Oops, something went wrong.