eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'TabWidget':

Home

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

Class: TabWidget


Inheritance:

   Object
   |
   +--TabWidget
      |
      +--TabWidget::Mac
      |
      +--TabWidget::Window

Package:
stx:libwidg2
Category:
Views-Interactors
Version:
rev: 1.27 date: 2017/10/09 12:36:56
user: mawalch
file: TabWidget.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Atzkern

Description:


instances represent (& draw) the tabs of a tabWidget.


Related information:

    TabView

Class protocol:

accessing
o  computeColorsOn: aView style: aStyle
set colors dependent on selection color

o  computeColorsOn: aView style: aStyle selectionColor: aSelectedColor
set colors dependent on selection color

o  tabStyleOn: aView
returns default tab style

o  widgetClass: aWidget

instance creation
o  labels: aList for: aTabView
create tabs based on labels for a tabview

o  validateDimensions: aStyle
validate dimensions for a style; could be redefined


Instance protocol:

accessing
o  label

o  lineNr
returns line number

o  lineNr: aLineNr
change line number

o  printableLabel

accessing-dimensions
o  anchor
returns the tab origin

o  anchor: anAnchor
change the tab anchor; no redraw

o  anchor: anAnchor extent: anExtent
change anchor and extent; no redraw

o  extent
return the tab extent

o  extent: anExtent
change the tab extent; no redraw

o  preferredExtentX
returns my preferred extent x

o  preferredExtentY
returns my preferred extent y

basic drawing
o  redrawAtBottom: isSelected
redraw tab at bottom of view


** This method raises an error - it must be redefined in concrete classes **

o  redrawAtLeft: isSelected
redraw tab at left of view


** This method raises an error - it must be redefined in concrete classes **

o  redrawAtRight: isSelected
redraw tab at right of view


** This method raises an error - it must be redefined in concrete classes **

o  redrawAtTop: isSelected
redraw tab at top of view


** This method raises an error - it must be redefined in concrete classes **

change & update
o  labelChanged

drawing
o  redraw: isSelected
redraw the receiver tab

o  redrawLabel
redraw label only

initialization
o  label: aLabel for: aTabView
initialize attributes

private
o  computeCorner
compute corner

o  computeOrigin
compute origin

queries
o  containsPoint: aPoint
return true, if a point is contained in the tab

o  intersects: aRectangle
return true, if the intersection between the tab widget and
the argument, aRectangle is not empty

o  isEnabled

o  model


Private classes:

    Mac
    Window


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 21:06:26 GMT