:: com :: sun :: star :: drawing :: framework ::

interface XTabBar

Methods' Summary
addTabBarButtonAfter Add a tab bar button to the right of another one.  
appendTabBarButton Add a tab bar button at the right most position.  
removeTabBarButton Remove a tab bar button.  
hasTabBarButton Test whether the specified button exists in the tab bar.  
getTabBarButtons Return a sequence of all the tab bar buttons.  
Methods' Details
addTabBarButtonAfter
void
addTabBarButtonAfter( [in] TabBarButton  aButton,
[in] TabBarButton  aAnchor );

Description
Add a tab bar button to the right of another one.
Parameter aButton
The new tab bar button that is to be inserted. If a button with the same resource id is already present than that is removed before the new button is inserted.
Parameter aAnchor
The new button is inserted to the right of this button. When its ResourceId is empty then the new button is inserted at the left most position.
appendTabBarButton
void
appendTabBarButton( [in] TabBarButton  aButton );

Description
Add a tab bar button at the right most position.
Parameter aButton
The new tab bar button that is to be inserted.
removeTabBarButton
void
removeTabBarButton( [in] TabBarButton  aButton );

Description
Remove a tab bar button.
Parameter aButton
The tab bar button to remove. When there is no button with the specified resource id then this call is silently ignored.
hasTabBarButton
boolean
hasTabBarButton( [in] TabBarButton  aButton );

Description
Test whether the specified button exists in the tab bar.
Parameter aButton
The tab bar button whose existence is tested.
Returns
Returns true when the button exists.
getTabBarButtons
sequence< TabBarButton >
getTabBarButtons();

Description
Return a sequence of all the tab bar buttons.

Their order reflects the visible order in the tab bar.

This method can be used when addTabBarButtonAfter() does not provide enough control as to where to insert a new button.

Top of Page