Examples of CustomFormConfiguration


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

                }

                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.content).customForms = workingSetEditor.getCustomFormsContainer().getCustomForms();
            }
        });
View Full Code Here

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

            String fieldName = fieldsCombo.getItemText(fieldsCombo.getSelectedIndex());
            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

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

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

        //is there any custom form configurated for this factType.field?
        final CustomFormConfiguration customFormConfiguration = getWorkingSetManager().getCustomFormConfiguration( this.getModeller().getPath(),
                                                                                                                   factType,
                                                                                                                   field );

        boolean editorReadOnly = this.readOnly;
View Full Code Here

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

    private Widget literalEditor() {

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

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

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

        CustomFormConfiguration customFormConfiguration = getWorkingSetManager().getCustomFormConfiguration( modeller.getPath(),
                                                                                                             factType,
                                                                                                             fieldName );

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

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

    private Widget literalEditor() {

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

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

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

        CustomFormConfiguration customFormConfiguration = getWorkingSetManager().getCustomFormConfiguration( modeller.getPath(),
                                                                                                             factType,
                                                                                                             fieldName );

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

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

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

        //is there any custom form configurated for this factType.field?
        final CustomFormConfiguration customFormConfiguration = getWorkingSetManager().getCustomFormConfiguration( this.getModeller().getPath(),
                                                                                                                   factType,
                                                                                                                   field );

        boolean editorReadOnly = this.readOnly;
View Full Code Here

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

    private Widget literalEditor() {

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

Examples of org.guvnor.common.services.workingset.client.factconstraints.customform.CustomFormConfiguration

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

        CustomFormConfiguration customFormConfiguration = getWorkingSetManager().getCustomFormConfiguration( modeller.getPath(),
                                                                                                             factType,
                                                                                                             fieldName );

        if ( customFormConfiguration != null ) {
            if ( !( con instanceof SingleFieldConstraint ) ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.