eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'NoteBookView::Tab':

Home

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

Class: Tab (private in NoteBookView

This class is only visible from within NoteBookView.

Inheritance:

   Object
   |
   +--NoteBookView::Tab

Package:
stx:libwidg2
Category:
Views-Layout
Owner:
NoteBookView
Author:
Claus Gittinger

Description:


documentation to be added.


[instance variables:]

[class variables:]


Related information:



Class protocol:

accessing
o  maxLabelSize
set maxSize to 0, to get the old behavior (very long tab labels)

o  maxLabelSize: numberOfcharactersOrNil
set maxSize to 0, to get the old behavior (very long tab labels)

instance creation
o  label: aLabel on: aView

o  labelOrTabItem: aLabelOrTabItem on: aView


Instance protocol:

accessing
o  accessCharacter
returns the access character or nil

o  destroyTabAction
if non-nil, this tab has its own private destroyButton.
This can be used for individual tabs; for an overall tab-destroy capability,
change the destroyTab: action of my owning tabView

o  destroyTabButtonShown
returns true, if this tab has its own private destroyButton.
This can be used for individual tabs; for an overall tab-destroy capability,
change the destroyTab: action of my owning tabView

o  label
returns my original label.
Sigh: this may be a string or a TabItem!

o  label: aLabelOrTabItem on: aView
initialize attributes

o  labelOrTabItem
returns my original label

o  labelOrTabItem: aLabelOrTabItem on: aView
initialize attributes

o  labelString
this definitly returns a string (sigh: see comment in label)

o  lastFocusViewId
get the id of the view which had the last focus or nil

o  lastFocusViewId: anIdOrNil
set the id of the view which has the last focus or nil

o  lineNr
get the line number within the noteBook view

o  lineNr: aLineNr
set the line number within the noteBook view

o  model
returns the model, a TabItem or nil

o  nameKey

o  nameKey: aStringOrSymbol

o  printableLabel
get my printable label

o  shortcutKey
get the key to press to select the tab item from the keyboard

o  string
access the printable string used for steping through a list
searching for an entry starting with a character.

o  tabItem
returns the model, a TabItem or nil

accessing-color & font
o  foregroundColor
returns the foregroundColor or nil

accessing-dimensions
o  extent
returns the extent of the label, the minimum size required by the tab

o  layout
get the tab's current layout, set by the noteBook view

o  layout: aLayout
set the tab's current layout

o  selectedLayout
get the tab's selectedLayout, set by the noteBook view

o  selectedLayout: aLayout
set the tab's selectedLayout

o  unselectedLayout
get the tab's unselectedLayout, set by the noteBook view

o  unselectedLayout: aLayout
set the tab's unselectedLayout

accessing-help
o  activeHelpKey
the key used to ask the application for the tooltip text (via helpTextFor:)
could be dynamic or the static one from the item's spec

o  activeHelpKey: aSymbolicKey
the key used to ask the application for the tooltip text (via helpTextFor:)

o  activeHelpText
returns the activeHelpText;
could be dynamic or the static one from the item's spec

o  activeHelpText: someText
changes the (dynamic) activeHelpText

accessing-mvc
o  addDependent: aGC
make the noteBook be a dependent of the tab model

o  removeDependent: aGC
make the noteBook be independent of the tab model

drawing
o  displayOn: aGC inset: inset direction: aDirection textRightInset: aTextRightInset
redraw this tab

private
o  getPrintableLabelFor: aView

o  resolveDisplayStringFor: aString on: aNoteBook
sr: bugfix: https://expeccoalm.exept.de/D237051
do not convert labels like 'Drag&Drop' into 'DragDrop' 2nd D with underline,
and do not offer the &D as access character

o  shownLabel
possibly contract the label to prevent super long tabs.
To get the old behavior, set maxSize to 0 (setter on class side)

queries
o  containsPointX: x y: y
return true, if the point defined by x@y is contained in the tab.

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

o  isEnabled
returne true if no model exists or the model is enabled



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:22:47 GMT