Re: Editor / Renderer: data flow
- From: "Denis" <denis.mazzucato@xxxxxxxxx>
- Date: 27 Feb 2006 00:01:14 -0800
zero wrote:
Register a TableModelListener on the TableModel, and if a tableChanged
event is raised, check if any formulas depend on the changed cell(s), and
update as needed. Checking which, if any, formulas depend on the changed
cell(s) can probably be optimised by subclassing TableModelListener, or
maybe a separate class can keep track of this info, depending on what best
fits your design.
But in this case I have to save all the information about any formula
on the model, right?
When an event tell me a cell is changed how can I find wich formula
need to be updated?
In my solution every cell involved in a formula have a Vector of
listeners (cells containing formula that require the current cell) to
inform. When a cell is updated, a message is send to all formulas to be
updated.
Is there an open source java grid to study?
Thanks.
DM
.
- References:
- Editor / Renderer: data flow
- From: Denis
- Re: Editor / Renderer: data flow
- From: zero
- Re: Editor / Renderer: data flow
- From: Denis
- Re: Editor / Renderer: data flow
- From: zero
- Editor / Renderer: data flow
- Prev by Date: How to focus onSearchPanel
- Next by Date: Can the content of JComboBox be RightAlignment
- Previous by thread: Re: Editor / Renderer: data flow
- Next by thread: Re: Why I can't add a JLabel object into JList/JComboBox?
- Index(es):
Relevant Pages
|