Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#711 closed (fixed)

Let the user show/hide fieldsets in a form

Reported by: Gregory Vincic Owned by: Gregory Vincic
Milestone: Proteios SE 2.14.0 Keywords:
Cc:

Description

This would be a way for developers to hide advanced fields by default.

Change History (7)

comment:1 Changed 12 years ago by Gregory Vincic

Status: newassigned

comment:2 Changed 12 years ago by Gregory Vincic

Resolution: fixed
Status: assignedclosed

(In [3894]) Fixes #711. Use method fieldset.setOpen(false) to hide the fieldset.

comment:3 Changed 12 years ago by Gregory Vincic

(In [3896]) Refs #711. Added rule that if there is only one fieldset in a form the toggling feature should be ignored.

comment:4 Changed 12 years ago by Gregory Vincic

(In [3905]) Refs #711. Using + and - icons for fieldset toggling.

comment:5 Changed 12 years ago by Gregory Vincic

(In [3908]) Refs #711. Added feature to use nested fieldsets within forms. These fieldsets may however not be shown or hidden.

comment:6 Changed 12 years ago by olle

Design update:

  • The rule that the toggling feature is ignored for forms with only one field set makes sense in most cases, except when other GUI elements like TitledWindow also exist. In order to allow the show/hide toggle feature for a single field set when appropriate, class Fieldset will be updated with a new private instance variable Boolean singleFieldsetToggleAllowed with public accessor methods. The default value of singleFieldsetToggleAllowed will be false, and will therefore not change the appearance of forms if not specifically called for.

comment:7 Changed 12 years ago by olle

(In [4090]) Refs #711. Refs #668. Field set show/hide toggle updated to allow the feature for single field sets, if specifically called for:

  1. Class/file gui/form/Fieldset.java in client/servlet/ updated with new private instance variable Boolean singleFieldsetToggleAllowed with public accessor methods. The default value of singleFieldsetToggleAllowed is false, and will therefore not change the appearance of forms if not specifically called for.
  1. Class/file gui/web/GUIConverter.java in client/servlet/ updated in public method Tag convert(org.proteios.gui.form.Form w) to allow the show/hide toggle feature for a single field set, if value of singleFieldsetToggleAllowed is true.
Note: See TracTickets for help on using tickets.