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.21 date: 2018/08/22 10:00:30
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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 23 Apr 2024 17:31:30 GMT