Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Scout/Concepts/Button"

(See Also)
(Replaced content with "The Scout documentation has been moved to https://eclipsescout.github.io/.")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{ScoutPage|cat=Component Model}}
+
The Scout documentation has been moved to https://eclipsescout.github.io/.
 
+
Type of {{ScoutLink|Concepts|Field|Field}} for buttons.
+
 
+
* implements: {{ScoutJavadoc|IButton|I}}
+
* extends: {{ScoutJavadoc|AbstractButton|C}}
+
 
+
== Description ==
+
{{note|TODO|Add a description}}
+
Scout propose different types of buttons:
+
* DefaultButton
+
* {{ScoutLink|Concepts|ToggleButton|ToggleButton}}
+
* {{ScoutLink|Concepts|RadioButton|RadioButton}} to be used in {{ScoutLink|Concepts|RadioButtonGroup|RadioButtonGroup}}
+
* {{ScoutLink|Concepts|LinkButton|LinkButton}}
+
 
+
== Screenshot ==
+
{|{{BMTableStyle}}
+
|-{{BMTHStyle}}
+
! Button
+
! RAP
+
! SWT
+
! Swing
+
! Swing Rayo
+
|-
+
| Button || [[Image:Scout_3.8_Button_RAP.png]] || [[Image:Scout_3.8_Button_SWT.png]] || [[Image:Scout_3.8_Button_Swing.png]] || [[Image:Scout_3.8_Button_Swing_Rayo.png]]
+
|-
+
| {{ScoutLink|Concepts|ToggleButton|ToggleButton}} || [[Image:Scout_3.8_ToggleButton_RAP.png]] || [[Image:Scout_3.8_ToggleButton_SWT.png]] || [[Image:Scout_3.8_ToggleButton_Swing.png]] || [[Image:Scout_3.8_ToggleButton_Swing_Rayo.png]]
+
|-
+
| {{ScoutLink|Concepts|LinkButton|LinkButton}} || [[Image:Scout_3.8_LinkButton_RAP.png]] || [[Image:Scout_3.8_LinkButton_SWT.png]] || [[Image:Scout_3.8_LinkButton_Swing.png]] || [[Image:Scout_3.8_LinkButton_Swing_Rayo.png]]
+
|-
+
| {{ScoutLink|Concepts|RadioButton|RadioButton}} || [[Image:Scout_3.8_RadioButton_RAP.png]] || [[Image:Scout_3.8_RadioButton_SWT.png]] || [[Image:Scout_3.8_RadioButton_Swing.png]] || [[Image:Scout_3.8_RadioButton_Swing_Rayo.png]]
+
|-
+
|}
+
 
+
== Properties ==
+
''Defined with {{ScoutLink|Concepts|GetConfigured Methods|getConfiguredXxxxxx()}} methods''.
+
 
+
See also the {{ScoutLink|Concepts|Field|Field}} page for the properties that all fields have in common.
+
 
+
 
+
== Events ==
+
''Defined with {{ScoutLink|Concepts|Exec_Methods|execXxxxxx()}} methods''.
+
 
+
See also the {{ScoutLink|Concepts|Field|Field}} page for the events that all fields have in common.
+
 
+
 
+
== Notes ==
+
 
+
=== Button should fill the available space of its parent ===
+
If you want a Button to fill the available space of its parent you need to:
+
* Set Grid Weight X to 1
+
* Set Grid Weight Y to 1
+
* Set Process Button to false (Important)
+
* Set Grid X to a valid value (0 for the leftmost column etc.)
+
* Set Grid X to a valid value (0 for the uppermost row etc.)
+
* Set Fill Horinzontal to true
+
* Set Fill Vertical to true
+
 
+
[[File:Scout button fill parent.PNG]]
+
 
+
== See Also ==
+
* {{ScoutLink|Concepts|Field|Field}}
+

Latest revision as of 04:43, 14 March 2024

The Scout documentation has been moved to https://eclipsescout.github.io/.

Back to the top