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/Action"

(Description: + HG)
m (Category changed)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{ScoutPage|cat=Concepts}}
+
{{ScoutPage|cat=Component Model}}
  
 
Generic type for {{ScoutLink|Concepts|Menu|Menus}} or {{ScoutLink|Concepts|ViewButton|ViewButtons}}
 
Generic type for {{ScoutLink|Concepts|Menu|Menus}} or {{ScoutLink|Concepts|ViewButton|ViewButtons}}
Line 10: Line 10:
  
 
[[Image:HG Action.png]]
 
[[Image:HG Action.png]]
 
+
* {{ScoutLink|Concepts|KeyStroke}}
== Screenshot ==
+
* {{ScoutLink|Concepts|Menu}}
{{note|TODO|Add a screenshot (or remove this section, if there is no screenshot to make)}}
+
* {{ScoutLink|Concepts|ToolButton}}
 +
* {{ScoutLink|Concepts|ViewButton}}
  
  
Line 18: Line 19:
 
''Defined with {{ScoutLink|Concepts|GetConfigured Methods|getConfiguredXxxxxx()}} methods''.
 
''Defined with {{ScoutLink|Concepts|GetConfigured Methods|getConfiguredXxxxxx()}} methods''.
  
{{note|TODO|Add a description of important properties. The idea is not to recreate the JavaDoc of the getConfiguredXxxxxx() methods but to provide explanations, best practice, example... Group the properties by domain.}}
+
=== Defining the action ===
 +
Theses properties define the appearance of the action:
 +
* {{ScoutProp|IconId}}
 +
* {{ScoutProp|Text}}
 +
* {{ScoutProp|TooltipText}}
 +
* {{ScoutProp|Separator}}
 +
* {{ScoutProp|KeyStroke}}
 +
* {{ScoutProp|ToggleAction}}
 +
 
 +
=== Defining the state ===
 +
Several properties control the state of the action (e.g. if the action is visible and enabled).
 +
 
 +
Main properties:
 +
* {{ScoutProp|Visible}}
 +
* {{ScoutProp|Enabled}}
 +
 
 +
Considering or not the context when the state is computed:
 +
* {{ScoutProp|InheritAccessibility}}
 +
 
 +
These properties defines where the action is:
 +
* {{ScoutProp|SingleSelectionAction}}
 +
* {{ScoutProp|MultiSelectionAction}}
 +
* {{ScoutProp|EmptySpaceAction}}
 +
* {{ScoutProp|NonSelectionAction}}
  
  
Line 24: Line 48:
 
''Defined with {{ScoutLink|Concepts|Exec_Methods|execXxxxxx()}} methods''.
 
''Defined with {{ScoutLink|Concepts|Exec_Methods|execXxxxxx()}} methods''.
  
{{note|TODO|Add a description of important events. The idea is not to recreate the JavaDoc of the execXxxxxx() methods but to provide explanations, best practice, example... Group the events by domain.}}
+
* {{ScoutEvent|InitAction}}
 +
* {{ScoutEvent|PrepareAction}}
 +
* {{ScoutEvent|Action}}
 +
* {{ScoutEvent|ToggleAction}}
  
  
 
== See Also ==
 
== See Also ==
 
* {{ScoutLink|Concepts|Client Plug-In|Client Plug-In}}
 
* {{ScoutLink|Concepts|Client Plug-In|Client Plug-In}}

Revision as of 11:38, 3 November 2011

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

Generic type for The Scout documentation has been moved to https://eclipsescout.github.io/. or The Scout documentation has been moved to https://eclipsescout.github.io/.

Description

Note.png
TODO
Add a description


HG Action.png


Properties

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

Defining the action

Theses properties define the appearance of the action:

Defining the state

Several properties control the state of the action (e.g. if the action is visible and enabled).

Main properties:

Considering or not the context when the state is computed:

These properties defines where the action is:


Events

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


See Also

Back to the top