org.zkoss.zss.ui.event
Class SelectionChangeEvent

java.lang.Object
  extended by org.zkoss.zk.ui.event.Event
      extended by org.zkoss.zss.ui.event.CellSelectionEvent
          extended by org.zkoss.zss.ui.event.SelectionChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class SelectionChangeEvent
extends CellSelectionEvent

Event class about selection of cell

Author:
Dennis.Chen
See Also:
Serialized Form

Field Summary
static int MODIFY
           
static int MOVE
           
 
Fields inherited from class org.zkoss.zss.ui.event.CellSelectionEvent
SELECT_ALL, SELECT_CELLS, SELECT_COLUMN, SELECT_ROW
 
Constructor Summary
SelectionChangeEvent(java.lang.String name, org.zkoss.zk.ui.Component target, Worksheet sheet, int action, int left, int top, int right, int bottom, int origleft, int origtop, int origright, int origbottom)
           
SelectionChangeEvent(java.lang.String name, org.zkoss.zk.ui.Component target, Worksheet sheet, int action, int left, int top, int right, int bottom, int origleft, int origtop, int origright, int origbottom, java.lang.Object data)
           
 
Method Summary
 int getAction()
          Returns the action of this event.
 int getOrigbottom()
           
 int getOrigleft()
           
 int getOrigright()
           
 int getOrigtop()
           
 int getSelectionType()
          Returns the selection type; it can be either CellSelectionEvent.SELECT_ALL(Select the whole sheet), CellSelectionEvent.SELECT_COLUMN(select the whole column), CellSelectionEvent.SELECT_ROW(select the whole row), CellSelectionEvent.SELECT_CELLS(select a rectangle area).
 
Methods inherited from class org.zkoss.zss.ui.event.CellSelectionEvent
getBottom, getLeft, getRight, getSheet, getTop
 
Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MOVE

public static final int MOVE
See Also:
Constant Field Values

MODIFY

public static final int MODIFY
See Also:
Constant Field Values
Constructor Detail

SelectionChangeEvent

public SelectionChangeEvent(java.lang.String name,
                            org.zkoss.zk.ui.Component target,
                            Worksheet sheet,
                            int action,
                            int left,
                            int top,
                            int right,
                            int bottom,
                            int origleft,
                            int origtop,
                            int origright,
                            int origbottom,
                            java.lang.Object data)

SelectionChangeEvent

public SelectionChangeEvent(java.lang.String name,
                            org.zkoss.zk.ui.Component target,
                            Worksheet sheet,
                            int action,
                            int left,
                            int top,
                            int right,
                            int bottom,
                            int origleft,
                            int origtop,
                            int origright,
                            int origbottom)
Method Detail

getAction

public int getAction()
Returns the action of this event. It can be either MODIFY (change by dragging the 'dot') or MOVE (change by dragging the border)


getSelectionType

public int getSelectionType()
Description copied from class: CellSelectionEvent
Returns the selection type; it can be either CellSelectionEvent.SELECT_ALL(Select the whole sheet), CellSelectionEvent.SELECT_COLUMN(select the whole column), CellSelectionEvent.SELECT_ROW(select the whole row), CellSelectionEvent.SELECT_CELLS(select a rectangle area).

Overrides:
getSelectionType in class CellSelectionEvent
Returns:
the selection type.

getOrigleft

public int getOrigleft()

getOrigtop

public int getOrigtop()

getOrigright

public int getOrigright()

getOrigbottom

public int getOrigbottom()


Copyright © 2005-2010 Potix Corporation. All Rights Reserved. SourceForge.net Logo