Package edu.stanford.bmir.protege.web.client.ui.util

Examples of edu.stanford.bmir.protege.web.client.ui.util.AbstractValidatableTab


    protected Panel createGeneralConfigPanel() {
        final Checkbox isControllingPortletCheckbox = new Checkbox("Set as controlling portlet (the controlling portlet sets the selection for the entire tab)");
        isControllingPortletCheckbox.setChecked(isControllingPortlet());

        Panel generalPanel = new AbstractValidatableTab() {
            @Override
            public void onSave() {
                if (isControllingPortletCheckbox.getValue()) { //true - is checked
                    setAsControllingPortlet();
                }
                else {
                    if (isControllingPortlet()) {
                        AbstractTab tab = getTab();
                        if (tab == null) {
                            return;
                        }
                        tab.setControllingPortlet(null);
                    }
                }
            }

            @Override
            public boolean isValid() {
                return true;
            }
        };

        generalPanel.setTitle("General");
        generalPanel.setPaddings(10);

        generalPanel.add(isControllingPortletCheckbox, new AnchorLayoutData("100%"));
        return generalPanel;
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.util.AbstractValidatableTab

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.