You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

nbarakat

Beginner

  • "nbarakat" started this thread

Posts: 11

Date of registration: May 24th 2010

  • Send private message

1

Saturday, July 10th 2010, 8:58pm

Property bag in Jabaco?

Hi Community,

Is there something equivalent to a property bag in jabaco for user controls? If not could someone suggest how this can be implemented under java?

Thanks

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Saturday, July 10th 2010, 9:22pm

Hi nbarakat,

please post an example that makes clear how you would use the property bag.

ragards

OlimilO

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

3

Saturday, July 10th 2010, 9:55pm

Jabaco controls have a "tag" property which could be used as property bag.

You could either assign a sequence of key=value pairs:

Jabaco Source

1
xyControl.tag = "key1=value1;key2=value2;key3=value3"


or you could pack a complete XML tree into the "tag" property.

The key=value pairs can be unpacked using the "Split()" method for strings.
I am sure that Google has a lot of hits redarding "java property bag".

Please post you findings here.

Success

A1880

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

4

Sunday, July 11th 2010, 12:17pm

Property bags can be used in VB5/VB6 as "VBRUN.PropertyBag" to persist properties of a control.
The Jabaco framework does not include a ported PropertyBag class yet. Donators are welcome, as always.

Rate this thread
WoltLab Burning Board