eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'LicenceBox':

Home

everywhere
www.exept.de
for:
[back]

Class: LicenceBox


Inheritance:

   Object
   |
   +--GraphicsContext
      |
      +--DeviceGraphicsContext
         |
         +--GraphicsMedium
            |
            +--DisplaySurface
               |
               +--SimpleView
                  |
                  +--View
                     |
                     +--TopView
                        |
                        +--StandardSystemView
                           |
                           +--ModalBox
                              |
                              +--DialogBox
                                 |
                                 +--LicenceBox

Package:
stx:libwidg2
Category:
Views-DialogBoxes
Version:
rev: 1.28 date: 2009/11/17 13:30:19
user: cg
file: LicenceBox.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Stefan Vogel

Description:


LicenceBox shows a licence text when opened, an returns true,
if the licence has been accepted, false otherwise.


Related information:

    AboutBox

Class protocol:

Signal constants
o  licenceRejectSignal
licence has been rejected by user

initialization
o  initialize

instance creation
o  open
open myself modal and return true if accepted, false otherwise

o  openOnFile: aFileName
like open, but show the HTML-text found in aFileName.
Can be used for end-user applications which want to display
there own licence text.


Instance protocol:

accessing
o  accepted
return accepted

o  accepted: something
set accepted

o  licenceText: someHTMLText
set the text which is shown in the box

o  topDirectory: aDirectoryName
set the topDirectory, which is required for hyperlinks
to work (in the html text)

destroying
o  terminate
this is the close from a windowmanager
(only if UseTransientViews == true).
Redefined, since ModalBox keeps the View alive (only hidden)

initialization
o  initialize

o  mapped

private
o  licenceFile
get filename of licence file

o  licenceText
get licence text

o  topDirectory
get name of top directory

queries
o  windowStyle


Demonstration:


    LicenceBox open


Examples:



    LicenceRejectSignal handle:[:ex|
        Transcript showCR:'Licence rejected'.
    ] do:[
        LicenceBox open.
        Transcript showCR:'Licence accepted'.
    ]


ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 18:26:19 GMT