eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CharacterSetView':

Home

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

Class: CharacterSetView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--CharacterSetView

Package:
stx:libwidg2
Category:
Views-Special
Version:
rev: 1.43 date: 2018/01/19 11:16:49
user: stefan
file: CharacterSetView.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

Description:


Can be used both as an informative display of a font's characters
(opened via the fontPanels-preview-popUpMenu)
or to insert characters into a textView 
(opened by a textEditors misc-specialCharacters menu).

Author:
    Claus Gittinger


Class protocol:

instance creation
o  new

startup
o  open
self open

o  openAsInputFor: aView label: viewLabel clickLabel: clickLabel

o  openOn: aFont
self openOn:(View defaultFont).

o  openOn: aFont in: aTopView label: viewLabel clickLabel: clickLabel asInputFor: aConsumingView encoder: aCharacterEncoderOrNil
actions
usage example(s):
     self openOn:(View defaultFont).
     self openOn:(Font family:'courier' face:'medium' style:'roman' size:12 encoding:'iso10646-1').

o  openOn: aFont label: viewLabel clickLabel: clickLabel

o  openOn: aFont label: viewLabel clickLabel: clickLabel asInputFor: aView
self openOn:(View defaultFont).
self openOn:(Font family:'courier' face:'medium' style:'roman' size:12 encoding:'iso10646-1').

o  openOn: aFont label: viewLabel clickLabel: clickLabel asInputFor: aConsumingView encoder: aCharacterEncoderOrNil
self openOn:(View defaultFont).
self openOn:(Font family:'courier' face:'medium' style:'roman' size:12 encoding:'iso10646-1').


Instance protocol:

accessing
o  codePage

o  codePage: pageNr

o  codePageHolder

o  encoder: aCharacterEncoder

o  selectedCodePoint

o  selectedCodePointHolder

change & update
o  update: something with: aParameter from: changedObject

drawing
o  redraw
(self extent:300@600) open

o  sizeChanged: how

event handling
o  buttonPress: button x: x y: y

o  codePageChanged

o  keyPress: key x: x y: y
others are forwarded to the controlled view

o  selectedCodePointChanged

initialization & release
o  destroy

o  initialize

o  useSameFontAs: aView

queries
o  preferredExtent
If I have an explicit preferredExtent..
usage example(s):
If I have a cached preferredExtent value..


Examples:


CharacterSetView openOn:(Button defaultFont). CharacterSetView openAsInputFor:Transcript label:'Input to Transcript' clickLabel:'Click to input character'

ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 22 Sep 2018 07:04:16 GMT