Package org.drools.ide.common.client.factconstraints.customform

Examples of org.drools.ide.common.client.factconstraints.customform.CustomFormConfiguration


    private Widget literalEditor() {

        //Custom screen
        if ( this.constraint instanceof SingleFieldConstraint ) {
            final SingleFieldConstraint con = (SingleFieldConstraint) this.constraint;
            CustomFormConfiguration customFormConfiguration = WorkingSetManager.getInstance().getCustomFormConfiguration( modeller.getAsset().getMetaData().getPackageName(),
                                                                                                                          pattern.getFactType(),
                                                                                                                          fieldName );
            if ( customFormConfiguration != null ) {
                Button btnCustom = new Button( con.getValue(),
                                               new ClickHandler() {
View Full Code Here


     * Show a list of possibilities for the value type.
     */
    private void showTypeChoice(Widget w,
                                final BaseSingleFieldConstraint con) {

        CustomFormConfiguration customFormConfiguration = WorkingSetManager.getInstance().getCustomFormConfiguration( modeller.getAsset().getMetaData().getPackageName(),
                                                                                                                      pattern.getFactType(),
                                                                                                                      fieldName );

        if ( customFormConfiguration != null ) {
            if ( !(con instanceof SingleFieldConstraint) ) {
View Full Code Here

                                                  }

                                                  String factType = factsCombo.getItemText( factsCombo.getSelectedIndex() );
                                                  String fieldName = fieldsCombo.getItemText( fieldsCombo.getSelectedIndex() );

                                                  CustomFormConfiguration newCustomFormConfiguration = CustomFormsContainer.getEmptyCustomFormConfiguration();
                                                  newCustomFormConfiguration.setFactType( factType );
                                                  newCustomFormConfiguration.setFieldName( fieldName );
                                                  newCustomFormConfiguration.setCustomFormURL( customFormURL.getText() );
                                                  newCustomFormConfiguration.setCustomFormWidth( w );
                                                  newCustomFormConfiguration.setCustomFormHeight( h );

                                                  workingSetEditor.getCustomFormsContainer().putCustomForm( newCustomFormConfiguration );
                                                  ((WorkingSetConfigData) workingSet.getContent()).customForms = workingSetEditor.getCustomFormsContainer().getCustomForms();
                                              }
                                          } );
View Full Code Here

            String factField = factsCombo.getItemText(factsCombo.getSelectedIndex());
            contraintsMap.clear();

            if ( this.workingSetEditor.getCustomFormsContainer().containsCustomFormFor( factField,
                                                                                        fieldName ) ) {
                CustomFormConfiguration customForm = this.workingSetEditor.getCustomFormsContainer().getCustomForm( factField,
                                                                                                                    fieldName );
                this.customFormURL.setText( customForm.getCustomFormURL() );
                this.customFormWidth.setText( String.valueOf( customForm.getCustomFormWidth() ) );
                this.customFormHeight.setText( String.valueOf( customForm.getCustomFormHeight() ) );
            } else {
                this.customFormURL.setText( "" );
                this.customFormWidth.setText( "" );
                this.customFormHeight.setText( "" );
            }
View Full Code Here

    private Widget literalEditor() {

        //Custom screen
        if ( this.constraint instanceof SingleFieldConstraint ) {
            final SingleFieldConstraint con = (SingleFieldConstraint) this.constraint;
            CustomFormConfiguration customFormConfiguration = WorkingSetManager.getInstance().getCustomFormConfiguration( modeller.getAsset().getMetaData().getPackageName(),
                                                                                                                          factType,
                                                                                                                          fieldName );
            if ( customFormConfiguration != null ) {
                Button btnCustom = new Button( con.getValue(),
                                               new ClickHandler() {
View Full Code Here

     * Show a list of possibilities for the value type.
     */
    private void showTypeChoice(Widget w,
                                final BaseSingleFieldConstraint con) {

        CustomFormConfiguration customFormConfiguration = WorkingSetManager.getInstance().getCustomFormConfiguration( modeller.getAsset().getMetaData().getPackageName(),
                                                                                                                      factType,
                                                                                                                      fieldName );

        if ( customFormConfiguration != null ) {
            if ( !(con instanceof SingleFieldConstraint) ) {
View Full Code Here

                                               dotIndex );
        String field = factAndField.substring( dotIndex + 1,
                                                factAndField.length() );
       
        //is there any custom form configurated for this factType.field?
        final CustomFormConfiguration customFormConfiguration = WorkingSetManager.
                getInstance().getCustomFormConfiguration( pkg, factType, field );
       
        boolean editorReadOnly = this.readOnly;
           
        if (!editorReadOnly){
View Full Code Here

    private Widget literalEditor() {

        //Custom screen
        if ( this.constraint instanceof SingleFieldConstraint ) {
            final SingleFieldConstraint con = (SingleFieldConstraint) this.constraint;
            CustomFormConfiguration customFormConfiguration = WorkingSetManager.getInstance().getCustomFormConfiguration( modeller.getAsset().getMetaData().getModuleName(),
                                                                                                                          factType,
                                                                                                                          fieldName );
            if ( customFormConfiguration != null ) {
                Button btnCustom = new Button( con.getValue(),
                                               new ClickHandler() {
View Full Code Here

     * Show a list of possibilities for the value type.
     */
    private void showTypeChoice(Widget w,
                                final BaseSingleFieldConstraint con) {

        CustomFormConfiguration customFormConfiguration = WorkingSetManager.getInstance().getCustomFormConfiguration( modeller.getAsset().getMetaData().getModuleName(),
                                                                                                                      factType,
                                                                                                                      fieldName );

        if ( customFormConfiguration != null ) {
            if ( !(con instanceof SingleFieldConstraint) ) {
View Full Code Here

                                                  dotIndex );
        String field = factAndField.substring( dotIndex + 1,
                                                factAndField.length() );

        //is there any custom form configurated for this factType.field?
        final CustomFormConfiguration customFormConfiguration = WorkingSetManager.
                getInstance().getCustomFormConfiguration( pkg,
                                                          factType,
                                                          field );

        boolean editorReadOnly = this.readOnly;
View Full Code Here

TOP

Related Classes of org.drools.ide.common.client.factconstraints.customform.CustomFormConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.