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


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

Re: ArrayAdapter

From Dirk Bruere at NeoPax <dirk.bruere@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: ArrayAdapter
Date 2011-03-31 16:35 +0100
Organization Dirk Bruere at Neopax
Message-ID <8vjl9tFa13U1@mid.individual.net> (permalink)
References (2 earlier) <slrnip8l9o.phi.avl@gamma.logic.tuwien.ac.at> <8vj6efFla6U1@mid.individual.net> <8vjevuFn7mU1@mid.individual.net> <8vjhisFai4U1@mid.individual.net> <8vji5pFfcsU1@mid.individual.net>

Show all headers | View raw


On 31/03/2011 15:42, Nigel Wade wrote:
> On 31/03/11 15:32, Dirk Bruere at NeoPax wrote:
>> On 31/03/2011 14:47, Nigel Wade wrote:
>>> On 31/03/11 12:21, Dirk Bruere at NeoPax wrote:
>>>
>>>>       private static void updateRadioTitles( )    {
>>>>
>>>>               ...
>>>>               radioTitleAdapter.add(titleStr);        //PROBLEM
>>>>               radioTitleAdapter.notifyDataSetChanged(); //PROBLEM
>>>>       }
>>>>
>>>> How do I get at radioTitleAdapter?
>>>>
>>>
>>> You ask whatever object knows where it is to let you have a copy of a
>>> reference to it.
>>>
>>> Since your code doesn't actually show that information I can't give
>>> specific answers. But presumably some instance of class controller [sic]
>>> knows where one can be found, since the onCreate() method of that class
>>> creates one.
>>>
>> Yes  -I have worked out that bit but do not know what it is,
>
> What what is?
>
> Some instance of the "controller" class is creating that ArrayAdaptor.
> So that instance knows what it created. Ask that instance for a copy of
> the reference to the ArrayAdaptor it created. Or get it to act as proxy
> and do the work for you by adding a method to that class which performs
> the necessary operations on its local copy of the reference.

I know - but I cannot find out how to do it!

If I try to add this:
ArrayAdapter<String> getArrayAdapter(){
         	return radioTitleAdapter;
         }
I get an error: "Syntax error on tokens, misplaced constructs".
I don't have a clue what it means

-- 
Dirk

http://www.neopax.com/technomage/ - My new book - Magick and Technology

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


Thread

ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 02:03 +0100
  Re: ArrayAdapter Roedy Green <see_website@mindprod.com.invalid> - 2011-03-30 19:25 -0700
    Re: ArrayAdapter Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-03-30 19:42 -0700
      Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 04:50 +0100
  Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-03-31 16:02 +1300
  Re: ArrayAdapter Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-03-31 06:57 -0300
    Re: ArrayAdapter Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-03-31 10:19 +0000
      Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 12:21 +0100
        Java OOP tutorial (Was: ArrayAdapter) Michal Kleczek <kleku75@gmail.com> - 2011-03-31 13:52 +0200
          Re: Java OOP tutorial (Was: ArrayAdapter) Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 13:16 +0100
          Re: Java OOP tutorial (Was: ArrayAdapter) "John B. Matthews" <nospam@nospam.invalid> - 2011-03-31 16:19 -0400
        Re: ArrayAdapter Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-03-31 14:47 +0100
          Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 15:32 +0100
            Re: ArrayAdapter Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-03-31 15:42 +0100
              Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 16:35 +0100
                Re: ArrayAdapter markspace <-@.> - 2011-03-31 09:56 -0700
                Re: ArrayAdapter Patricia Shanahan <pats@acm.org> - 2011-03-31 10:09 -0700
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 21:26 +0100
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 21:29 +0100
                Re: ArrayAdapter Patricia Shanahan <pats@acm.org> - 2011-03-31 13:50 -0700
                Re: ArrayAdapter markspace <-@.> - 2011-03-31 15:27 -0700
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 00:42 +0100
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 00:38 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:08 +1300
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 01:10 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:45 +1300
        Re: ArrayAdapter Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-03-31 17:31 +0000
        Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:06 +1300
          Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 01:13 +0100
            Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:35 +1300
  Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 02:41 +0100
    Re: ArrayAdapter Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-04-02 04:19 +0200
      Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 03:55 +0100
        Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-02 17:12 +1300
          Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 05:18 +0100
            Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-02 19:58 +1300
              Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 14:48 +0100
                Re: ArrayAdapter Lew <noone@lewscanon.com> - 2011-04-02 10:48 -0400
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-03 10:50 +1200
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 01:41 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-03 12:53 +1200
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 02:52 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-03 19:56 +1200
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 17:07 +0100
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 17:27 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-04 10:19 +1200
                Re: ArrayAdapter Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-04-03 22:55 -0300

csiph-web