--- a/EditField.st Thu Apr 25 19:26:41 1996 +0200
+++ b/EditField.st Thu Apr 25 19:34:16 1996 +0200
@@ -94,78 +94,84 @@
- Instance variables:
+ [Instance variables:]
leaveAction <Block | nil> if non-nil, this is evaluated with
- the key (#Return, #CursorUp etc.) when
- the field is left via keyboard keys.
- (fieldGroups use this to decide which
- field has to be enabled next)
+ the key (#Return, #CursorUp etc.) when
+ the field is left via keyboard keys.
+ (fieldGroups use this to decide which
+ field has to be enabled next)
enabled <Boolean> if false, input is ignored.
clickAction <Block | nil> action performed if the field is
- clicked upon.
- (this is used by the group to
- set the active field to the clicked upon field)
+ clicked upon.
+ (this is used by the group to
+ set the active field to the clicked upon field)
crAction <Block | nil> if non-nil, keyboard input of a cr are not
- handled specially, instead this block is evaluated
- (however, this block can perform additional checks and send
- a #accept then)
+ handled specially, instead this block is evaluated
+ (however, this block can perform additional checks and send
+ a #accept then)
tabAction <Block | nil> if non-nil, keyboard input of a tab character
- is not entered into the text, instead this block
- is evaluated. Also, no input completion is performed if
- tabAction is nonNil.
+ is not entered into the text, instead this block
+ is evaluated. Also, no input completion is performed if
+ tabAction is nonNil.
converter <PrintConverter | nil> if non-nil, this is supposed to convert between
- the object and its printed representation and vice versa.
- Defaults to nil i.e. assume that strings are edited.
+ the object and its printed representation and vice versa.
+ Defaults to nil i.e. assume that strings are edited.
leaveKeys <Collection> keys which are interpreted as 'leaving the field'
immediateAccept <Boolean> if true, every change of the text is immediately
- forwarded to the model/acceptBlock. If false,
- the changed value is only stored in the model
- if the field is left or accepted.
- Default is false.
+ forwarded to the model/acceptBlock. If false,
+ the changed value is only stored in the model
+ if the field is left or accepted.
+ Default is false.
acceptOnLeave <Boolean> if true, leaving the field (via cursor keys)
- automatically accepts the value into the model.
- Default is true.
+ automatically accepts the value into the model.
+ Default is true.
acceptOnReturn <Boolean> if true, leaving the field via return
- automatically accepts the value into the model.
- Default is true.
+ automatically accepts the value into the model.
+ Default is true.
acceptOnTab <Boolean> if true, the Tab key accepts and leaves the field.
- If false, Tabs are entered into the contents field like
- ordinary non-control keys.
- AcceptOnTab is ignored if the entryCompletion block is nonNil.
- Default is true.
+ If false, Tabs are entered into the contents field like
+ ordinary non-control keys.
+ AcceptOnTab is ignored if the entryCompletion block is nonNil.
+ Default is true.
lengthLimit <Number> the max. number of allowed characters
entryCompletionBlock <BlockOrNil> if non-nil, this is evaluated to complete the entry
- when Tab is pressed.
- Entry completion is used with Filenamefields or in the
- browser for classname/selector completion.
- Setting a nonNil entryCompletion disables acceptOnTab.
+ when Tab is pressed.
+ Entry completion is used with Filenamefields or in the
+ browser for classname/selector completion.
+ Setting a nonNil entryCompletion disables acceptOnTab.
passwordCharacter <CharacterOrNil> if non-nil, typed input is replaced by this character
- for display. Used for secret-input fields (such as password entry).
- Default is nil.
+ for display. Used for secret-input fields (such as password entry).
+ Default is nil.
cursorMovementWhenUpdating <Symbol> defines where the cursor is to be positioned if the
- model changes its value by some outside activity
- (i.e. not by user input into the field).
- Can be one of:
- #keep / nil -> stay where it was
- #endOfLine -> position cursor after the string
- #beginOfLine -> position cursor to the beginning
- The default is nil (i.e. stay where it was before).
+ model changes its value by some outside activity
+ (i.e. not by user input into the field).
+ Can be one of:
+ #keep / nil -> stay where it was
+ #endOfLine -> position cursor after the string
+ #beginOfLine -> position cursor to the beginning
+ The default is nil (i.e. stay where it was before).
+
+ [author:]
+ Claus Gittinger
+
+ [see also:]
+ DialogBox
"
!
@@ -1630,5 +1636,5 @@
!EditField class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.53 1996-04-20 12:39:32 ca Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.54 1996-04-25 17:33:04 cg Exp $'
! !