XdevPanel

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.

Note:
  • Scrollable content - You can also scroll in the content of the XdevPanels.
Important properties:
  • TabIndex - Defines the sequence in the tab index. The tab index defines the order of several UI components. These can be selected one by one by pressing the Tab key.

Examples:
  • 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();

Go to XdevPanel Javadoc





XDEV Software Corp. - One Embarcadero Center, San Francisco, CA 94111, US
Copyright © 2015. XDEV Software Corp. All rights reserved.