Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8301121: RichTextArea Control (Incubator) #1524

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
f3b02a2
8301121: RichTextArea Control (Incubator)
andy-goryachev-oracle Jul 30, 2024
4c472b7
whitespace
andy-goryachev-oracle Jul 30, 2024
70481ee
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Aug 14, 2024
1cc7743
update + review comments
andy-goryachev-oracle Aug 14, 2024
3e55db8
whitespace
andy-goryachev-oracle Aug 14, 2024
a4d7d70
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Aug 20, 2024
780a385
navigation
andy-goryachev-oracle Aug 20, 2024
09a1637
cleanup
andy-goryachev-oracle Aug 20, 2024
c2d449f
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Aug 29, 2024
e035c16
improved vertical scrolling
andy-goryachev-oracle Aug 29, 2024
d813338
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Sep 5, 2024
bc1615c
fixes and review comments
andy-goryachev-oracle Sep 5, 2024
abb4e8d
bsd license for sample code
andy-goryachev-oracle Sep 6, 2024
1d511bf
moved to apps, review comments
andy-goryachev-oracle Sep 9, 2024
9a98453
removed duplicate files
andy-goryachev-oracle Sep 10, 2024
b68b375
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Sep 13, 2024
1aafab2
hide impl. detail
andy-goryachev-oracle Sep 13, 2024
6e66a0d
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Sep 17, 2024
0fdd998
fixed directories
andy-goryachev-oracle Sep 17, 2024
ce1b695
review comments
andy-goryachev-oracle Sep 17, 2024
42f84f5
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Sep 24, 2024
198206f
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Sep 27, 2024
b22f476
file operations
andy-goryachev-oracle Sep 30, 2024
4cd177f
review comments
andy-goryachev-oracle Oct 1, 2024
4abd8c4
whitespace
andy-goryachev-oracle Oct 1, 2024
aaa361c
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 1, 2024
de3947b
error feedback
andy-goryachev-oracle Oct 1, 2024
5482813
ensure cell is in the arrangement
andy-goryachev-oracle Oct 4, 2024
186db01
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 4, 2024
b8b5efe
review comments
andy-goryachev-oracle Oct 4, 2024
c0815f0
with styles
andy-goryachev-oracle Oct 4, 2024
1c6c1a5
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 4, 2024
845ead7
whitespace
andy-goryachev-oracle Oct 4, 2024
9a8bd55
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 11, 2024
3d0c13f
line numbers, highlight paragraph menus
andy-goryachev-oracle Oct 11, 2024
212d2b4
ask to save on closing window
andy-goryachev-oracle Oct 11, 2024
9325789
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 16, 2024
e00399b
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 18, 2024
b103e5e
consume conditionally
andy-goryachev-oracle Oct 21, 2024
eae50cc
break iterator
andy-goryachev-oracle Oct 21, 2024
faabd11
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 28, 2024
905c66b
review comments 1
andy-goryachev-oracle Oct 29, 2024
968989a
measurement node
andy-goryachev-oracle Oct 29, 2024
d92c428
review comments
andy-goryachev-oracle Oct 30, 2024
29ae5ff
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Oct 31, 2024
fa25011
javadoc
andy-goryachev-oracle Oct 31, 2024
6f0755f
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Nov 1, 2024
48086f7
validate model
andy-goryachev-oracle Nov 1, 2024
189c663
input map
andy-goryachev-oracle Nov 1, 2024
3946307
review comments
andy-goryachev-oracle Nov 1, 2024
728ca11
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Nov 5, 2024
a51ae15
readme
andy-goryachev-oracle Nov 5, 2024
78e5d97
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Nov 6, 2024
7e142dd
review comments
andy-goryachev-oracle Nov 7, 2024
05f533d
comment
andy-goryachev-oracle Nov 7, 2024
8a52cf7
settings
andy-goryachev-oracle Nov 13, 2024
b387615
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Nov 13, 2024
7585ae3
use focus traversal api
andy-goryachev-oracle Nov 13, 2024
5e2a68f
removed add handler last
andy-goryachev-oracle Nov 13, 2024
ff3f5af
removed function handler
andy-goryachev-oracle Nov 14, 2024
6a02a75
save as
andy-goryachev-oracle Nov 15, 2024
bf41505
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Nov 15, 2024
52a7dba
whitespace
andy-goryachev-oracle Nov 15, 2024
0dead10
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Nov 19, 2024
018bc86
hide skin input map
andy-goryachev-oracle Nov 19, 2024
e45be7b
Merge remote-tracking branch 'origin/master' into 8301121.RichTextArea
andy-goryachev-oracle Nov 20, 2024
1cd54b1
review comments
andy-goryachev-oracle Nov 21, 2024
e453f61
since 24
andy-goryachev-oracle Nov 22, 2024
b601327
whitespace
andy-goryachev-oracle Nov 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions apps/samples/RichTextAreaDemo/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" output="testbin" path="test">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/base">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/controls">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/fxml">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/graphics">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/media">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/swing">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/web">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/incubator.richtext">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/incubator.input">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions apps/samples/RichTextAreaDemo/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>RichTextAreaDemo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
21 changes: 21 additions & 0 deletions apps/samples/RichTextAreaDemo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Rich Text Area Demos

This project contains a number of applications that use the new RichTextArea and CodeArea controls,
for the purposes of demonstration of capabilities as well as testing.


- [RichEditorDemoApp.java](src/com/oracle/demo/richtext/editor/RichEditorDemoApp.java)
is an example of a simple standalone rich text editor that uses the new RichTextArea control.
- [RichTextAreaDemoApp.java](src/com/oracle/demo/richtext/rta/RichTextAreaDemoApp.java)
provides a demo application primarily for testing of the RichTextArea behavior.
- [CodeAreaDemoApp.java](src/com/oracle/demo/richtext/codearea/CodeAreaDemoApp.java)
provides a demo application primarily for testing of the CodeArea behavior.
- [NotebookMockupApp.java](src/com/oracle/demo/richtext/notebook/NotebookMockupApp.java)
provides an example of a GUI for an interactive notebook application.


## Building

Using Eclipse: import and run the project.

Using command line: TBD.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* Copyright (c) 2023, 2024, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the distribution.
* - Neither the name of Oracle Corporation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package com.oracle.demo.richtext.codearea;

import javafx.application.Application;
import javafx.stage.Stage;
import com.oracle.demo.richtext.settings.FxSettings;

/**
* CodeArea Demo Application.
*
* @author Andy Goryachev
*/
public class CodeAreaDemoApp extends Application {
public static void main(String[] args) {
Application.launch(CodeAreaDemoApp.class, args);
}

@Override
public void init() {
FxSettings.useDirectory(".CodeAreaDemoApp");
}

@Override
public void start(Stage stage) throws Exception {
new CodeAreaWindow(null).show();
}
}
Loading