|
Class: Tab (private in NoteBookView
This class is only visible from within
NoteBookView.
Object
|
+--NoteBookView::Tab
- Package:
- stx:libwidg2
- Category:
- Views-Layout
- Owner:
- NoteBookView
- Author:
- Claus Gittinger
documentation to be added.
[instance variables:]
[class variables:]
accessing
-
maxLabelSize
-
set maxSize to 0, to get the old behavior (very long tab labels)
-
maxLabelSize: numberOfcharactersOrNil
-
set maxSize to 0, to get the old behavior (very long tab labels)
instance creation
-
label: aLabel on: aView
-
-
labelOrTabItem: aLabelOrTabItem on: aView
-
accessing
-
accessCharacter
-
returns the access character or nil
-
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
-
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
-
label
-
returns my original label.
Sigh: this may be a string or a TabItem!
-
label: aLabelOrTabItem on: aView
-
initialize attributes
-
labelOrTabItem
-
returns my original label
-
labelOrTabItem: aLabelOrTabItem on: aView
-
initialize attributes
-
labelString
-
this definitly returns a string (sigh: see comment in label)
-
lastFocusViewId
-
get the id of the view which had the last focus or nil
-
lastFocusViewId: anIdOrNil
-
set the id of the view which has the last focus or nil
-
lineNr
-
get the line number within the noteBook view
-
lineNr: aLineNr
-
set the line number within the noteBook view
-
model
-
returns the model, a TabItem or nil
-
nameKey
-
-
nameKey: aStringOrSymbol
-
-
printableLabel
-
get my printable label
-
shortcutKey
-
get the key to press to select the tab item from the keyboard
-
string
-
access the printable string used for steping through a list
searching for an entry starting with a character.
-
tabItem
-
returns the model, a TabItem or nil
accessing-color & font
-
foregroundColor
-
returns the foregroundColor or nil
accessing-dimensions
-
extent
-
returns the extent of the label, the minimum size required by the tab
-
layout
-
get the tab's current layout, set by the noteBook view
-
layout: aLayout
-
set the tab's current layout
-
selectedLayout
-
get the tab's selectedLayout, set by the noteBook view
-
selectedLayout: aLayout
-
set the tab's selectedLayout
-
unselectedLayout
-
get the tab's unselectedLayout, set by the noteBook view
-
unselectedLayout: aLayout
-
set the tab's unselectedLayout
accessing-help
-
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
-
activeHelpKey: aSymbolicKey
-
the key used to ask the application for the tooltip text (via helpTextFor:)
-
activeHelpText
-
returns the activeHelpText;
could be dynamic or the static one from the item's spec
-
activeHelpText: someText
-
changes the (dynamic) activeHelpText
accessing-mvc
-
addDependent: aGC
-
make the noteBook be a dependent of the tab model
-
removeDependent: aGC
-
make the noteBook be independent of the tab model
drawing
-
displayOn: aGC inset: inset direction: aDirection textRightInset: aTextRightInset
-
redraw this tab
private
-
getPrintableLabelFor: aView
-
-
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
-
shownLabel
-
possibly contract the label to prevent super long tabs.
To get the old behavior, set maxSize to 0 (setter on class side)
queries
-
containsPointX: x y: y
-
return true, if the point defined by x@y is contained in the tab.
-
intersects: aRectangle
-
return true, if the intersection between the argument, aRectangle
and the tab is not empty
-
isEnabled
-
returne true if no model exists or the model is enabled
|