net.codescore.ui.components.dnd
Interface DnDObject

All Superinterfaces:
Cloneable, Comparable<DnDObject>, Component, Serializable
All Known Implementing Classes:
DropWindow

public interface DnDObject
extends Component, Comparable<DnDObject>

An object that can be dragged and dropped in a DnDColumn

Author:
Adam Cornett

Field Summary
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Method Summary
 int getColumnNumber()
           
 DnDColumn getDnDParent()
           
 Integer getRowNumber()
           
 void leaveColumn()
          Removes this object from its column
 void onDrop(DropEvent event)
          Handles what happens when an object is 'dropped' onto this object
 void setDnDParent(DnDColumn target)
          Sets this item's parent
 void setRowNumber(Integer i)
          Set the row number
 
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, setAttribute, setAttribute, setId, setMold, setPage, setPageBefore, setParent, setVariable, setVisible, smartUpdate, smartUpdateDeferred, smartUpdateValues, unsetVariable
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getColumnNumber

int getColumnNumber()
Returns:
The column number of this object

getDnDParent

DnDColumn getDnDParent()
Returns:
The column that this object is in

getRowNumber

Integer getRowNumber()
Returns:
The vertical position of the element in the column

leaveColumn

void leaveColumn()
Removes this object from its column


onDrop

void onDrop(DropEvent event)
Handles what happens when an object is 'dropped' onto this object

Parameters:
event - The drop event

setDnDParent

void setDnDParent(DnDColumn target)
Sets this item's parent

Parameters:
target - The new parent

setRowNumber

void setRowNumber(Integer i)
Set the row number

Parameters:
i -
See Also:
getRowNumber()


Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.