billroper: (Default)
[personal profile] billroper
This was entertaining. I have ported a couple of thousand lines of my experimental code from C++ to Java. In the process, I've rearranged it so that many of the interesting objects are now members of enumerated types in Java, each of which knows how to write the encoded XML that the consumer of the objects wants.

Better yet, I've added a style class that allows me to stack those interesting objects together to control how our data will be displayed in the grid. And the style class knows how to write the encoded XML that the consumer of the objects wants as well.

What this means is that all of the little magic numbers that were embedded in our code have been sent off to live in my new enumerated types and the style class, so that when we want to apply a style to a cell, we can just apply it by name instead of having to remember the number for the particular style that we want to use here. Better yet, I can create a style, clone it, and then add a bold attribute to it and stick it into our style sheet.

This should make life *much* simpler.

Next week, I'll generate all of the necessary styles and plug this in and see how it works.

Profile

billroper: (Default)
billroper

June 2025

S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 26th, 2025 07:34 pm
Powered by Dreamwidth Studios