Package com._1c.g5.v8.dt.bsl.ui.event
Class AnnotationButtonComposite
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.event.AnnotationButtonComposite
-
public class AnnotationButtonComposite extends Object
Special class for creating and processing buttons for different composites which defines annotation directives of the procedures for event handler in bsl module (not form module)
-
-
Constructor Summary
Constructors Constructor Description AnnotationButtonComposite(boolean isRussian, Version version)ConstructorAnnotationButtonComposite(boolean isRussian, Version version, boolean callForFunction, boolean beforeAlreadyExist, boolean aroundAlreadyExist, boolean afterAlreadyExist, boolean changeAndValidateAlreadyExist)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateRadioButtonGroup(org.eclipse.swt.widgets.Composite composite)Creates buttons on compositeorg.eclipse.swt.widgets.ButtongetAfterAnnotationButton()Gets "After" annotation without context directive radio buttonorg.eclipse.swt.widgets.ButtongetArroundAnnotationButton()Gets "Around" annotation directive radio buttonorg.eclipse.swt.widgets.ButtongetBeforeAnnotationButton()Gets "Before" annotation directive radio buttonorg.eclipse.swt.widgets.ButtongetChangeAndValidateAnnotationButton()Gets "ChangeAndValidate" annotation directive radio buttonStringgetProcedureAnnotation()Gets procedure annotation for chosen event
-
-
-
Constructor Detail
-
AnnotationButtonComposite
public AnnotationButtonComposite(boolean isRussian, Version version)Constructor- Parameters:
isRussian-trueif actual script variant is Russian,falseotherwiseversion- actualVersionof module'sIV8Projectwhere dialog call, cannot benull
-
AnnotationButtonComposite
public AnnotationButtonComposite(boolean isRussian, Version version, boolean callForFunction, boolean beforeAlreadyExist, boolean aroundAlreadyExist, boolean afterAlreadyExist, boolean changeAndValidateAlreadyExist)Constructor- Parameters:
isRussian-trueif actual script variant is Russian,falseotherwiseversion- actualVersionof module'sIV8Projectwhere dialog call, cannot benullcallForFunction-trueif annotation choosing forFunction,falseotherwisebeforeAlreadyExist-trueif method with annotation call type "Before" already was created,falseotherwisearoundAlreadyExist-trueif method with annotation call type "Around" already was created,falseotherwiseafterAlreadyExist-trueif method with annotation call type "After" already was created,falseotherwisechangeAndValidateAlreadyExist-trueif method with annotation call type "ChangeAndValidate" already was created,falseotherwise
-
-
Method Detail
-
getProcedureAnnotation
public String getProcedureAnnotation()
Gets procedure annotation for chosen event- Returns:
- procedure annotation 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- parentComposite, can't benull
-
getBeforeAnnotationButton
public org.eclipse.swt.widgets.Button getBeforeAnnotationButton()
Gets "Before" annotation directive radio button- Returns:
- "Before" annotation directive radio button, or
nullif methodcreateRadioButtonGroup(Composite)wasn't call
-
getArroundAnnotationButton
public org.eclipse.swt.widgets.Button getArroundAnnotationButton()
Gets "Around" annotation directive radio button- Returns:
- "Around" annotation directive radio button, or
nullif methodcreateRadioButtonGroup(Composite)wasn't call
-
getAfterAnnotationButton
public org.eclipse.swt.widgets.Button getAfterAnnotationButton()
Gets "After" annotation without context directive radio button- Returns:
- "After" annotation without context directive radio button, or
nullif methodcreateRadioButtonGroup(Composite)wasn't call
-
getChangeAndValidateAnnotationButton
public org.eclipse.swt.widgets.Button getChangeAndValidateAnnotationButton()
Gets "ChangeAndValidate" annotation directive radio button- Returns:
- "ChangeAndValidate" annotation directive radio button, or
nullif methodcreateRadioButtonGroup(Composite)wasn't call or actualVersionfor project of module where dialog call less thanVersion.V8_3_14
-
-