Class EventDirectiveButtonComposite


  • public class EventDirectiveButtonComposite
    extends Object
    Special class for creating and processing buttons for different composites which defines compilation directives of the procedures for event handler in bsl form module
    • Constructor Detail

      • EventDirectiveButtonComposite

        public EventDirectiveButtonComposite​(boolean isRussian,
                                             boolean isAllowedServerCall)
        Constructor
        Parameters:
        isRussian - true if actual script variant is Russian, false otherwise
        isAllowedServerCall - true if allow select "AtServer" directive
    • Method Detail

      • getProcedureDirective

        public String getProcedureDirective()
        Gets procedure directive for chosen event
        Returns:
        procedure directive for chosen event, or empty string if there is no procedure for chosen event
      • createRadioButtonGroup

        public void createRadioButtonGroup​(org.eclipse.swt.widgets.Composite composite)
        Creates buttons on composite
        Parameters:
        composite - parent Composite, can't be null
      • getClientButton

        public org.eclipse.swt.widgets.Button getClientButton()
        Gets client directive radio button
        Returns:
        client directive radio button, or null if method createRadioButtonGroup(Composite) wasn't call
      • getServerButton

        public org.eclipse.swt.widgets.Button getServerButton()
        Gets server directive radio button
        Returns:
        server directive radio button , or null if method createRadioButtonGroup(Composite) wasn't call
      • getServerNoContextButton

        public org.eclipse.swt.widgets.Button getServerNoContextButton()
        Gets server without context directive radio button
        Returns:
        server without context directive radio button, or null if method createRadioButtonGroup(Composite) wasn't call