com.foxit.uiextensions.controls.panel.PanelHost Interface Reference

Classes

interface  ICloseDefaultPanelCallback
 

Public Member Functions

void addSpec (PanelSpec spec)
 
View getContentView ()
 
PanelSpec getCurrentSpec ()
 
PanelSpec getSpec (PanelSpec.PanelType panelType)
 
void removeSpec (PanelSpec spec)
 
void setCurrentSpec (PanelSpec.PanelType panelType)
 

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()

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

Add a specified PanelSpec to the PanelHost.

Parameters
specThe specified PanelSpec.

◆ getContentView()

View 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 ( PanelSpec.PanelType  panelType)

Get the PanelSpec by the specified com.foxit.uiextensions.controls.panel.PanelSpec.PanelType

Parameters
panelTypehe specified PanelType.
Returns
The PanelSpec associated with the com.foxit.uiextensions.controls.panel.PanelSpec.PanelType.

◆ removeSpec()

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

Remove the specified PanelSpec from the PanelHost.

Parameters
specThe specified PanelSpec.

◆ setCurrentSpec()

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

Set a PanelSpec by the specified com.foxit.uiextensions.controls.panel.PanelSpec.PanelType as the current PanelSpec.

Parameters
panelTypeThe specified PanelType.