org.zkoss.zss.ui.event
Class CellSelectionEvent

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

public class CellSelectionEvent
extends org.zkoss.zk.ui.event.Event

Event class about selection of cell

Author:
Dennis.Chen
See Also:
Serialized Form

Field Summary
static int SELECT_ALL
           
static int SELECT_CELLS
           
static int SELECT_COLUMN
           
static int SELECT_ROW
           
 
Constructor Summary
CellSelectionEvent(java.lang.String name, org.zkoss.zk.ui.Component target, Worksheet sheet, int action, int left, int top, int right, int bottom)
           
CellSelectionEvent(java.lang.String name, org.zkoss.zk.ui.Component target, Worksheet sheet, int action, int left, int top, int right, int bottom, java.lang.Object data)
           
 
Method Summary
 int getBottom()
           
 int getLeft()
           
 int getRight()
           
 int getSelectionType()
          Returns the selection type; it can be either SELECT_ALL(Select the whole sheet), SELECT_COLUMN(select the whole column), SELECT_ROW(select the whole row), SELECT_CELLS(select a rectangle area).
 Worksheet getSheet()
          get Sheet
 int 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

SELECT_CELLS

public static final int SELECT_CELLS
See Also:
Constant Field Values

SELECT_ROW

public static final int SELECT_ROW
See Also:
Constant Field Values

SELECT_COLUMN

public static final int SELECT_COLUMN
See Also:
Constant Field Values

SELECT_ALL

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

CellSelectionEvent

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

CellSelectionEvent

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

getSheet

public Worksheet getSheet()
get Sheet

Returns:
sheet the related sheet

getSelectionType

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

Returns:
the selection type.

getLeft

public int getLeft()

getTop

public int getTop()

getRight

public int getRight()

getBottom

public int getBottom()


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