Java JComponent Container getDataFlavors(JComponent component)

Here you can find the source of getDataFlavors(JComponent component)

Description

get Data Flavors

License

Open Source License

Declaration

private static DataFlavor[] getDataFlavors(JComponent component) 

Method Source Code

//package com.java2s;
/*/*w  w w . j  ava2 s .co  m*/
 * Copyright (C) 2006 Sun Microsystems, Inc. All rights reserved. Use is
 * subject to license terms.
 */

import java.awt.datatransfer.DataFlavor;

import javax.swing.JComponent;

public class Main {
    private static final Object FLAVORS_CLIENT_PROPERTY = new StringBuilder(
            "PasteFlavorsClientProperty");

    private static DataFlavor[] getDataFlavors(JComponent component) {
        return (DataFlavor[]) component
                .getClientProperty(FLAVORS_CLIENT_PROPERTY);
    }
}

Related

  1. getComponent(JComponent container, String name)
  2. getComponent(JComponent container, String name)
  3. getComponentByName(boolean enableDeepSearch, JComponent rootComponent, String name)
  4. getComponentsOfType(JComponent base, Class type)
  5. getComponentState(JComponent c)
  6. getDeepestEmptyComponentAt(JComponent parent, Point location)
  7. getFirstChildComponentOfType(Component component, Class childComponentType)
  8. getGlassPane(JComponent comp)
  9. getGtkStyle(Object styleFactory, JComponent component, String regionName)