Zhaolin Feng wrote:
> The whole thing remind me of the PropertyGrid class of C#. You can
> define a editor class for a custom type.
> 
> So, are you saying that the feature that I'm requesting is under
> development, at least for simple types(boolean, enumeration)?

The mapping for simple types like string, boolean or enumeration is 
already done.

> Or can I create a feature request on JIRA?

Sure, you can open a feature request. Depending on the complexity it 
will take more or less to implement. As I said, for simple widgets like 
a color picker it should be fairly easy to implement the mapping. For 
complex widgets like a dialog wizard there is more work to do.

> I see there is a related feature request:
> http://jira.xwiki.org/jira/browse/XWIKI-442

That is not related to the WYSIWYG editor.

> But there is no "parameter type" option in
> XWiki.WikiMacroParameterClass. So how to use it?

It seems the wiki macro parameters are less powerful than the Java macro 
parameters which have a type (the HTML macro which has a boolean 
parameter is written in Java).

Marius

> 
> 
> On Sat, Nov 14, 2009 at 4:53 PM, Marius Dumitru Florea
> <[email protected]> wrote:
>> Hi,
>>
>> Zhaolin Feng wrote:
>>> I'm learning to implement a macro for Lightbox Application as
>>> suggested by Guillaume.
>>>
>>> So far I've read:
>>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingMacros
>>>
>>> And I have a question. Is it possible to have other macro parameter
>>> types besides string? For examples, boolean, enumeration, filename,
>>> image, color. And it's even better to have color picker, image picker
>>> dialog automatically popped up when clicking.
>>>
>>> I see the HTML macro have boolean parameters. How is it achieved?
>>> Is is possible to reuse the image picker of the WYSIWYG editor?
>> Are you referring to the Insert Image wizard? The wizard itself is
>> reusable. It might require some changes though since you want to open a
>> wizard (Insert Image) from another wizard (Insert Macro) and wizards are
>> currently modal (one at a time).
>>
>> We are currently associating widgets to macro parameter types.
>> Associating simple widgets like a color picker is easy. For instance we
>> associate text input to strings and list box to boolean and
>> enumerations. Associating dialog wizards might require some extra work.
>>
>> Also, it might be desirable, as Jerome pointed out, to provide a way for
>> a rendering macro to register its own custom edit dialog in WYSIWYG mode.
>>
>> Marius
>>
>>>
>>>
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
> 
> 
> 
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to