Foxit PDF SDK  9.1
com.foxit.uiextensions.controls.panel.PanelHost Interface Reference

Classes

interface  ICloseDefaultPanelCallback
 

Public Member Functions

ViewGroup getContentView ()
 
void addSpec (PanelSpec spec)
 
void addSpec (int index, PanelSpec spec)
 
void removeSpec (PanelSpec spec)
 
void removeSpec (int panelType)
 
int indexOf (PanelSpec spec)
 
void setCurrentSpec (int panelType)
 
PanelSpec getCurrentSpec ()
 
PanelSpec getSpec (int panelType)
 
void setTabVisibility (boolean visible)
 

Detailed Description

The interface that defines information for Panel container, thc container include topbar,tabbar and panel content.

Through this interface you can add/remove/get/set panel via PanelSpec

Member Function Documentation

◆ addSpec() [1/2]

void com.foxit.uiextensions.controls.panel.PanelHost.addSpec ( int  index,
PanelSpec  spec 
)

Adds a panel view. If the panel typePanelSpec#getPanelType() already exists, will not be added again. referencePanelSpec#BOOKMARKS

Parameters
indexthe position at which to add the panel
specthe panel to add

◆ addSpec() [2/2]

void com.foxit.uiextensions.controls.panel.PanelHost.addSpec ( PanelSpec  spec)

Add a specified PanelSpec panelto the PanelHost.

Parameters
specThe specified PanelSpec.

◆ getContentView()

ViewGroup com.foxit.uiextensions.controls.panel.PanelHost.getContentView ( )

Retrieve the View attached to this PanelHost, if present.

Returns
The View attached to the dialog or null if no View is present.

◆ getCurrentSpec()

PanelSpec com.foxit.uiextensions.controls.panel.PanelHost.getCurrentSpec ( )

Get the current PanelSpec.

Returns
The current PanelSpec.

◆ getSpec()

PanelSpec com.foxit.uiextensions.controls.panel.PanelHost.getSpec ( int  panelType)

Get the PanelSpec by the panel type start with PanelSpec#BOOKMARKS

Parameters
panelTypehe specified panel type.
Returns
The PanelSpec associated with the panel type start with PanelSpec#BOOKMARKS.

◆ indexOf()

int com.foxit.uiextensions.controls.panel.PanelHost.indexOf ( PanelSpec  spec)

Returns the position in the group of the specified panel.

Parameters
specthe panel for which to get the position
Returns
a positive integer representing the position of the panel in the group, or -1 if the panel does not exist in the group

◆ removeSpec() [1/2]

void com.foxit.uiextensions.controls.panel.PanelHost.removeSpec ( int  panelType)

Remove the specified PanelSpec panel type from the PanelHost.

Parameters
panelTypethe panel type PanelSpec#BOOKMARKS

◆ removeSpec() [2/2]

void com.foxit.uiextensions.controls.panel.PanelHost.removeSpec ( PanelSpec  spec)

Remove the specified PanelSpec panel from the PanelHost.

Parameters
specThe specified PanelSpec.

◆ setCurrentSpec()

void com.foxit.uiextensions.controls.panel.PanelHost.setCurrentSpec ( int  panelType)

Set a panel type start withPanelSpec#BOOKMARKS as the current PanelSpec.

Parameters
panelTypeThe specified PanelType.

◆ setTabVisibility()

void com.foxit.uiextensions.controls.panel.PanelHost.setTabVisibility ( boolean  visible)

Set whether the panel title bar is displayed

Parameters
visibletrue means show the panel title bar