public class org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel extends org.apache.isis.viewer.wicket.ui.panels.PanelAbstract
{
private static final long serialVersionUID;
private static final java.lang.String ID_ENTITY_ACTIONS;
public void <init>(java.lang.String, org.apache.isis.viewer.wicket.model.models.EntityModel)
{
java.lang.String v;
org.apache.isis.viewer.wicket.model.models.EntityModel v;
org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel v;
v := @this: org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel;
v := @parameter: java.lang.String;
v := @parameter: org.apache.isis.viewer.wicket.model.models.EntityModel;
specialinvoke v.<org.apache.isis.viewer.wicket.ui.panels.PanelAbstract: void <init>(java.lang.String,org.apache.wicket.model.IModel)>(v, v);
return;
}
public org.apache.isis.viewer.wicket.model.models.EntityModel getEntityModel()
{
org.apache.wicket.model.IModel v;
org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel v;
v := @this: org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel;
v = virtualinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: org.apache.wicket.model.IModel getModel()>();
return v;
}
protected void onBeforeRender()
{
org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel v;
v := @this: org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel;
specialinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: void buildGui()>();
specialinvoke v.<org.apache.isis.viewer.wicket.ui.panels.PanelAbstract: void onBeforeRender()>();
return;
}
private void buildGui()
{
org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel v;
v := @this: org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel;
specialinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: void addOrReplaceIconAndTitle()>();
specialinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: void buildEntityActionsGui()>();
return;
}
private void addOrReplaceIconAndTitle()
{
org.apache.isis.viewer.wicket.ui.ComponentFactory v;
org.apache.isis.viewer.wicket.ui.app.registry.ComponentFactoryRegistry v;
org.apache.wicket.Component v;
org.apache.isis.viewer.wicket.model.models.EntityModel v, v;
org.apache.isis.viewer.common.model.components.ComponentType v;
org.apache.wicket.Component[] v;
org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel v;
v := @this: org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel;
v = virtualinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: org.apache.isis.viewer.wicket.ui.app.registry.ComponentFactoryRegistry getComponentFactoryRegistry()>();
v = <org.apache.isis.viewer.common.model.components.ComponentType: org.apache.isis.viewer.common.model.components.ComponentType ENTITY_ICON_TITLE_AND_COPYLINK>;
v = virtualinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: org.apache.isis.viewer.wicket.model.models.EntityModel getEntityModel()>();
v = interfaceinvoke v.<org.apache.isis.viewer.wicket.ui.app.registry.ComponentFactoryRegistry: org.apache.isis.viewer.wicket.ui.ComponentFactory findComponentFactory(org.apache.isis.viewer.common.model.components.ComponentType,org.apache.wicket.model.IModel)>(v, v);
v = virtualinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: org.apache.isis.viewer.wicket.model.models.EntityModel getEntityModel()>();
v = interfaceinvoke v.<org.apache.isis.viewer.wicket.ui.ComponentFactory: org.apache.wicket.Component createComponent(org.apache.wicket.model.IModel)>(v);
v = newarray (org.apache.wicket.Component)[1];
v[0] = v;
virtualinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: org.apache.wicket.MarkupContainer addOrReplace(org.apache.wicket.Component[])>(v);
return;
}
private void buildEntityActionsGui()
{
java.lang.String[] v;
org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.AdditionalLinksPanel$Style v;
java.util.stream.Stream v, v;
java.lang.Object v, v;
java.util.stream.Collector v;
org.apache.wicket.model.IModel v;
org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.LinkAndLabelFactory v;
org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel v;
v := @this: org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel;
v = virtualinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: org.apache.wicket.model.IModel getModel()>();
v = virtualinvoke v.<org.apache.isis.viewer.wicket.model.models.EntityModel: java.lang.Object getObject()>();
if v == null goto label;
v = staticinvoke <org.apache.isis.core.metamodel.spec.feature.ObjectAction$Util: java.util.stream.Stream streamTopBarActions(org.apache.isis.core.metamodel.spec.ManagedObject)>(v);
v = staticinvoke <org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.LinkAndLabelFactory: org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.LinkAndLabelFactory forEntity(org.apache.isis.viewer.wicket.model.models.EntityModel)>(v);
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream map(java.util.function.Function)>(v);
v = staticinvoke <org.apache.isis.commons.collections.Can: java.util.stream.Collector toCan()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.lang.Object collect(java.util.stream.Collector)>(v);
v = <org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.AdditionalLinksPanel$Style: org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.AdditionalLinksPanel$Style INLINE_LIST>;
staticinvoke <org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.AdditionalLinksPanel: org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.AdditionalLinksPanel addAdditionalLinks(org.apache.wicket.MarkupContainer,java.lang.String,org.apache.isis.commons.collections.Can,org.apache.isis.viewer.wicket.ui.components.actionmenu.entityactions.AdditionalLinksPanel$Style)>(v, "entityActions", v, v);
goto label;
label:
v = newarray (java.lang.String)[1];
v[0] = "entityActions";
virtualinvoke v.<org.apache.isis.viewer.wicket.ui.components.entity.header.EntityHeaderPanel: void permanentlyHide(java.lang.String[])>(v);
label:
return;
}
}