Package edu.stanford.bmir.protege.web.client.rpc.data.layout

Examples of edu.stanford.bmir.protege.web.client.rpc.data.layout.ProjectLayoutConfiguration


    protected void saveProjectConfiguration() {
        if (Application.get().getUserId().isGuest()) {
            MessageBox.showAlert("You are not signed in", "To save the layout, you need to sign in first.");
            return;
        }
        ProjectLayoutConfiguration config = getProject().getProjectLayoutConfiguration();
        config.setProjectId(projectId);
        ProjectConfigurationServiceManager.getInstance().saveProjectConfiguration(projectId, Application.get().getUserId(), config, new SaveConfigHandler());
    }
View Full Code Here



    public ProjectLayoutConfiguration getProjectLayoutConfiguration(ProjectId projectId, UserId userId) throws UIConfigurationManagerException {
        try {
            InputStream inputStream = getUIConfigurationInputStream(projectId, userId);
            ProjectLayoutConfiguration configuration = convertXMLToConfiguration(inputStream, projectId);
            inputStream.close();
            return configuration;
        }
        catch (IOException e) {
            throw new UIConfigurationManagerException(e.getMessage());
View Full Code Here

        xstream.alias("project", ProjectLayoutConfiguration.class);
        xstream.alias("tab", TabConfiguration.class);
        xstream.alias("portlet", PortletConfiguration.class);
        xstream.alias("column", TabColumnConfiguration.class);
        xstream.alias("map", LinkedHashMap.class);
        ProjectLayoutConfiguration configuration = (ProjectLayoutConfiguration) xstream.fromXML(in);
        configuration.setProjectId(projectId);
        return configuration;
    }
View Full Code Here

    @Override
    public Anchor createAddNewValueHyperlink() {
        final Anchor addNewValueHyperlink = super.createAddNewValueHyperlink();
       
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        addNewValueHyperlink.setHTML(
                InstanceGridWidgetConstants.getIconLink(
                        InstanceGridWidgetConstants.getAddNewValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Add value"),
                        InstanceGridWidgetConstants.getAddIcon(widgetConfiguration, projectLayoutConfiguration)));
        return addNewValueHyperlink;
View Full Code Here

    @Override
    protected Anchor createReplaceNewValueHyperlink() {
        final Anchor replaceNewValueHyperlink = super.createReplaceNewValueHyperlink();
       
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        replaceNewValueHyperlink.setHTML(
                InstanceGridWidgetConstants.getIconLink(
                        InstanceGridWidgetConstants.getReplaceNewValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Replace value"),
                        InstanceGridWidgetConstants.getReplaceIcon(widgetConfiguration, projectLayoutConfiguration)));
        return replaceNewValueHyperlink;
View Full Code Here

    }

    @Override
    protected Anchor createAddExistingHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(
                InstanceGridWidgetConstants.getIconLink(
                        InstanceGridWidgetConstants.getAddExistingValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Find value"),
                        InstanceGridWidgetConstants.getAddIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
View Full Code Here

    }

    @Override
    protected Anchor createReplaceExistingHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(
                InstanceGridWidgetConstants.getIconLink(
                        InstanceGridWidgetConstants.getReplaceExistingValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Find & Replace <br/>value"),
                        InstanceGridWidgetConstants.getReplaceIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
View Full Code Here

    }

    @Override
    protected Anchor createReplaceNewValueHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(InstanceGridWidgetConstants.getIconLink(InstanceGridWidgetConstants.getReplaceNewValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Replace term"), InstanceGridWidgetConstants.getReplaceIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (isWriteOperationAllowed()) {
                    onCreateNewReference();
View Full Code Here

    }

    @Override
    protected Anchor createReplaceExistingHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(InstanceGridWidgetConstants.getIconLink(InstanceGridWidgetConstants.getReplaceExistingValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Find & Replace <br/>term"), InstanceGridWidgetConstants.getReplaceIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (isWriteOperationAllowed()) {
                    //TODO fix this
View Full Code Here

    }

    @Override
    protected Anchor createAddExistingHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(InstanceGridWidgetConstants.getIconLink(InstanceGridWidgetConstants.getAddExistingValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Find term"), InstanceGridWidgetConstants.getAddIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                //TODO fix this
                //onAddNewReference((String) ReferenceFieldWidget.this.getWidgetConfiguration().get(FormConstants.LABEL));
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.rpc.data.layout.ProjectLayoutConfiguration

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.