Class CaseAction

  • All Implemented Interfaces:
    IAction, IUpdate

    public class CaseAction
    extends TextEditorAction
    Action that converts the current selection to lower case or upper case.
    • Constructor Detail

      • CaseAction

        public CaseAction​(ResourceBundle bundle,
                          String prefix,
                          AbstractTextEditor editor,
                          boolean toUpper)
        Creates and initializes the action for the given text editor. The action configures its visual representation from the given resource bundle.
        bundle - the resource bundle
        prefix - a prefix to be prepended to the various resource keys (described in ResourceAction constructor), or null if none
        editor - the text editor
        toUpper - true if this is an uppercase action, false otherwise.
        See Also:
        ResourceAction(ResourceBundle, String)
    • Method Detail

      • run

        public void run()
        Description copied from class: Action
        The default implementation of this IAction method does nothing. Subclasses should override this method if they do not need information from the triggering event, or override runWithEvent(Event) if they do.
        Specified by:
        run in interface IAction
        run in class Action
        See Also:
        How radio buttons are handled, How check boxes are handled