ProgressNotification.st
author Claus Gittinger <cg@exept.de>
Wed, 02 Nov 2016 15:06:56 +0100
changeset 5304 4b50bec89cd5
parent 4157 67226e0d3d71
child 5318 aa51d67864a6
permissions -rw-r--r--
#DOCUMENTATION by cg class: ProgressNotification category of: #progressValue
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3538
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2008 by eXept Software AG
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libwidg2' }"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
5304
4b50bec89cd5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4157
diff changeset
    14
"{ NameSpace: Smalltalk }"
4b50bec89cd5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4157
diff changeset
    15
3538
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ActivityNotification subclass:#ProgressNotification
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Kernel-Exceptions-Notifications'
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!ProgressNotification class methodsFor:'documentation'!
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 2008 by eXept Software AG
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
              All Rights Reserved
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
! !
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
4157
67226e0d3d71 class: ProgressNotification
Stefan Vogel <sv@exept.de>
parents: 4138
diff changeset
    39
!ProgressNotification class methodsFor:'notification'!
3539
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    40
4138
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    41
notify: message progress: progress
4157
67226e0d3d71 class: ProgressNotification
Stefan Vogel <sv@exept.de>
parents: 4138
diff changeset
    42
    ^ self new
4138
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    43
        messageText: message;
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    44
        parameter: progress;
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    45
        raiseRequest
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    46
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    47
    "Created: / 31-07-2012 / 16:13:54 / cg"
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    48
!
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    49
3539
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    50
progressPercentage:aPercentageNumber
3541
7d676ed9b6bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3539
diff changeset
    51
    self raiseRequestWith:aPercentageNumber
3539
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    52
! !
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    53
5304
4b50bec89cd5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4157
diff changeset
    54
!ProgressNotification methodsFor:'accessing'!
3539
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    55
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    56
progressValue
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    57
    ^ parameter
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    58
! !
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    59
3538
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!ProgressNotification class methodsFor:'documentation'!
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
version
5304
4b50bec89cd5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4157
diff changeset
    63
    ^ '$Header$'
3538
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
! !
5304
4b50bec89cd5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4157
diff changeset
    65