You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lécharny <el...@gmail.com> on 2015/05/15 10:43:23 UTC
[Studio] common widgets
Hi,
as I'm working on the OpenLDAP configuration editor, I discovered that
we are using a lot of values that are represented in a table, like this
one :
TCPBuffers
+-----------------------+
| xyz | (Add)
| abc | (Edit)
| | (Delete)
+-----------------------+
This is the case for many multiple value attributes. There are also many
values in the ApacheDS configuration editor that are using the same
pattern : SASL realms, Indexed attributes, Partitions, Password
Policies, Replication.
We also have many input text which are handling integer values, with
some limits.
Those widgets could most certainly be shared, but atm, we have to define
each one of them as if they were unique, which ends with a lot of
duplicate code.
I'd like to federate such code, defining a widget for the table and the
integer input box, with the needed parameters to make them specific. The
question would be : where to put those common widgets ? is
o.a.d.studio.common.ui the right place ?
Thanks !
Re: [Studio] common widgets
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 15/05/15 15:23, Zheng, Kai a écrit :
>>> o.a.d.studio.common.ui
> It looks a good place. By the way, is it an OSGI plugin or just a Java package?
common.ui is a OSGi plugin
RE: [Studio] common widgets
Posted by "Zheng, Kai" <ka...@intel.com>.
>> o.a.d.studio.common.ui
It looks a good place. By the way, is it an OSGI plugin or just a Java package?
Regards,
Kai
-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com]
Sent: Friday, May 15, 2015 4:43 PM
To: Apache Directory Developers List
Subject: [Studio] common widgets
Hi,
as I'm working on the OpenLDAP configuration editor, I discovered that we are using a lot of values that are represented in a table, like this one :
TCPBuffers
+-----------------------+
| xyz | (Add)
| abc | (Edit)
| | (Delete)
+-----------------------+
This is the case for many multiple value attributes. There are also many values in the ApacheDS configuration editor that are using the same pattern : SASL realms, Indexed attributes, Partitions, Password Policies, Replication.
We also have many input text which are handling integer values, with some limits.
Those widgets could most certainly be shared, but atm, we have to define each one of them as if they were unique, which ends with a lot of duplicate code.
I'd like to federate such code, defining a widget for the table and the integer input box, with the needed parameters to make them specific. The question would be : where to put those common widgets ? is o.a.d.studio.common.ui the right place ?
Thanks !
Re: [Studio] common widgets
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 05/15/2015 10:43 AM, Emmanuel Lécharny wrote:
> I'd like to federate such code, defining a widget for the table and the
> integer input box, with the needed parameters to make them specific. The
> question would be : where to put those common widgets ? is
> o.a.d.studio.common.ui the right place ?
Yes, that is the right place.
Kind Regards,
Stefan