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

Scout/Concepts/ToggleButton

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/. (one of the The Scout documentation has been moved to https://eclipsescout.github.io/.)

Description

The ToggleButton is a Button with 2 states (selected booleean).

If the user clicks on the ToggleButton then the button will be selected as long as the user clicks on it again.

Screenshot

State RAP SWT Swing Swing Rayo
Normal Scout 3.8 ToggleButton Normal RAP.png Scout 3.8 ToggleButton Normal SWT.png Scout 3.8 ToggleButton Normal Swing.png Scout 3.8 ToggleButton Normal Swing Rayo.png
Selected Scout 3.8 ToggleButton Selected RAP.png Scout 3.8 ToggleButton Selected SWT.png Scout 3.8 ToggleButton Selected Swing.png Scout 3.8 ToggleButton Selected Swing Rayo.png

Code Example

@Order(10.0) 
public class ToggleButtonDefaultField extends AbstractButton { 
 
  @Override 
  protected int getConfiguredDisplayStyle() { 
   return DISPLAY_STYLE_TOGGLE; 
  } 
 
  @Override 
  protected String getConfiguredLabel() { 
   return TEXTS.get("PushToSelect"); 
  } 
 
  @Override 
  protected boolean getConfiguredProcessButton() { 
   return false; 
  } 
}

Properties

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

See also the The Scout documentation has been moved to https://eclipsescout.github.io/. page for the properties that all fields have in common.

Events

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

See also the The Scout documentation has been moved to https://eclipsescout.github.io/. page for the events that all fields have in common.


See Also

Back to the top