All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drombler.commons.docking.spi.DockingAreaUtils Maven / Gradle / Ivy

Go to download

Drombler Commons - Docking - SPI provides some utility classes and frameworks to help building a client side docking framework.

There is a newer version: 1.0
Show newest version
/*
 *         COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Notice
 *
 * The contents of this file are subject to the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)
 * Version 1.0 (the "License"); you may not use this file except in
 * compliance with the License. A copy of the License is available at
 * http://www.opensource.org/licenses/cddl1.txt
 *
 * The Original Code is Drombler.org. The Initial Developer of the
 * Original Code is Florian Brunner (GitHub user: puce77).
 * Copyright 2015 Drombler.org. All Rights Reserved.
 *
 * Contributor(s): .
 */
package org.drombler.commons.docking.spi;

import org.drombler.commons.docking.Deselect;
import org.drombler.commons.docking.DockableEntry;
import org.drombler.commons.docking.Select;
import org.softsmithy.lib.util.PositionableAdapter;

/**
 *
 * @author puce77
 */
public class DockingAreaUtils {

    private DockingAreaUtils() {
    }

    public static void onSelectionChanged(PositionableAdapter> oldValue,
            PositionableAdapter> newValue) {
        RefelectionUtils.invokeAnnotatedDockableMethod(oldValue, Deselect.class);
        RefelectionUtils.invokeAnnotatedDockableMethod(newValue, Select.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy