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


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

Re: @java.lang.DontOverride

From markspace <markspace@nospam.nospam>
Newsgroups comp.lang.java.programmer
Subject Re: @java.lang.DontOverride
Date 2014-05-14 10:18 -0700
Organization A noiseless patient Spider
Message-ID <ll08ha$8nu$1@dont-email.me> (permalink)
References <override-20140511031054@ram.dialup.fu-berlin.de> <lkmkeg$qko$1@dont-email.me> <1K5cv.7545$s87.2913@fx11.iad> <ll086i$l8k$1@speranza.aioe.org>

Show all headers | View raw


On 5/14/2014 10:12 AM, Sarah Connor wrote:

> Alternatively ... if your non-component logic has to do with some program
> state that the component displays and/or allows the user to manipulate,
> then you should probably separate it out into a model object and make the
> JComponent subclass a view object, similar to the existing ListModel and
> various list controls (JList, JComboBox, ...).
>


This is what I would prefer.  MVC is neither composition nor 
inheritance.  It just makes separate classes which aren't related and 
have no knowledge of each other.  This is vastly superior in many cases.

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


Thread

Re: @java.lang.DontOverride markspace <markspace@nospam.nospam> - 2014-05-10 18:40 -0700
  Re: @java.lang.DontOverride Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-05-12 08:25 -0700
    Re: @java.lang.DontOverride markspace <markspace@nospam.nospam> - 2014-05-12 10:11 -0700
    Re: @java.lang.DontOverride Sarah Connor <s.connor@gmail.invalid> - 2014-05-14 17:12 +0000
      Re: @java.lang.DontOverride markspace <markspace@nospam.nospam> - 2014-05-14 10:18 -0700

csiph-web