[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

IndexTabMappingTable

inherits from ShortIntegerList

Object <- FixedList <- ShortIntegerList <- IndexTabMappingTable



Operations

Get list of all operations

FindSectionIndex
FindTabIndex
SectionIndexToIndexText
SectionsPerTab
TabIndexInRange
TextToSectionIndex
TextToTabIndex


Attributes

Get list of all attributes

Class IndexTabMappingTable defines no new attributes.


Fields

Field Type
IndexTabMappingTable: format: Unsigned
numberOfSections: Unsigned
defaultSection: Unsigned
numberOfTabs: Unsigned
defaultTab: Unsigned
tabToSectionTable: Buffer


Instance template

instance IndexTabMappingTable tag;
         format: 0;
numberOfSections: 0;
 defaultSection: 0;
   numberOfTabs: 0;
     defaultTab: 0;
tabToSectionTable: nilObject;
end instance;

Class definition

Define Class IndexTabMappingTable;
    inherits from ShortIntegerList;
    field format:           Unsigned;           
        // see .c file

    field numberOfSections: Unsigned;
    field defaultSection:   Unsigned;           
        // for unknown characters

    field numberOfTabs:     Unsigned;
    field defaultTab:       Unsigned;           
        // for unknown characters
    field tabToSectionTable: Buffer;

    operation TextToTabIndex(text: HasText): Unsigned;
    operation TextToSectionIndex(text: HasText): Unsigned;
    operation SectionIndexToIndexText(sectionIndex: Unsigned): Text;
    
    operation TabIndexInRange(index: Unsigned): Boolean;
        // Tests whether index is a valid tab index.
    
    operation FindSectionIndex(tabIndex: Unsigned): Unsigned;
        // Returns the first section index in this table that corresponds to
        // tab index tabIndex.
        
    operation FindTabIndex(sectionIndex: Unsigned): Unsigned;
        // Returns the tab index that corresponds to sectionIndex.
        
    operation SectionsPerTab(): Unsigned;
        // Number of sections per tab.
end class;