Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Behaviour of disabled form fields
Behaviour of disabled form fields [message #579590] Tue, 30 March 2010 01:03 Go to next message
Matthias Zimmermann is currently offline Matthias Zimmermann
Messages: 81
Registered: February 2010
Member
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 08:44 Go to previous message
Ivan Motsch is currently offline Ivan Motsch
Messages: 100
Registered: March 2010
Senior Member
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: Sat Oct 25 17:33:51 GMT 2014

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

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