Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Behaviour of disabled form fields
Behaviour of disabled form fields [message #579590] Mon, 29 March 2010 21:03 Go to next message
Eclipse UserFriend
Disabled fields on forms never get the focus using the keyboard (only clicking into such a field assigns the focus to it). It would be nice to be able to use the tab key to also cycle through disabled form fields.

Generalized questions:
What behaviour should be supported for disabled form fields? What is the best default behaviour? How to integrate support for this in Scout SDK?
Re: Behaviour of disabled form fields [message #579633 is a reply to message #579590] Tue, 30 March 2010 04:44 Go to previous message
Eclipse UserFriend
In ui's this is (normally) done using the properties


enabled
editable
focusable


setting these properties for every field is annoying and of little sense. Therefore eclipse scout generalizes these behaviours to the following two default cases:

1) scout field with enabled=true, attached gui (should) behave as follows:
field can be focus-traversed (with TAB key), focus can be set by mouse click, field content can be copy/pasted. Field content can be edited. Field appears as ready for input .

2) scout field with enabled=false, attached gui (should) behave as follows:
field can not be focus-traversed (with TAB key), focus can be set by mouse click, field content can be copy/pasted.
Field content cannot be edited. Field appears gray, resp. not ready for input.

Please note that this means for swing and swt implementations, that on JComponent / Widget level the setEnabled(false) is normally not used as it disables on-mouse-click focus as well as copy/paste of content on disabled fields.
Previous Topic:Scout meets press
Next Topic:Solving layout problems using grid column count and other properties
Goto Forum:
  


Current Time: Mon May 19 17:19:57 EDT 2025

Powered by FUDForum. Page generated in 0.03710 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top