jdbreport.grid.undo
Class AbstractGridUndo

java.lang.Object
  extended by jdbreport.grid.undo.AbstractGridUndo
All Implemented Interfaces:
UndoItem
Direct Known Subclasses:
CellUndoItem, ColumnBreakUndoItem, PreferencesUndo, ResizingColumnUndoItem, ResizingRowUndoItem, RowBreakUndoItem, SetValueItem, StoredGridUndo, StyleUndoItem

public abstract class AbstractGridUndo
extends Object
implements UndoItem

Version:
1.1 03/09/08
Author:
Andrey Kholmanskih

Field Summary
protected  GridRect selectedRect
           
 
Fields inherited from interface jdbreport.grid.undo.UndoItem
ADD_COLUMNS, ADD_GROUP, ADD_ROWS, CELL_ALIGN, CELL_AUTOHEIGHT, CELL_BACKGROUND, CELL_BORDER, CELL_FONT_NAME, CELL_FONT_SIZE, CELL_FONT_STYLE, CHANGE_ROWTYPE, CLEAR_UNION_CELLS, COLUMN_MOVED, DEC_DECIMAL, DELETE_CELLS, DELETE_ICON, INC_DECIMAL, INSERT_ICON, NOT_REPEATE, PASTE_CELLS, REMOVE_CELL_BORDER, REMOVE_COLUMNS, REMOVE_ROWS, RESIZING_COLUMN, RESIZING_ROW, ROW_MOVED, SCALE_ICON, TOTAL_FUNCTION, UNION_CELLS
 
Constructor Summary
AbstractGridUndo(JReportGrid grid, String descr)
           
 
Method Summary
 void clear()
           
 boolean equals(Object obj)
           
 String getDescription()
           
 JReportGrid getGrid()
           
protected  void initSelectedGrid(JReportGrid grid)
           
protected  void selectRect()
           
 UndoItem undo()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectedRect

protected GridRect selectedRect
Constructor Detail

AbstractGridUndo

public AbstractGridUndo(JReportGrid grid,
                        String descr)
Method Detail

initSelectedGrid

protected void initSelectedGrid(JReportGrid grid)

undo

public UndoItem undo()
Specified by:
undo in interface UndoItem

selectRect

protected void selectRect()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getGrid

public JReportGrid getGrid()

getDescription

public String getDescription()
Specified by:
getDescription in interface UndoItem

clear

public void clear()
Specified by:
clear in interface UndoItem