Package org.kie.uberfire.client.common

Examples of org.kie.uberfire.client.common.InfoPopup


            }

        } );
        form.addAttribute( TestScenarioConstants.INSTANCE.LiteralValue() + ":",
                           widgets( lit,
                                    new InfoPopup( TestScenarioConstants.INSTANCE.LiteralValue(),
                                                   TestScenarioConstants.INSTANCE.LiteralValTip() ) ) );

        form.addRow( new HTML( "<hr/>" ) );
        form.addRow( new SmallLabel( TestScenarioConstants.INSTANCE.AdvancedOptions() ) );

        // If we are here, then there must be a bound variable compatible with
        // me

        Button variable = new Button( TestScenarioConstants.INSTANCE.BoundVariable() );
        variable.addClickHandler( new ClickHandler() {

            public void onClick( ClickEvent event ) {
                con.setNature( FieldData.TYPE_VARIABLE );
                doTypeChosen( form );
            }
        } );
        form.addAttribute( TestScenarioConstants.INSTANCE.AVariable(),
                           widgets( variable,
                                    new InfoPopup( TestScenarioConstants.INSTANCE.ABoundVariable(),
                                                   TestScenarioConstants.INSTANCE.BoundVariableTip() ) ) );

        form.show();
    }
View Full Code Here


            }

        } );
        form.addAttribute( TestScenarioConstants.INSTANCE.LiteralValue() + ":",
                           widgets( lit,
                                    new InfoPopup( TestScenarioConstants.INSTANCE.Literal(),
                                                   TestScenarioConstants.INSTANCE.LiteralValTip() ) ) );
        form.addRow( new HTML( "<hr/>" ) );
        form.addRow( new SmallLabel( TestScenarioConstants.INSTANCE.AdvancedSection() ) );

        /*
 
View Full Code Here

            }

        } );
        addAttribute( TestScenarioConstants.INSTANCE.Fact(),
                      widgets( button,
                               new InfoPopup( TestScenarioConstants.INSTANCE.Fact(),
                                              TestScenarioConstants.INSTANCE.Fact() ) ) );
    }
View Full Code Here

                fireSelection( FieldData.TYPE_LITERAL );
            }
        } );
        addAttribute( TestScenarioConstants.INSTANCE.LiteralValue() + ":",
                      widgets( lit,
                               new InfoPopup( TestScenarioConstants.INSTANCE.LiteralValue(),
                                              TestScenarioConstants.INSTANCE.LiteralValTip() ) ) );
    }
View Full Code Here

                fireSelection( FieldData.TYPE_COLLECTION );
            }
        } );
        addAttribute( TestScenarioConstants.INSTANCE.AVariable(),
                      widgets( variable,
                               new InfoPopup( TestScenarioConstants.INSTANCE.AGuidedList(),
                                              TestScenarioConstants.INSTANCE.AGuidedListTip() ) ) );
    }
View Full Code Here

                fireSelection( FieldData.TYPE_VARIABLE );
            }
        } );
        addAttribute( GuidedRuleEditorResources.CONSTANTS.AVariable(),
                      widgets( variable,
                               new InfoPopup( GuidedRuleEditorResources.CONSTANTS.ABoundVariable(),
                                       GuidedRuleEditorResources.CONSTANTS.BoundVariableTip() ) ) );
    }
View Full Code Here

        //only show the drop down if we are not using fixed position.
        if ( position == null ) {
            HorizontalPanel hp0 = new HorizontalPanel();
            hp0.add( new HTML( GuidedRuleEditorResources.CONSTANTS.PositionColon() ) );
            hp0.add( positionCbo );
            hp0.add( new InfoPopup( GuidedRuleEditorResources.CONSTANTS.PositionColon(),
                                    GuidedRuleEditorResources.CONSTANTS.ConditionPositionExplanation() ) );
            layoutPanel.addRow( hp0 );
            layoutPanel.addRow( new HTML( "<hr/>" ) );
        }
View Full Code Here

                                    final int idx,
                                    final boolean isReadOnly ) {
        IsWidget editor;

        if ( rm.getAttributeName().equals( LOCK_LHS ) || rm.getAttributeName().equals( LOCK_RHS ) ) {
            editor = new InfoPopup( GuidedRuleEditorResources.CONSTANTS.FrozenAreas(),
                                    GuidedRuleEditorResources.CONSTANTS.FrozenExplanation() );
        } else {
            editor = textBoxEditor( rm,
                                    isReadOnly );
        }
View Full Code Here

            hz.add( freezeConditions );
        }
        if ( !lockRHS ) {
            hz.add( freezeActions );
        }
        hz.add( new InfoPopup( GuidedRuleEditorResources.CONSTANTS.FrozenAreas(),
                               GuidedRuleEditorResources.CONSTANTS.FrozenExplanation() ) );

        if ( hz.getWidgetCount() > 1 ) {
            addAttribute( GuidedRuleEditorResources.CONSTANTS.FreezeAreasForEditing(),
                          hz );
View Full Code Here

        } );

        form.addAttribute( GuidedRuleEditorResources.CONSTANTS.LiteralValue() + ":",
                           widgets( lit,
                                    new InfoPopup( GuidedRuleEditorResources.CONSTANTS.Literal(),
                                                   GuidedRuleEditorResources.CONSTANTS.LiteralValTip() ) ) );

        canTheVariableButtonBeShown( new Callback<Boolean>() {
            @Override
            public void callback( Boolean result ) {

                if ( result ) {
                    addBoundVariableButton( form );

                    form.addRow( new HTML( "<hr/>" ) );
                    form.addRow( new SmallLabel( GuidedRuleEditorResources.CONSTANTS.AdvancedSection() ) );
                }

                //Formulas
                Button formula = new Button( GuidedRuleEditorResources.CONSTANTS.NewFormula() );
                formula.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        methodParameter.setNature( FieldNatureType.TYPE_FORMULA );
                        makeDirty();
                        refresh();
                        form.hide();
                    }
                } );

                form.addAttribute( GuidedRuleEditorResources.CONSTANTS.AFormula() + ":",
                                   widgets( formula,
                                            new InfoPopup( GuidedRuleEditorResources.CONSTANTS.AFormula(),
                                                           GuidedRuleEditorResources.CONSTANTS.FormulaExpressionTip() ) ) );

                form.show();
            }
        } );
View Full Code Here

TOP

Related Classes of org.kie.uberfire.client.common.InfoPopup

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.