Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31931

Re: Vertical Text - part 3

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Vertical Text - part 3
Date 2015-07-02 21:55 +0000
Organization A noiseless patient Spider
Message-ID <mn4c18$du3$1@dont-email.me> (permalink)
References (1 earlier) <mn3d9d$qha$1@dont-email.me> <1980b894-6ca3-48f5-b70a-1628c56185e1@googlegroups.com> <mn3ic8$eq3$1@dont-email.me> <mn40en$ogv$3@dont-email.me> <ebc01b74-ef2b-49be-bff1-746035119740@googlegroups.com>

Show all headers | View raw


On Thu, 02 Jul 2015 12:54:41 -0700, e.d.programmer wrote:

> That screenshot is confusing.  Are you attempting to render everything
> on that window in a single JTable?  It looks like several linked tables.
>
No JTables are used at all. Its quite a different structure, based on 
se.datadosen.component.ControlPanel instances which are laid out using 
the se.dosen.component.RiverLayout layout manager and switched with the 
Roles menu, which is dynamically built when the program starts up and 
reads its configuration.

For starters, there are one or more rosters, each on a different 
ControlPanel instance, managed and switched with the CardLayout layout 
manager and an ArrayList of ControlPanel instances. Each ControlPanel 
instance is laid out with rows of display classes which have a 1:N 
relationship with the data classes in the Model - 1:N because some data 
classes (e.g. the ones above the row of names, display different aspects 
of the same underlying class. And its normal for each named person to 
take part in more than one roster, so their N associated display classes 
appear on more than one 'card' as well.

User actions (allocate/deallocate/swap duties) are applied directly to 
the the class instances in Model as you'd expect. Each 'card' has a list 
of all the display classes on the card, so refreshing the display merely 
involves walking the list and calling the refresh() method of each 
display class instance in the list, which causes it to retrieve its 
displayed value from the Model. If you think that makes the Model sound 
like an in-memory database plus database procedures you'd be right and, 
yes, I did draw an Entity Relationship Diagram (ERD) as the first step in 
designing this tool. The data structure and its internal relationships 
are surprisingly complex and would have been quite difficult to get right 
without drawing a ERD in 3rd normal form.
    

-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-01 16:54 +0000
  Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-01 18:25 -0400
    Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-01 23:09 +0000
      Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-01 19:44 -0400
        Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 00:19 +0000
          Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-04 18:18 +0000
  Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-02 09:09 -0400
    Re: Vertical Text - part 3 e.d.programmer@gmail.com - 2015-07-02 07:24 -0700
      Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-02 10:36 -0400
        Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 18:38 +0000
          Re: Vertical Text - part 3 e.d.programmer@gmail.com - 2015-07-02 12:54 -0700
            Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 21:55 +0000
              Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-02 18:46 -0400
                Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-03 10:38 +0000
                Re: Vertical Text - part 3 Eternal Hope <laughingspam99@gmail.com> - 2015-07-03 16:44 +0100
          Re: Vertical Text - part 3 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-07-02 16:21 -0700
            Re: Vertical Text - part 3 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-07-02 16:43 -0700
      Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 18:01 +0000
    Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 17:44 +0000
  Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-03 08:20 -0400
    Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-03 10:01 -0400

csiph-web