|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.sciapp.table.span.SpanModelEvent
public class SpanModelEvent
An event used to identify which cells were merged or split.
SpanModelEvent contains the affected cellspan object. The type of the event is also specified. There are INSERT and DELETE events generated when inserting and deleting cell spans respectively. Also, UPDATE events indicate that there were a series of cell spans under the area specified by the event's cellspan object.
One of the usages of the SpanModelEvent is for the table to repaint the affected cell span area.
This is handled automatically by SpanDrawer
SpanModel
,
Serialized FormField Summary | |
---|---|
protected CellSpan |
cellSpan
the event's cellspan. |
static int |
DELETE
identifies a DELETE event. |
static int |
INSERT
identifies an INSERT event. |
protected int |
type
the event's type. |
static int |
UPDATE
identifies an UPDATE event. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
SpanModelEvent(SpanModel source)
Constructs an UPDATE SpanModelEvent with a cellspan covering all cells of the table. |
|
SpanModelEvent(SpanModel source,
CellSpan cellSpan,
int type)
Constructs an UPDATE SpanModelEvent having cellSpan as the cellspan and type as the type of the event (UPDATE, INSERT, DELETE). |
Method Summary | |
---|---|
CellSpan |
getCellSpan()
Returns the cellspan object of the event. |
int |
getType()
Returns the type of the event. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected CellSpan cellSpan
protected int type
public static final int DELETE
public static final int INSERT
public static final int UPDATE
Constructor Detail |
---|
public SpanModelEvent(SpanModel source)
public SpanModelEvent(SpanModel source, CellSpan cellSpan, int type)
Method Detail |
---|
public CellSpan getCellSpan()
public int getType()
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |