Package org.jitterbit.ui.text

Examples of org.jitterbit.ui.text.TextEnablerCondition


        installActionEnabler();
    }
   
    private void installActionEnabler() {
        ConditionalTextEnabler enabler = ConditionalTextEnabler.install(textComponent);
        TextEnablerCondition condition = new NonEmptyTextEnablerCondition();
        enabler.addDependency(action, condition);
    }
View Full Code Here


        NameValidator validator = NameValidatorStore.getInstance().get(IntegrationProject.class);
        validator.validateName(nameField.getValue());
    }

    public void addValidInputSensor(Enablable e) {
        TextEnablerCondition condition = new NonEmptyTextEnablerCondition(true);
        projectNameEnabler.addDependency(e, condition);
    }
View Full Code Here

        ok.setText("Continue");
        return buttons;
    }
   
    private void installResetEnabling() {
        TextEnablerCondition condition = new TextEnablerCondition() {
           
            @Override
            public boolean isEnabled(TextContent content) {
                return !content.getText().equals(suggestedValue);
            }
View Full Code Here

                        directionPanel.getSearchDirection());
    }
   
    private ConditionalTextEnabler installActionEnabler(JTextField field) {
        ConditionalTextEnabler enabler = ConditionalTextEnabler.install(field);
        TextEnablerCondition condition = new NonEmptyTextEnablerCondition();
        enabler.addDependency(findNextAction, condition);
        return enabler;
    }
View Full Code Here

        caseSensitiveSelector.setSelected(false);
        wrapSelector.setSelected(false);
    }

    public void registerInputDependency(Component c) {
        TextEnablerCondition condition = new NonEmptyTextEnablerCondition();
        ConditionalTextEnabler enabler = ConditionalTextEnabler.install(searchTextField);
        enabler.addDependency(c, condition);
    }
View Full Code Here

        ConditionalTextEnabler enabler = ConditionalTextEnabler.install(searchTextField);
        enabler.addDependency(c, condition);
    }

    public void registerInputDependency(Action a) {
        TextEnablerCondition condition = new NonEmptyTextEnablerCondition();
        ConditionalTextEnabler enabler = ConditionalTextEnabler.install(searchTextField);
        enabler.addDependency(a, condition);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.text.TextEnablerCondition

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.