public class CellSelection extends Selection
限定符和类型 | 字段和说明 |
---|---|
static int |
CHOOSE_COLUMN |
static int |
CHOOSE_ROW |
static int |
NORMAL |
构造器和说明 |
---|
CellSelection() |
CellSelection(int column,
int row,
int columnSpan,
int rowSpan) |
限定符和类型 | 方法和说明 |
---|---|
void |
addCellRectangle(java.awt.Rectangle cellRectangle)
增加选中的区域
|
void |
asTransferable(ElementsTransferable transferable,
ElementCasePane ePane)
作为可传输的
|
boolean |
canMergeCells(ElementCasePane ePane)
是否能合并单元格
|
boolean |
canUnMergeCells(ElementCasePane ePane)
是否撤销合并单元格
|
boolean |
clear(ElementCasePane.Clear type,
ElementCasePane ePane)
清除
|
void |
clearCellRectangles(int i)
清除区域块
|
CellSelection |
clone() |
int |
containsCell(int column,
int row)
包含单元格
|
boolean |
containsColumnRow(ColumnRow cr)
包含行列
|
UIPopupMenu |
createPopupMenu(ElementCasePane ePane)
创建弹出菜单
|
boolean |
equals(java.lang.Object obj) |
java.awt.Rectangle |
getCellRectangle(int index)
Gets the cell rectangle at given position
|
int |
getCellRectangleCount()
Gets the count of cell rectangle
|
int |
getColumn() |
int |
getColumnSpan() |
java.awt.Rectangle |
getEditRectangle()
Gets edit rectangle
|
java.awt.Rectangle |
getFirstCellRectangle()
Gets the only cell rectangle
|
java.awt.Rectangle |
getLastCellRectangle()
Gets the last cell rectangle
|
QuickEditor |
getQuickEditor(TargetComponent tc)
获取选中元素的快速编辑区域
|
int |
getRow() |
int |
getRowSpan() |
int[] |
getSelectedColumns() |
int[] |
getSelectedRows() |
int |
getSelectedType() |
boolean |
isSelectedOneCell(ElementCasePane ePane)
是否选择一个单元格
|
boolean |
mergeCells(ElementCasePane ePane)
合并单元格
|
void |
moveDown(ElementCasePane ePane)
向下移动
|
void |
moveLeft(ElementCasePane ePane)
向左移动
|
void |
moveRight(ElementCasePane ePane)
向右移动
|
void |
moveUp(ElementCasePane ePane)
向上移动
|
boolean |
pasteCellElementsClip(CellElementsClip ceClip,
ElementCasePane ePane)
黏贴单元格
|
boolean |
pasteOtherType(java.lang.Object ob,
ElementCasePane ePane)
黏贴其他
|
boolean |
pasteString(java.lang.String str,
ElementCasePane ePane)
黏贴字符串
|
void |
populatePropertyPane(ElementCasePane ePane) |
void |
populateWidgetPropertyPane(ElementCasePane ePane) |
void |
setBounds(int column,
int row,
int columnSpan,
int rowSpan) |
void |
setLastRectangleBounds(int column,
int row,
int columnSpan,
int rowSpan) |
void |
setSelectedType(int chooseType) |
java.awt.Rectangle |
toRectangle()
转换成矩形
|
boolean |
triggerDeleteAction(ElementCasePane ePane)
触发删除动作
|
boolean |
unMergeCells(ElementCasePane ePane)
撤销合并单元格
|
addExtraMenu, pasteFloatElementClip
public static final int NORMAL
public static final int CHOOSE_COLUMN
public static final int CHOOSE_ROW
public CellSelection()
public CellSelection(int column, int row, int columnSpan, int rowSpan)
public final void setBounds(int column, int row, int columnSpan, int rowSpan)
public void setLastRectangleBounds(int column, int row, int columnSpan, int rowSpan)
public void setSelectedType(int chooseType)
public int getSelectedType()
public void addCellRectangle(java.awt.Rectangle cellRectangle)
cellRectangle
- 区域public java.awt.Rectangle getEditRectangle()
public java.awt.Rectangle getFirstCellRectangle()
public java.awt.Rectangle getLastCellRectangle()
public int getCellRectangleCount()
public java.awt.Rectangle getCellRectangle(int index)
public void clearCellRectangles(int i)
i
- 区域块public int containsCell(int column, int row)
column
- 列row
- 行public int getColumn()
public int getRow()
public int getColumnSpan()
public int getRowSpan()
public java.awt.Rectangle toRectangle()
public boolean isSelectedOneCell(ElementCasePane ePane)
isSelectedOneCell
在类中 Selection
ePane
- 区域public void asTransferable(ElementsTransferable transferable, ElementCasePane ePane)
asTransferable
在类中 Selection
transferable
- 传输介质ePane
- 区域public boolean pasteCellElementsClip(CellElementsClip ceClip, ElementCasePane ePane)
pasteCellElementsClip
在类中 Selection
ceClip
- 单元格ePane
- 区域public boolean pasteString(java.lang.String str, ElementCasePane ePane)
pasteString
在类中 Selection
str
- 字符串ePane
- 区域public boolean pasteOtherType(java.lang.Object ob, ElementCasePane ePane)
pasteOtherType
在类中 Selection
ob
- 要黏贴的东西ePane
- 区域public boolean canMergeCells(ElementCasePane ePane)
canMergeCells
在类中 Selection
ePane
- 区域public boolean mergeCells(ElementCasePane ePane)
mergeCells
在类中 Selection
ePane
- 区域public boolean canUnMergeCells(ElementCasePane ePane)
canUnMergeCells
在类中 Selection
ePane
- 区域public boolean unMergeCells(ElementCasePane ePane)
unMergeCells
在类中 Selection
ePane
- 区域public UIPopupMenu createPopupMenu(ElementCasePane ePane)
createPopupMenu
在类中 Selection
ePane
- 区域public boolean clear(ElementCasePane.Clear type, ElementCasePane ePane)
public int[] getSelectedColumns()
getSelectedColumns
在类中 Selection
public int[] getSelectedRows()
getSelectedRows
在类中 Selection
public void moveLeft(ElementCasePane ePane)
public void moveRight(ElementCasePane ePane)
public void moveUp(ElementCasePane ePane)
public void moveDown(ElementCasePane ePane)
public boolean triggerDeleteAction(ElementCasePane ePane)
triggerDeleteAction
在类中 Selection
ePane
- 区域public boolean containsColumnRow(ColumnRow cr)
containsColumnRow
在类中 Selection
cr
- 行列public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public CellSelection clone()
clone
在接口中 FCloneable
clone
在类中 Selection
public QuickEditor getQuickEditor(TargetComponent tc)
SelectableElement
public void populatePropertyPane(ElementCasePane ePane)
populatePropertyPane
在类中 Selection
public void populateWidgetPropertyPane(ElementCasePane ePane)
populateWidgetPropertyPane
在类中 Selection