eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'InputFieldSpec':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: InputFieldSpec


Inheritance:

   Object
   |
   +--UISpecification
      |
      +--ComponentSpec
         |
         +--NamedSpec
            |
            +--MenuComponentSpec
               |
               +--InputFieldSpec
                  |
                  +--ComboBoxSpec
                  |
                  +--EditFieldWithCompletionSpec
                  |
                  +--FilenameInputFieldSpec

Package:
stx:libui
Category:
Interface-Support-UI-Specs
Version:
rev: 1.204 date: 2023/06/16 13:40:23
user: cg
file: InputFieldSpec.st directory: libui
module: stx stc-classLibrary: libui

Description:


Not normally used by applications.

Notice:
    this class was implemented using protocol information
    from alpha testers, literature and by reading public domain code
    - it may be incomplete or oncompatible to the corresponding ST-80 class. 
    If you encounter any incompatibilities, please forward a note
    describing the incompatibility verbal (i.e. no code) to the ST/X team.

copyright

COPYRIGHT (c) 1995 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

image specs
o  icon
This resource specification was automatically generated
by the ImageEditor of ST/X.

Usage example(s):

     ImageEditor openOnClass:self andSelector:#icon

interface specs
o  basicsEditSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:InputFieldSpec andSelector:#basicsEditSpec

o  channelsAndModifiedEditSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:InputFieldSpec andSelector:#channelsAndModifiedEditSpec

o  detailsAcceptSubSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:InputFieldSpec andSelector:#detailsAcceptSubSpec

o  detailsEditSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:InputFieldSpec andSelector:#detailsEditSpec

o  subSpecForEntryCompletionBlockHolder
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:InputFieldSpec andSelector:#subSpecForEntryCompletionBlockHolder

interface-painter
o  addBindingsTo: env for: inst channel: aChannel
add bindings as required to allow the GUI Painter to operate on an instance of me

o  commonReplacementClasses
used by the UIPainter's 'replace-by' function

o  slices
return the slices for the attribute sections in the GUI Painter


Instance protocol:

accessing
o  acceptIfUnchanged

o  acceptIfUnchanged: aBoolean

o  acceptOnLeave

o  acceptOnLeave: aBoolean

o  acceptOnLostFocus
make the default true; seems to be a good default.

o  acceptOnLostFocus: aBoolean
Modified (format): / 24-11-2017 / 00:24:06 / cg

o  acceptOnPointerLeave

o  acceptOnPointerLeave: aBoolean

o  acceptOnReturn

o  acceptOnReturn: aBoolean

o  acceptOnTab

o  acceptOnTab: aBoolean

o  alignment

o  alignment: aSymbolOrNil

o  autoSelectInitialText

o  autoSelectInitialText: aBoolean

o  callbacksSpec

o  callbacksSpec: something

o  converter

o  converter: aspectSelector
Modified (format): / 16-06-2023 / 09:28:44 / cg

o  emptyFieldReplacementText

o  emptyFieldReplacementText: aStringOrNil

o  entryCompletionBlock

o  entryCompletionBlock: something

o  formatString

o  formatString: something

o  group

o  group: something

o  hasBorder

o  hasBorder: aBoolean

o  hasKeyboardFocusInitially
(comment from inherited method)
this is true, if will catch the focus initially (there should only be one...)

o  hasKeyboardFocusInitially: aBoolean

o  immediateAccept
true

o  immediateAccept: aBoolean

o  isReadOnly
return true, if the text is readonly.

o  isReadOnly: aBoolean

o  maxValue

o  maxValue: aNumberOrNil

o  minValue
return the value of the instance variable 'minValue' (automatically generated)

o  minValue: aNumberOrNil

o  numChars

o  numChars: anIntegerOrNil

o  translateEmptyFieldReplacementText

o  translateEmptyFieldReplacementText: aBoolean

o  type

o  type: something

o  valueChangeCallBackSelector

o  valueChangeCallBackSelector: aSymbolOrNil

accessing-channels
o  acceptChannel

o  acceptChannel: something

o  modifiedChannel

o  modifiedChannel: aSymbolOrNil

o  x_acceptChannel
return the value of the instance variable 'acceptChannel'.
This MUST not be named acceptChannel, as there is such channel when a spec is edited

o  x_acceptChannel: something
set the value of the instance variable 'acceptChannel'
This MUST not be named acceptChannel, as there is such channel when a spec is edited

o  x_modifiedChannel
return the value of the instance variable 'modifiedChannel'
This MUST not be named modifiedChannel, as there is such channel when a spec is edited

o  x_modifiedChannel: something
set the value of the instance variable 'modifiedChannel'
This MUST not be named modifiedChannel, as there is such channel when a spec is edited

accessing-color & font
o  backgroundColor

o  backgroundColor: something

o  foregroundColor

o  foregroundColor: something

building
o  defineCallBacksFor: aBuilder view: aView
transform ST-80 Style callBackSpec

o  getMaxValue: aBuilder
maxValue: either a valueHolder or a constant value

o  getMinValue: aBuilder
minValue: either a valueHolder or a constant value

o  modelInBuilder: aBuilder
redefined to get a model with optional typeconverter

o  nameShownWhileEditingFor: aView

o  setAcceptAttributesIn: aView with: aBuilder
for editfields and friends

o  setAttributesIn: aView with: aBuilder
set my attributes to aView

o  setChannelsIn: anEditField with: aBuilder
set my model attributes to anEditField (or its model)

o  setKeyboardFocusAttributesIn: aView with: aBuilder
(comment from inherited method)
helper - common code for InputField and TextEditor

o  setModelAttributeIn: anEditField with: aBuilder
set my model attributes to anEditField (or its model)

o  typeConverterOn: aModel builder: aBuilder

converting
o  fromLiteralArrayEncoding: aSpecArray
read my attributes from aSpecArray

o  skippedInLiteralEncoding
define the inst-slots which are skipped when generating a literalArrayEncoding;
(to skip the ones with default values.)

parsing a view
o  fromView: aView callBack: aBlock
extract attributes from aView

queries
o  hasMinMax

o  userFriendlyName
answer a good noticeable name of the widget for the GUI Painter and the documentation

o  viewClass
return the corresponding view class of the spec

queries-UIDefiner
o  aspectSelectors
add more aspect selectors (these generate aspect methods in the definer)

o  defaultModelClassFor: someAspect
used by the UIPainters aspectGenerator

visiting
o  acceptUISpecVisitor: aVisitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:32:01 GMT