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:

instance creation
o  label: aLabel on: aView

o  labelOrTabItem: aLabel on: aView


Instance protocol:

accessing
o  accessCharacter
returns the access character or nil

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

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

o  label: aLabelOrTabItem on: aView
initialize attributes

o  labelOrTabItem
returns my original label

o  labelOrTabItem: aLabelOrTabItem on: aView
initialize attributes

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  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-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

testing
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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 11 Aug 2022 11:52:21 GMT