eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::InlineMessageDialog':

Home

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

Class: InlineMessageDialog (in Tools)


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--Tools::InlineMessageDialog

Package:
stx:libtool
Category:
Interface-Tools
Version:
rev: 1.34 date: 2023/06/13 18:11:23
user: cg
file: Tools__InlineMessageDialog.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


A simple info/warning dialog to embed into application window -
much like information panel in Firefox or other applications.
Use it when a modal dialog might be too disturbing.



[instance variables:]

[class variables:]

copyright

Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague Copyright (c) 2009-2010 eXept Software AG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Class protocol:

accessing-colors
o  defaultInformationBackground

o  defaultWarningBackground

interface specs
o  messageInfoSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:Tools::InlineMessageDialog andSelector:#messageInfoSpec
     Tools::InlineMessageDialog new openInterface:#messageInfoSpec

o  progressInfoSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:Tools::InlineMessageDialog andSelector:#progressInfoSpec
     Tools::InlineMessageDialog new openInterface:#progressInfoSpec

o  warningInfoSpec

o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:Tools::InlineMessageDialog andSelector:#windowSpec
     Tools::InlineMessageDialog new openInterface:#windowSpec
     Tools::InlineMessageDialog open


Instance protocol:

accessing
o  buttons

o  message

o  message: aString

o  progress: aNumberOrNil

accessing-color & font
o  backgroundColor: aColor
Sets the background color, but only iff backgroundColorHolder is
not set

accessing-presentation
o  changeLayoutUponShowHide: aBoolean
If set to false, no changes to compokent layout is done
when panel is shown/hidden. This effectively means, that
that panel is shown over the normal content.

Default value is true (i.e., relayout components)

actions
o  doAbort
raise its prio to make it terminate quickly

o  doAbortIfWorking

o  doOK
raise its prio to make it terminate quickly

adding & removing components
o  addButton: aButton
px

o  addButtonAbort

o  addButtonOK

o  addButtonWithLabel: label action: action

o  addComponent: aView

o  beInformation

o  beProgress
never, ever use explicit colors.

o  beWarning
never, ever use explicit colors.

o  removeComponent: aView

o  removeComponents
Removes all components except subcanvas

aspects
o  backgroundColorHolder
return/create the 'backgroundColorHolder' value holder (automatically generated)

o  backgroundColorHolder: something
set the 'backgroundColorHolder' value holder (automatically generated)

o  backgroundColorOrDefaultHolder
return/create the 'backgroundColorOrDefaultHolder' value holder (automatically generated)

o  messageHolder
Modified (comment): / 15-05-2012 / 11:08:35 / cg

o  panelHiddenHolder
return/create the 'panelHiddenHolder' value holder (automatically generated)

o  panelHiddenHolder: aValueModel
set the 'panelHiddenHolder' value holder (automatically generated)

o  panelShownHolder
return/create the 'panelShownHolder' value holder (automatically generated)

o  panelShownHolder: aValueModel
set the 'panelShownHolder' value holder (automatically generated)

o  progressHolder
automatically generated by UIPainter ...

o  progressIndicatorForegroundHolder

o  specHolder
return/create the 'specHolder' value holder (automatically generated)

change & update
o  update: aspect with: parameter from: changedObject
Invoked when an object that I depend upon sends a change notification.

hooks
o  commonPostBuild
"/Correction view, dunno why the layout is bad without it...

o  postBuildPanelView: aPanelView

o  postBuildProgressView: aProgressIndicator

private
o  getMyView

o  getOtherView

o  hide
already hidden"

o  show

o  show: spec

** This is an obsolete interface - do not use it (it may vanish in future versions) **

testing
o  isMessageOrWarning

o  isProgress

o  isVisible

utilities
o  reset
Resets the dialog to initial state, removes all
user supplied components.

o  showMessage: aString
Shows given message and OK button (which closes the dialog
when clicked

o  showMessage: aString closeAfter: aTimeDurationOrIntegerOrNil
Shows given message and OK button (which closes the dialog
when clicked). The dialog closes automatically after
aTimeDurationOrIntegerOrNil (integer value means secons, nil
means do not close automatically)

o  showProgressLabeled: aString while: aBlock
During an execution of aBlock, show a label with given
string, a progressbar showing the progress and an 'Abort' button.

If the block raises a ProgressNotification, then the percentage
progress is updated accordingly. If it raises an ActivityNotification,
then the label is updated and progress bar is changed to be an
activity notificator.

When an 'Abort' button is pressed, the block is interrupted by AbortOperationRequest.

When aBlock terminates (either normally or abruptly, the inline-dialog is closed).

utilities-obsolete
o  information: message
(comment from inherited method)
like Object's information, but translates the string via the
resourcePack, thus giving a translated string automatically

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  information: message timeout: timeoutOrNil

** This is an obsolete interface - do not use it (it may vanish in future versions) **


Examples:


Starting the application:
  Tools::InlineMessageDialog new
      open;
      message: 'Hello World';
      show: #messageInfoSpec.


more examples to be added:
  ... add code fragment for 
  ... executable example here ...


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 03:10:00 GMT