net.codescore.ui.components.windows
Class DropWindow

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.Window
                  extended by net.codescore.ui.components.windows.DropWindow
All Implemented Interfaces:
Serializable, Cloneable, Comparable<DnDObject>, DnDObject, Component, IdSpace, ComponentCtrl

public class DropWindow
extends Window
implements DnDObject

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.Window
Window.ExtraCtrl
 
Field Summary
private  DnDColumn myParent
           
private  Integer rowNumber
           
private static long serialVersionUID
           
 
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
DropWindow()
           
 
Method Summary
 int compareTo(DnDObject o)
           
 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
 void syncParent()
           
 String toString()
           
 
Methods inherited from class org.zkoss.zul.Window
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getCtrlKeys, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setCtrlKeys, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendAsapAttr, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getCommand, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPageBefore, setVariable, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, smartUpdateValues, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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 org.zkoss.zk.ui.IdSpace
getFellow, getFellowIfAny
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

myParent

private DnDColumn myParent

rowNumber

private Integer rowNumber
Constructor Detail

DropWindow

public DropWindow()
Method Detail

compareTo

public int compareTo(DnDObject o)
Specified by:
compareTo in interface Comparable<DnDObject>

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface DnDObject
Returns:
The column number of this object

getDnDParent

public DnDColumn getDnDParent()
Specified by:
getDnDParent in interface DnDObject
Returns:
The column that this object is in

getRowNumber

public Integer getRowNumber()
Specified by:
getRowNumber in interface DnDObject
Returns:
The vertical position of the element in the column

leaveColumn

public void leaveColumn()
Description copied from interface: DnDObject
Removes this object from its column

Specified by:
leaveColumn in interface DnDObject

onDrop

public void onDrop(DropEvent event)
Description copied from interface: DnDObject
Handles what happens when an object is 'dropped' onto this object

Specified by:
onDrop in interface DnDObject
Parameters:
event - The drop event

setDnDParent

public void setDnDParent(DnDColumn target)
Description copied from interface: DnDObject
Sets this item's parent

Specified by:
setDnDParent in interface DnDObject
Parameters:
target - The new parent

setRowNumber

public void setRowNumber(Integer i)
Description copied from interface: DnDObject
Set the row number

Specified by:
setRowNumber in interface DnDObject
See Also:
DnDObject.getRowNumber()

syncParent

public void syncParent()

toString

public String toString()
Overrides:
toString in class AbstractComponent


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