Package org.thechiselgroup.choosel.workbench.client.workspace.dto

Examples of org.thechiselgroup.choosel.workbench.client.workspace.dto.WindowDTO


        assert windowContent instanceof Persistable;

        // TODO change to WindowModel, keep in workspace, update
        // automatically
        WindowDTO windowDTO = new WindowDTO();
        windowDTO.setX(window.getAbsoluteX());
        windowDTO.setY(window.getAbsoluteY());

        windowDTO.setHeight(window.getOffsetHeight());
        windowDTO.setWidth(window.getOffsetWidth());

        // TODO store x-zindex

        // TODO use view content label instead of window title
        windowDTO.setTitle(window.getWindowTitle());

        windowDTO.setContentType(windowContent.getContentType());

        Persistable persistable = (Persistable) windowContent;
        windowDTO.setViewState(persistable.save(persistanceManager));

        return windowDTO;
    }
View Full Code Here


    // TODO test DTO update

    @Test
    public void saveNewWorkspaceDTO() throws ServiceException {
        WindowDTO windowDTO = new WindowDTO();
        workspaceDTOs[0].setWindows(new WindowDTO[] { windowDTO });
        workspaceDTOs[0].setResources(new Resource[0]);
        workspaceDTOs[0].setResourceSets(new ResourceSetDTO[0]);
        persistentWorkspace.setWindows(new WindowDTO[] { windowDTO });
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.workbench.client.workspace.dto.WindowDTO

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.