Example usage for com.liferay.portal.kernel.model Portlet getControlPanelEntryInstance

List of usage examples for com.liferay.portal.kernel.model Portlet getControlPanelEntryInstance

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model Portlet getControlPanelEntryInstance.

Prototype

public com.liferay.portal.kernel.portlet.ControlPanelEntry getControlPanelEntryInstance();

Source Link

Document

Returns an instance of the class that will control when the portlet will be shown in the Control Panel.

Usage

From source file:com.liferay.application.list.BasePanelApp.java

License:Open Source License

protected ControlPanelEntry getControlPanelEntry() {
    Portlet portlet = getPortlet();

    if (portlet == null) {
        return null;
    }/*from   www . j a  va  2 s.  c o  m*/

    return portlet.getControlPanelEntryInstance();
}