SwingFX v1.0

net.java.swingfx.jdraggable
Class DragPolicy

java.lang.Object
  extended bynet.java.swingfx.jdraggable.DragPolicy

public abstract class DragPolicy
extends Object

Abstract class used to define a "Drag Policy".

A "Drag Policy" allows the ability for some restrictions to be put in place by a developer. Currently DragPolicy is setup to only modify the behavior of which Component's can and can not be dragged. It may be feasible to add more features to DragPolicy in the future.

Since:
v0.1
$Header: /cvs/swingfx/docs/api/net/java/swingfx/jdraggable/DragPolicy.html,v 1.1 2005/06/23 00:24:37 codecraig Exp $
Author:
craig

Field Summary
static DragPolicy DEFAULT
          The default drag policy which suggests that all components are eligible to be dragged
static DragPolicy OPEN
          The drag policy which suggests that all components are eligible to be dragged
static DragPolicy STRICT
          The drag policy which suggests that only Draggable components are eligible to be dragged
 
Method Summary
abstract  boolean isDraggable(Component comp)
          Determines if the given Component is an eligible component to be dragged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final DragPolicy DEFAULT
The default drag policy which suggests that all components are eligible to be dragged

See Also:
OPEN, STRICT

OPEN

public static final DragPolicy OPEN
The drag policy which suggests that all components are eligible to be dragged

See Also:
DEFAULT, STRICT

STRICT

public static final DragPolicy STRICT
The drag policy which suggests that only Draggable components are eligible to be dragged

See Also:
DEFAULT, OPEN
Method Detail

isDraggable

public abstract boolean isDraggable(Component comp)
Determines if the given Component is an eligible component to be dragged

Parameters:
comp - the component to check for dragability
Returns:
true if the Component is draggable, false otherwise
See Also:
Draggable

SwingFX v1.0

SwingFX

Copyright 2005 Romain Guy and Craig Wickesser
All Rights Reserved.