这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@leewyatt
Copy link
Collaborator

feat(TextView): Enhance context menu and correct StyleableProperty bean;
refactor(TextViewSkin): Simplify SelectableText internal logic

TextView:

  • Conditionally show "Copy Selection" context menu item based on text selection.
  • Corrected getBean() in highlightFill, highlightStroke, and highlightTextFill StyleableObjectProperties to return TextView.this.
  • Improved Javadoc for highlight properties.
  • Aligned CSS default for -fx-highlight-fill with the JavaFX property default (Color.BLUE).

TextViewSkin:

  • Inlined child node setup in SelectableText constructor.
  • Removed unused setText(Text) method in SelectableText.
  • Removed redundant layoutChildren() override in SelectableText.

refactor(TextViewSkin): Simplify SelectableText internal logic

TextView:
- Conditionally show "Copy Selection" context menu item based on text selection.
- Corrected `getBean()` in `highlightFill`, `highlightStroke`, and `highlightTextFill` StyleableObjectProperties to return `TextView.this`.
- Improved Javadoc for highlight properties.
- Aligned CSS default for `-fx-highlight-fill` with the JavaFX property default (Color.BLUE).

TextViewSkin:
- Inlined child node setup in `SelectableText` constructor.
- Removed unused `setText(Text)` method in `SelectableText`.
- Removed redundant `layoutChildren()` override in `SelectableText`.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@dlemmermann dlemmermann merged commit 43bc387 into master May 26, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants