org.drombler.commons.docking.spi.DockingAreaUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drombler-commons-docking-spi Show documentation
Show all versions of drombler-commons-docking-spi Show documentation
Drombler Commons - Docking - SPI provides some utility classes and frameworks to help building
a client side docking framework.
/*
* 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 extends DockableEntry, ?>> oldValue,
PositionableAdapter extends DockableEntry, ?>> newValue) {
RefelectionUtils.invokeAnnotatedDockableMethod(oldValue, Deselect.class);
RefelectionUtils.invokeAnnotatedDockableMethod(newValue, Select.class);
}
}