users@jaxb.java.net

mapping widgets in interface with attributes defined in schema

From: Jean-Marie Condom <jmc_at_meteorage.com>
Date: Mon, 24 Jan 2005 18:21:17 +0100

hello

is there a way to map directly a widget with a specific attribute
without having to use set operators ?

i take the example of a checkbox declared as follows :

JCheckBox mycheckbox = new JCheckBox("Proxy use");

and in my schema i have the following specification :

<xsd:complexType name="Proxy">
  <xsd:attribute name="proxyset" type="xsd:boolean" default="false"/>
  ...
</xsd:complexType>

i want to make a relationship between mycheckbox and the attribute
"proxyset"
so that i don't need to set the check box value in the classical
following manner :
 
mycheckbox.setSelected(...getProxy().isProxyset());

i think of something like :

mycheckbox.setDataItem("proxyset")

which would make the link directly and thus set implicitly
the value of proxyset attribute to mycheckbox

thanks in advance

Jean-Marie


-- 
Jean-Marie Condom
Software development team
Sté Météorage
2 av Angot
64053 PAU
France 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net