BaseDragableMenuItem(String text, Icon icon, int horizontalAlignment) Creates a BaseDragableMenuItem instance with the specified text, image, and
horizontal alignment.
public
BaseDragableMenuItem(String text, int horizontalAlignment) Creates a BaseDragableMenuItem instance with the specified text and horizontal
alignment.
Creates a BaseDragableMenuItem instance with the specified image.
Parameters: image - the image of this label
BaseDragableMenuItem
public BaseDragableMenuItem(Icon image, int horizontalAlignment)(Code)
Creates a BaseDragableMenuItem instance with the specified image and horizontal
alignment.
Parameters: image - the image of this label Parameters: horizontalAlignment - the horizontal aligmenet
Creates a BaseDragableMenuItem instance with the specified text.
Parameters: text - the text of this label.
BaseDragableMenuItem
public BaseDragableMenuItem(String text, Icon icon, int horizontalAlignment)(Code)
Creates a BaseDragableMenuItem instance with the specified text, image, and
horizontal alignment.
Parameters: text - the text of this label Parameters: icon - the icon of this label. Parameters: horizontalAlignment - the horizontal aligment
BaseDragableMenuItem
public BaseDragableMenuItem(String text, int horizontalAlignment)(Code)
Creates a BaseDragableMenuItem instance with the specified text and horizontal
alignment.
Parameters: text - the text of this label Parameters: horizontalAlignment - the horizontal aligment
Add a data flavor for this drag action.
Parameters: flavor - the dataflavor of this drag action. Parameters: transferData - the object return by this dataflavor.
Return the default data flavor DataFlavor.javaJVMLocalObjectMimeType. Or null if
the VM does not support DataFlavor.javaJVMLocalObjectMimeType.
the default data flavor of this drag operation.
public void setDefaultTransferData(Object data)(Code)
Set the default transfer data object. This object is returned when
getTransferData has been passed the default data flavor as its
paramter. If data is null, transfer data will be this object instance.
Parameters: data - the defautl transfer data for the drag operation.
Set the drag action of this label.
Parameters: dragAction - the drag action of this label.
setDragCursor
public void setDragCursor(Cursor dragCursor)(Code)
Set the cursor for this drag operation. Default to
DragSource.DefaultCopyDrop if dragCursor is null.
Parameters: dragCursor - the cursor to display during this drag operation.