UI-Komponenten können je nach Bedarf ein- und ausgeblendet werden. Befindet sich die UI-Komponente in einem Layout, werden die UI-Komponenten ggf. automatisch anders angeordnet.The UI components can be shown or hidden as required. If the UI component is placed in a layout, the UI components may be automatically rearranged.
Property:
- Visible - Das Flag blendet die UI-Komponente zur Laufzeit initial ein / aus. The flag initially shows/hides the UI component at runtime.
Example:
Hide UI -Komponente dynamisch ausblenden - Befindet sich die UI-Komponente in einem Layout, werden die UI-Komponenten im Layout ggf. neu angeordnet.component dynamically - If the UI component is located in a layout, the UI components may be automatically rearranged within the layout.
Code Block language java button.setVisible(false);
UI-Komponente dynamisch einblenden - Befindet sich die UI-Komponente in einem Layout, werden die UI-Komponenten im Layout ggf. neu angeordnet.Show UI component dynamically - If the UI component is located in a layout, the UI components may be rearranged within the layout.
Code Block language java button.setVisible(true);