🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.beans
1 messages
1 total messages Started by alexnorth Tue, 04 Aug 1998 00:00
Overloading with unknown component type
#5
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads