Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 826687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:27:16+00:00 2026-05-15T03:27:16+00:00

In my domain I have objects that are constantly being updated by a separate

  • 0

In my domain I have objects that are constantly being updated by a separate process, and I want a PropertySheetView to display the changing properties. The current implementation is set up such that the underlying domain model object is immutable, and thus when it changes, there is a new object published with a corresponding ID. At that point, my Node wrapping the object has subscribed, gets the updated object with a matching ID, and recreates the Sheet (via createSheet()) and calls setSheet with the updated information. This works fine at always showing the most recent version of the domain model object.

However, some of the properties are not read-only, but instead can be set. I would like to lock the sheet from being updated / overwritten, on either a row or sheet basis, while a property is being edited. In order to do this I need to listen for edit start and end calls so I can know when it’s safe to update the sheet again.

This is crucial for my application; as it stands now you can’t get through entering a new value before the sheet is refreshed and your edit goes away.

If it matters, I’m using a custom PropertyEditorSupport, but the default InplaceEditor.

I’ve done a lot of searching through the NetBeans source and I don’t see any exposed API settings to listen for this stuff.

SheetCellEditor (org.openide.explorer.propertysheet) exposes an addCellEditorListener method, but A) I can’t figure out how I would get a handle on the SheetCellEditor instance, and B) the methods exposed by SheetCellEditor are editingCanceled and editingStopped – there is no callback for editing started! Seems very silly. The SheetTable and BaseTable would expose this property too, as they extend JTable, but I cannot figure out how to get a handle to them either.

I notice that the CellEditor interface requires the method isCellEditable(), which supposedly returns true if the cell can be edited, and thus the editing begins. But again, this is implemented by the SheetCellEditor which is not a public class, and I don’t know how to get a reference to it.

Thank you for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:27:16+00:00Added an answer on May 15, 2026 at 3:27 am

    The best solution I could come up with was as follows:

    Create a custom property editor. Make that editor implement InplaceEditor. Return a StringInplaceEditor which is a textfield. Attach a focus listener to that textfield. When focus is in the text field, it is being edited. Otherwise it is not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume some domain and view objects (that have no common base class) public class
I have an application that uses Hibernate for its domain objects. One part of
I have a change tracking framework that tracks changed made to domain objects on
I have a dao jar file that contains all the domain objects and service
When you have a domain object that needs to display as an interface control,
I have a Map, that I want to persist. The domain object is something
Some of my PHP domain objects have properties which should be set from outside
We have some domain objects that are created at runtime - not by Spring.
Lets say I have some domain objects that will need to be serialized/packed using
I have domain objects in FluentNHibernate that have Id's that are of type object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.