|
Class: InlineMessageDialog (in Tools)
Object
|
+--Model
|
+--ApplicationModel
|
+--Tools::InlineMessageDialog
- Package:
- stx:libtool
- Category:
- Interface-Tools
- Version:
- rev:
1.25
date: 2018/11/16 15:14:30
- user: cg
- file: Tools__InlineMessageDialog.st directory: libtool
- module: stx stc-classLibrary: libtool
- Author:
- Jan Vrany <jan.vrany@fit.cvut.cz>
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:]
accessing-colors
-
defaultInformationBackground
-
-
defaultWarningBackground
-
interface specs
-
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
|
-
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
|
-
warningInfoSpec
-
-
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
|
accessing
-
buttons
-
-
message
-
-
message: aString
-
-
progress: aNumberOrNil
-
accessing-color & font
-
backgroundColor: aColor
-
Sets the background color, but only iff backgroundColorHolder is
not set
accessing-presentation
-
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
-
doAbort
-
raise its prio to make it terminate quickly
-
doAbortIfWorking
-
-
doOK
-
raise its prio to make it terminate quickly
adding & removing components
-
addButton: aButton
-
px
-
addButtonAbort
-
-
addButtonOK
-
-
addButtonWithLabel: label action: action
-
-
addComponent: aView
-
-
beInformation
-
-
beProgress
-
never, ever use explicit colors.
-
beWarning
-
never, ever use explicit colors.
-
removeComponent: aView
-
-
removeComponents
-
Removes all components except subcanvas
aspects
-
backgroundColorHolder
-
return/create the 'backgroundColorHolder' value holder (automatically generated)
-
backgroundColorHolder: something
-
set the 'backgroundColorHolder' value holder (automatically generated)
-
backgroundColorOrDefaultHolder
-
return/create the 'backgroundColorOrDefaultHolder' value holder (automatically generated)
-
messageHolder
-
Modified (comment): / 15-05-2012 / 11:08:35 / cg
-
panelHiddenHolder
-
return/create the 'panelHiddenHolder' value holder (automatically generated)
-
panelHiddenHolder: aValueModel
-
set the 'panelHiddenHolder' value holder (automatically generated)
-
panelShownHolder
-
return/create the 'panelShownHolder' value holder (automatically generated)
-
panelShownHolder: aValueModel
-
set the 'panelShownHolder' value holder (automatically generated)
-
progressHolder
-
automatically generated by UIPainter ...
-
progressIndicatorForegroundHolder
-
-
specHolder
-
return/create the 'specHolder' value holder (automatically generated)
change & update
-
update: aspect with: parameter from: changedObject
-
Invoked when an object that I depend upon sends a change notification.
hooks
-
commonPostBuild
-
"/Correction view, dunno why the layout is bad without it...
-
postBuildPanelView: aPanelView
-
-
postBuildProgressView: aProgressIndicator
-
private
-
getMyView
-
-
getOtherView
-
-
hide
-
already hidden"
-
show
-
-
show: spec
-
** This is an obsolete interface - do not use it (it may vanish in future versions) **
testing
-
isMessageOrWarning
-
-
isProgress
-
-
isVisible
-
utilities
-
reset
-
Resets the dialog to initial state, removes all
user supplied components.
-
showMessage: aString
-
Shows given message and OK button (which closes the dialog
when clicked
-
showMessage: aString closeAfter: aTimeDurationOrIntegerOrNil
-
Shows given message and OK button (which closes the dialog
when clicked). The dialog closes automaticaly after
aTimeDurationOrIntegerOrNil (integer value means secons, nil
means do not close automatically)
-
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
-
information: message
-
(comment from inherited method)
like Object's information, but translates the string via the
resourcePack, thus giving a translated string automatically
-
information: message timeout: timeoutOrNil
-
-
progress: label while: block
-
-
warning: message action: block labeled: label
-
Starting the application:
Tools::InlineMessageDialog new
open;
message: 'Hello World';
show: #messageInfoSpec.
|
more examples to be added:
... add code fragment for
... executable example here ...
|
|