eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ViewWithAcceptAndCancelBar':

Home

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

Class: ViewWithAcceptAndCancelBar


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--ViewWithAcceptAndCancelBar

Package:
stx:libtool
Category:
Views-Basic
Version:
rev: 1.20 date: 2018/01/16 21:13:40
user: cg
file: ViewWithAcceptAndCancelBar.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


experimental - self like accept/cancel bar in the browsers
code view.
Enable with:
     UserPreferences current showAcceptCancelBarInBrowser:true


Instance protocol:

accessing
o  acceptAction: something
define the action to be performed when the green accept button is pressed

o  cancelAction: something
define the action to be performed when the red cancel button is pressed

o  compareAction: aBlock
define the action to be performed when the yellow compare button is pressed

o  reallyModifiedHolder: aValueHolder
set the holder which keeps track of the real modified state;
the modified state of the view is set with every user-input,
but cleared by the master (in order to trigger future modified events).
With every modified change, the state of the reallyModified is updated

o  scrolledView
for protocol compatibility

action
o  accept

o  cancel

o  compare

change & update
o  hideBar

o  showBar

o  update: something with: aParameter from: changedObject
not sure if we really need to send it through the application

o  updateBarVisibility
Modified (format): / 29-11-2011 / 14:05:04 / cg

initialization
o  initialize
self new open

o  setSlaveView: aView
|v|

v := self new.
v slaveView:CodeView new.
v open

o  slaveView: aView
|v|

v := self new.
v slaveView:CodeView new.
v open


Private classes:

    AcceptAndCancelBar


ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Fri, 19 Jul 2019 14:35:15 GMT