Package org.thechiselgroup.choosel.core.client.resources.ui

Examples of org.thechiselgroup.choosel.core.client.resources.ui.ResourceSetAvatarFactory


        this.commandManager = commandManager;
    }

    @Override
    public ResourceSetAvatarFactory get() {
        ResourceSetAvatarFactory defaultFactory = new DraggableResourceSetAvatarFactory(
                "avatar-selection", ResourceSetAvatarType.SELECTION,
                dragController);

        ResourceSetAvatarFactory updateFactory = new UpdateResourceSetAvatarLabelFactory(
                defaultFactory);

        ResourceSetAvatarFactory highlightingFactory = new HighlightingDraggableResourceSetAvatarFactory(
                updateFactory, hoverModel, dragController);

        ResourceSetAvatarFactory clickFactory = new SelectionResourceSetAvatarFactory(
                highlightingFactory, viewAccessor, commandManager);

        List<Action> actions = new ArrayList<Action>();
        actions.add(new RemoveSelectionSetAction(commandManager));
        // actions.add(new CreateSetAction(resourceSetFactory,
View Full Code Here


    }

    @Override
    public ResourceSetAvatarFactory get() {
        ResourceSetAvatarFactory defaultFactory = new DraggableResourceSetAvatarFactory(
                "avatar-resourceSet", ResourceSetAvatarType.SET, dragController);

        ResourceSetAvatarFactory updateFactory = new UpdateResourceSetAvatarLabelFactory(
                defaultFactory);

        ResourceSetAvatarFactory dropTargetFactory = new DropTargetResourceSetAvatarFactory(
                updateFactory, dropTargetManager);

        HighlightingResourceSetAvatarFactory highlightingFactory = new HighlightingDraggableResourceSetAvatarFactory(
                dropTargetFactory, hoverModel, dragController);
View Full Code Here

        this.popupFactory = popupFactory;
    }

    @Override
    public ResourceSetAvatarFactory get() {
        ResourceSetAvatarFactory defaultFactory = new DefaultResourceSetAvatarFactory(
                "avatar-selection", ResourceSetAvatarType.SELECTION);
        ResourceSetAvatarFactory hidingFactory = new HideIfEmptyResourceSetAvatarFactory(
                defaultFactory);
        ResourceSetAvatarFactory disablingFactory = new DisableIfEmptyResourceSetAvatarFactory(
                hidingFactory);

        return new DropTargetResourceSetAvatarFactory(disablingFactory,
                new SelectionDropTargetManager(commandManager, dragController,
                        new DefaultViewAccessor(), capabilityChecker,
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.core.client.resources.ui.ResourceSetAvatarFactory

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.