🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.beans
Article #5

Overloading with unknown component type

#5
From: alexnorth
Date: Tue, 04 Aug 1998 00:00
32 lines
1921 bytes
Hi all,

I am trying to make a bean that can accept text from a number of different
text components. (I am using Jbuilder 2 with JDK1.1.6)

The code in the bean would look something like...

  public void sourceToASCII(FieldControl source) {

  public void sourceToASCII(TextArea source) {

  public void sourceToASCII() {


The first two methods work fine if they are called programmatically, but in
the properties for the bean I want to be able to select the 'source'
component. Then, when I call beanname.sourceToASCII(); it should take the
value that was entered in the properties window and use the correct method to
do the processing for that component.  I don't know how to find out what the
component type is of the object that can be selected from the properties
window.

Does anybody know how to do this?
I'm sorry for the lousy explanation but I can't really explain this simply.

Hope somebody can help
TIA

<= Alex =>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
Technical Details
Message-ID: <6q6jm4$gug$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcfbb,a6d256112f7d9404,start
X-Google-Attributes: gidfcfbb,public
X-Google-Thread: f74b3,a6d256112f7d9404,start
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,a6d256112f7d9404,start
X-Google-Attributes: gid10a146,public
From: alexnorth@my-dejanews.com
Subject: Overloading with unknown component type
Date: 1998/08/04
Message-ID: <6q6jm4$gug$1@nnrp1.dejanews.com>
X-Deja-AN: 377770237
X-Http-Proxy: 1.0 ccproxy.carel.fi:80 (Squid/1.1.22) for client 193.211.203.235
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Tue Aug 04 09:19:01 1998 GMT
Newsgroups: comp.lang.java.beans,borland.public.jbuilder.java.language,comp.lang.java.programmer
X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I)