Hi ekke,
until now Riena has now status bar, so it was not possible to
display validation messages.
This week I added the status bar and now (next mile stone)
validation messages can be displayed in the status bar.
Two steps are necessary to display the message:
1.
In the
SubModuleNodeViewController you must add the validation message to an
IEditableRidget.
Example:
txtNumbersOnly.addValidationMessage("Only numbers are
allowed!");
2. All ridgets with messages must be added to an instance of
StatusbarMessageMarkerViewer.
Example:
IStatusbarRidget statusbarRidget =
getSubApplicationController().getStatusbarRidget();
StatusbarMessageMarkerViewer statusbarMessageMarkerViewer = new
StatusbarMessageMarkerViewer(statusbarRidget);
statusbarMessageMarkerViewer.addRidget(txtNumbersOnly);
A Viewer for tooltips already exists. The viewer displays the
validation message in a tool tip of the widget.
Example:
TooltipMessageMarkerViewer tooltipMessageMarkerViewer = new
TooltipMessageMarkerViewer();
tooltipMessageMarkerViewer.addRidget(txtNumbersOnly);
For the future another viewer for message boxes is planed: MessageBoxMessageMarkerViewer
Regards
Thorsten
Von: riena-dev-bounces@xxxxxxxxxxx
[mailto:riena-dev-bounces@xxxxxxxxxxx] Im Auftrag von ekkehard
Gesendet: Montag, 14. Juli 2008 20:39
An: Riena Developers list
Betreff: [riena-dev] Marker - Test Client
I tried out the client application (MacOSX) and have a
question about the
red markers you show if a rule isn't valid left beside the field
the user sees that sometings wrong, but hi doesn't see whats wrong -
do you think about some description in a statusbar or while hovering over the
red marker ?
ekke