Package org.jitterbit.ui.text

Examples of org.jitterbit.ui.text.ConditionalTextEnabler


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


            @Override
            public boolean isEnabled(TextContent content) {
                return !content.getText().equals(suggestedValue);
            }
        };
        ConditionalTextEnabler enabler = ConditionalTextEnabler.install(inputArea);
        enabler.addDependency(resetAction, condition);
    }
View Full Code Here

        return new NodeSearchParameters(searchField.getText(), nodeTypeSelector.getSelection(),
                        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

        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

        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.ConditionalTextEnabler

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.