state.expandNode(node);
}
state.selectNode(node, true);
JmxTreeNode jmxNode = (JmxTreeNode)node;
Object object = jmxNode.getUserObject();
Panel panel = null;
if (object instanceof ObjectName)
{
// DetailPanel.forObjectName
panel = new ObjectNameDetailPanel(detailPanel.getId(), jmxNode
.getJmxMBeanWrapper());
}
else if (object instanceof MBeanAttributeInfo)
{
// DetailPanel.forAttributeDetail
panel = new AttributeDetailPanel(detailPanel.getId(), jmxNode
.getJmxMBeanWrapper(), (MBeanAttributeInfo)object);
}
else if (object instanceof MBeanOperationInfo)
{
panel = new OperationDetailPanel(detailPanel.getId(), jmxNode
.getJmxMBeanWrapper(), (MBeanOperationInfo)object);
}
else if (Objects.isEqual("attributes", object))
{
// DetailPanel.forAttributesOverview
panel = new AttributesOverviewPanel(detailPanel.getId(), jmxNode
.getJmxMBeanWrapper());
}
else if (Objects.isEqual("operations", object))
{
panel = new OperationsOverviewPanel(detailPanel.getId(), jmxNode
.getJmxMBeanWrapper());
}
else
{
panel = (Panel)new EmptyPanel(detailPanel.getId()).setOutputMarkupId(true);