Skip to content

Commit 7312ad1

Browse files
author
Andy Goryachev
committed
8301121: RichTextArea Control (Incubator)
8343646: Public InputMap (Incubator) Reviewed-by: kcr, lkostyra, arapte, aghaisas, kizune
1 parent 3cfd317 commit 7312ad1

File tree

209 files changed

+40084
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+40084
-9
lines changed
+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" output="testbin" path="test">
5+
<attributes>
6+
<attribute name="test" value="true"/>
7+
<attribute name="optional" value="true"/>
8+
</attributes>
9+
</classpathentry>
10+
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5">
11+
<attributes>
12+
<attribute name="test" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
16+
<attributes>
17+
<attribute name="module" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry combineaccessrules="false" kind="src" path="/base">
21+
<attributes>
22+
<attribute name="module" value="true"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry combineaccessrules="false" kind="src" path="/controls">
26+
<attributes>
27+
<attribute name="module" value="true"/>
28+
</attributes>
29+
</classpathentry>
30+
<classpathentry combineaccessrules="false" kind="src" path="/fxml">
31+
<attributes>
32+
<attribute name="module" value="true"/>
33+
</attributes>
34+
</classpathentry>
35+
<classpathentry combineaccessrules="false" kind="src" path="/graphics">
36+
<attributes>
37+
<attribute name="module" value="true"/>
38+
</attributes>
39+
</classpathentry>
40+
<classpathentry combineaccessrules="false" kind="src" path="/media">
41+
<attributes>
42+
<attribute name="module" value="true"/>
43+
</attributes>
44+
</classpathentry>
45+
<classpathentry combineaccessrules="false" kind="src" path="/swing">
46+
<attributes>
47+
<attribute name="module" value="true"/>
48+
</attributes>
49+
</classpathentry>
50+
<classpathentry combineaccessrules="false" kind="src" path="/web">
51+
<attributes>
52+
<attribute name="module" value="true"/>
53+
</attributes>
54+
</classpathentry>
55+
<classpathentry combineaccessrules="false" kind="src" path="/incubator.richtext">
56+
<attributes>
57+
<attribute name="module" value="true"/>
58+
</attributes>
59+
</classpathentry>
60+
<classpathentry combineaccessrules="false" kind="src" path="/incubator.input">
61+
<attributes>
62+
<attribute name="module" value="true"/>
63+
</attributes>
64+
</classpathentry>
65+
<classpathentry kind="output" path="bin"/>
66+
</classpath>
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>RichTextAreaDemo</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Rich Text Area Demos
2+
3+
This project contains a number of applications that use the new RichTextArea and CodeArea controls,
4+
for the purposes of demonstration of capabilities as well as testing.
5+
6+
7+
- [RichEditorDemoApp.java](src/com/oracle/demo/richtext/editor/RichEditorDemoApp.java)
8+
is an example of a simple standalone rich text editor that uses the new RichTextArea control.
9+
- [RichTextAreaDemoApp.java](src/com/oracle/demo/richtext/rta/RichTextAreaDemoApp.java)
10+
provides a demo application primarily for testing of the RichTextArea behavior.
11+
- [CodeAreaDemoApp.java](src/com/oracle/demo/richtext/codearea/CodeAreaDemoApp.java)
12+
provides a demo application primarily for testing of the CodeArea behavior.
13+
- [NotebookMockupApp.java](src/com/oracle/demo/richtext/notebook/NotebookMockupApp.java)
14+
provides an example of a GUI for an interactive notebook application.
15+
16+
17+
## Building
18+
19+
Using Eclipse: import and run the project.
20+
21+
Using command line: TBD.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* Copyright (c) 2023, 2024, Oracle and/or its affiliates.
3+
* All rights reserved. Use is subject to license terms.
4+
*
5+
* This file is available and licensed under the following license:
6+
*
7+
* Redistribution and use in source and binary forms, with or without
8+
* modification, are permitted provided that the following conditions
9+
* are met:
10+
*
11+
* - Redistributions of source code must retain the above copyright
12+
* notice, this list of conditions and the following disclaimer.
13+
* - Redistributions in binary form must reproduce the above copyright
14+
* notice, this list of conditions and the following disclaimer in
15+
* the documentation and/or other materials provided with the distribution.
16+
* - Neither the name of Oracle Corporation nor the names of its
17+
* contributors may be used to endorse or promote products derived
18+
* from this software without specific prior written permission.
19+
*
20+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31+
*/
32+
33+
package com.oracle.demo.richtext.codearea;
34+
35+
import javafx.application.Application;
36+
import javafx.stage.Stage;
37+
import com.oracle.demo.richtext.settings.FxSettings;
38+
39+
/**
40+
* CodeArea Demo Application.
41+
*
42+
* @author Andy Goryachev
43+
*/
44+
public class CodeAreaDemoApp extends Application {
45+
public static void main(String[] args) {
46+
Application.launch(CodeAreaDemoApp.class, args);
47+
}
48+
49+
@Override
50+
public void init() {
51+
FxSettings.useDirectory(".CodeAreaDemoApp");
52+
}
53+
54+
@Override
55+
public void start(Stage stage) throws Exception {
56+
new CodeAreaWindow(null).show();
57+
}
58+
}

0 commit comments

Comments
 (0)