Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Scout/Concepts/ViewButton
The Scout documentation has been moved to https://eclipsescout.github.io/.
Specific type of The Scout documentation has been moved to https://eclipsescout.github.io/..
- implements: The Scout documentation has been moved to https://eclipsescout.github.io/.
- extends: The Scout documentation has been moved to https://eclipsescout.github.io/.
Contents
Description
ViewButton can be used to switch beetween different views in the main windows of an The Scout documentation has been moved to https://eclipsescout.github.io/.. They appear on top of the page area (page tree and page content) in the main windows.
The Rayo look and feel render them as tabs.
Outline ViewButton
Specific case of a ViewButton (it extends: The Scout documentation has been moved to https://eclipsescout.github.io/.) OutlineViewButtons link the The Scout documentation has been moved to https://eclipsescout.github.io/. with an The Scout documentation has been moved to https://eclipsescout.github.io/..
Screenshot
Here an example with the Swing Nimbus look and feel:
Here an example with the The Scout documentation has been moved to https://eclipsescout.github.io/. look and feel:
Examples
Here an example of a simple view button, that has nothing to do with an outline:
@Order(30.0) public class DrawLineViewButton extends AbstractViewButton { @Override protected String getConfiguredIconId() { return Icons.Pen; } @Override protected String getConfiguredText() { return TEXTS.get("DrawLine"); } @Override protected void execAction() throws ProcessingException { MessageBox.showOkMessage(TEXTS.get("DrawLineTitle"), TEXTS.get("DrawLineInfo"), null); setSelected(false); } }
Here an example of a outline view button:
@Order(10.0) public class StandardOutlineViewButton extends AbstractOutlineViewButton { public StandardOutlineViewButton() { super(Desktop.this, StandardOutline.class); } @Override protected String getConfiguredText() { return TEXTS.get("Standard"); } }
Properties
Defined with The Scout documentation has been moved to https://eclipsescout.github.io/. methods.
Events
Defined with The Scout documentation has been moved to https://eclipsescout.github.io/. methods.
See Also
- The Scout documentation has been moved to https://eclipsescout.github.io/.