src/services/tabOrderService/container-tab-order.service.ts
enterContainer | ||||||||||||||||||||
enterContainer(isShiftPressed: boolean, evt: any, isTabNodeReferenceRadioButton: boolean, leave?: boolean)
|
||||||||||||||||||||
Applies focus to a selectable element in user control. It triggers dom element focus(). If first element is also a user control pass responsability to internal service Default value false indicates that method should leaves container.
Parameters :
Returns :
void
|
leaveContainer | ||||||||
leaveContainer(evt: any)
|
||||||||
leaveContainer Sends a notification to change the current tab order service
Parameters :
Returns :
any
|
registerInstance | ||||||
registerInstance(componentInstance: any)
|
||||||
Register a component instance into the service component list
Parameters :
Returns :
void
|
resolveTab | ||||||||||||||||
resolveTab(tabNodeReference: TabNode, isShiftPressed: boolean, event: any)
|
||||||||||||||||
Resolves tab
Parameters :
Returns :
void
|
shouldLeaveContext | ||||||||||||||||
shouldLeaveContext(tabNodeReference: any, availableComponent: any, isShiftPressed: boolean)
|
||||||||||||||||
Should leave context
Parameters :
Returns :
boolean
true if leave the current context |
applyFocusToAvailableComponent | ||||||||||||||||
applyFocusToAvailableComponent(availableComponent: any, isShiftPressed: boolean, event: any)
|
||||||||||||||||
Apply focus to all components in a window, gives a special treatment to dataManager controls and userObjects
Parameters :
Returns :
void
|
assignEmptyStartEndNodes | ||||||||
assignEmptyStartEndNodes(newNode: TabNode)
|
||||||||
Method used by insert sort when there is no root node at the list
Parameters :
Returns :
void
|
availableNextNode | ||||||||||||||||||||
availableNextNode(tabNodeReference: TabNode, isShiftPressed: boolean, length: number, isTabNodeReferenceRadioButton: boolean)
|
||||||||||||||||||||
Availables next node
Parameters :
Returns :
any
next node |
getComponentById | ||||||||
getComponentById(id: string)
|
||||||||
Gets a component by id
Parameters :
Returns :
any
A component instance |
getHead |
getHead()
|
Gets the head node.
Returns :
TabNode
|
getLowerTabIndexRadioButton |
getLowerTabIndexRadioButton()
|
Gets the radiobutton component that has the lower TabOrder value
Returns :
any
The nodeInstance for the radioButton if applies otherwise null |
getSelectedRadioButton | ||||||||
getSelectedRadioButton(tabNodeReference: TabNode)
|
||||||||
Gets the selected radiobutton for the current container
Parameters :
Returns :
any
The selected radiobutton if there is at least one |
insertBetweenNodes | ||||||||||||||||
insertBetweenNodes(firstNode: TabNode, secondNode: TabNode, newNode: TabNode)
|
||||||||||||||||
Insert a new node at the middle of the list
Parameters :
Returns :
void
|
insertEnd | ||||||||
insertEnd(newNode: TabNode)
|
||||||||
Insert a new node at the end of the list and updates end Node reference
Parameters :
Returns :
void
|
Private insertNodeFirstOrMiddle | ||||||
insertNodeFirstOrMiddle(newNode: TabNode)
|
||||||
Insert the node when is not in the last position
Parameters :
Returns :
void
|
insertSort | ||||||||
insertSort(newNode: TabNode)
|
||||||||
This method is used to insert sort nodes in to a double linked circular list
Parameters :
Returns :
void
|
insertStart | ||||||||
insertStart(newNode: TabNode)
|
||||||||
Insert a new node at the beginning of the list and updates start Node reference
Parameters :
Returns :
void
|
isFocusableContainer | ||||||
isFocusableContainer(tabNodeReference: TabNode)
|
||||||
Method to know if specifics container can gain focus and not only execute the enterContainer mechanism Is important for containers with this behavior to be registered on the focusableContainers dictionary and use the ContainerDirective to manage the tab behavior. Example: TabControl component
Parameters :
Returns :
boolean
{boolean} |
isLabelComponent | ||||||||
isLabelComponent(tabNodeReference: TabNode)
|
||||||||
Determines if a tabNode is a labelComponent
Parameters :
Returns :
boolean
True if it is a label otherwise false |
isRadioButtonComponent | ||||||||
isRadioButtonComponent(tabNodeReference: TabNode)
|
||||||||
Determines if a tabNode is a radioButtonComponent
Parameters :
Returns :
boolean
True if it is a radioButton otherwise false |
isReferenceAlive | ||||||||
isReferenceAlive(tabNodeReference: TabNode)
|
||||||||
Returns true if the reference is alive otherwise false
Parameters :
Returns :
boolean
|
isValidTabNode | ||||||||||||||||
isValidTabNode(tabNodeReference: TabNode, isTabNodeReferenceRadioButton: boolean, selectedRadioButton: any)
|
||||||||||||||||
Determines whether a node instance is valid
Parameters :
Returns :
boolean
true if valid tab node |
registerContainerParentInstance | ||||||
registerContainerParentInstance(control: any)
|
||||||
Method to register the Window or Container provider of the tab service
Parameters :
Returns :
void
|
unregisterInstance |
unregisterInstance(componentInstance: any, id?: string)
|
Returns :
void
|
Private validatePosition |
validatePosition(previousEndFlag: TabNode, newNode: TabNode, endFlag: TabNode)
|
Validate the position of the node
Returns :
void
|
validateRadioButtons | ||||||||||||||||
validateRadioButtons(tabNodeReference: TabNode, isTabNodeReferenceRadioButton: boolean, selectedRadioButton: any)
|
||||||||||||||||
Validates if the tabNode is valid radioButton to receive the focus
Parameters :
Returns :
boolean
True if it is valid otherwise false |
Private leaveSubject |
Type : Subject<any>
|
Default value : new Subject<any>()
|
Leave subject to subscribe out action of tab page control service |
Protected containerParentInstance |
Type : any
|
The instance of the container parent of the tab service |
Protected head |
Type : TabNode
|
Head of main tab order service list |
Protected nodesInstances |
Type : IDictionary
|
Default value : new Dictionary()
|
Protected tail |
Type : TabNode
|
Tail of main tab order service |
leaveContainerSubscription |
getleaveContainerSubscription()
|
Gets leave subject to allow external subscription
Returns :
Observable<any>
|
startTabNode |
getstartTabNode()
|
Gets start tab node of the list
Returns :
TabNode
|
endTabNode |
getendTabNode()
|
Gets end tab node of the list
Returns :
TabNode
|