Michael Huebner wrote:
> how can I achive the following behavior:
> 
> I want the user to set the value for an IDREF attribute of an element 
> interactively,
> i.e. he should be able to select the target element (with an ID 
> attribute) by clicking on it in the styled view.
> 
> I think of a command (triggered by a button in the generated content of 
> this element)
> that changes the shape of the cursor (to signal the user the 
> "pick"-mode) and that
> shows the user where he can find possible targets by displaying a red 
> border around (the innermost of) them
> when the mouse is above it. The displayed element path could be that of 
> the temporarily selected target element.
> To support the user further, the attributes shown in the attribute 
> editor could be those of the temporaily selected target element.
> 
> To lead the user to possible targets, all targets could be visually 
> altered (e.g. blinking or underlined or strikingly colored) - 
> independent of the position of the mouse pointer.

It should be possible to write a custom command in Java which is very 
close to what you want.

If you don't want to develop in Java, you can use:

* a set-attribute-button();

* OR a command-button() triggering command putAttribute. Command 
putAttribute will display a dialog box containing the list of all IDs 
defined in the document. This dialog box has been improved in V2.5p1 
(not yet released).

(Yes, this is less visual than what you have described.)

See 
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s06s02.html#set-attribute-button

See
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s06s02.html#command-button

See
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s05s29.html



Reply via email to