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.47 date: 2019/08/11 17:46:50
user: cg
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
top extent:(top preferredExtent).

usage example(s):

     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  consumingView

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
self clear.

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

o  selectedCodePointChanged

initialization & release
o  consumingView: aView

o  destroy

o  initialize
Modified (format): / 08-01-2019 / 14:26:23 / Claus Gittinger

o  useSameFontAs: aView

queries
o  computePreferredExtent
(comment from inherited method)
return my computed preferred extent - this is the minimum size I would like to have.
If there are any components, a rectangle enclosing them
is returned. Otherwise, the actual extent is returned.


Examples:


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

ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 20 Sep 2019 03:17:58 GMT