The XdevPanel is an empty container within which other UI components can be consolidated. Only one UI component can be inserted directly into an XdevPanel (single component container). However, further UI components can be inserted by inserting a layout. In addition, you can assign a label to the XdevPanel.
Return content - Returns components, which are located directly in this panel.
Component content = panel.getContent(); |
Sample test: The component in XdevPanel is an XdevButton.
if (panel.getContent() instanceof XdevButton) { ... } |
Add content - Adds a component to the panel. This can be a complete view or only a component.
panel.setContent(new XdevButton()); |
or
panel.setContent(new MyTemplateView()); |
Check visibility - Returns true or false, depending on whether the component is visible.
boolean isVisible = panel.isVisible(); |