public class FormSelection
extends java.lang.Object
构造器和说明 |
---|
FormSelection() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
addedable(XCreator creator)
是否是可以增加的
|
boolean |
addSelectedCreator(XCreator creator)
成功增加选中的组件
|
void |
backupBounds()
备份组件的bound
|
boolean |
contains(Widget widget)
是否包含当前控件
|
void |
copy2ClipBoard(FormSelection clipBoard)
复制选中的所有组件
|
void |
cut2ClipBoard(FormSelection clipBoard)
剪切选中的所有组件
|
void |
fixCreator(FormDesigner designer)
调整组件大小
|
java.awt.Rectangle |
getBackupBounds() |
int[] |
getDirections() |
java.awt.Rectangle |
getRelativeBounds() |
java.awt.Rectangle |
getSelctionBounds() |
XCreator |
getSelectedCreator()
返回选中的第一个组件,为空返回null
|
XCreator[] |
getSelectedCreators()
返回选中的所有组件
|
Widget[] |
getSelectedWidgets() |
boolean |
isEmpty()
是否没有选中的组件
|
void |
removeCreator(XCreator creator)
去除选中的组件中指定组件
|
boolean |
removeSelectedCreator(XCreator comp)
是否成功删除选择的组件
|
void |
reset()
重置选中的组件
|
void |
setSelectedCreator(XCreator creator) |
void |
setSelectedCreators(java.util.ArrayList<XCreator> selections) |
void |
setSelectionBounds(java.awt.Rectangle rec,
FormDesigner designer) |
int |
size()
选中的组件数量
|
public void reset()
public boolean isEmpty()
public int size()
public void removeCreator(XCreator creator)
creator
- 待去除组件public boolean removeSelectedCreator(XCreator comp)
comp
- 组件public boolean addSelectedCreator(XCreator creator)
creator
- 组件public boolean addedable(XCreator creator)
creator
- 组件public XCreator getSelectedCreator()
public XCreator[] getSelectedCreators()
public Widget[] getSelectedWidgets()
public void setSelectedCreator(XCreator creator)
public void setSelectedCreators(java.util.ArrayList<XCreator> selections)
public boolean contains(Widget widget)
widget
- 控件public int[] getDirections()
public void backupBounds()
public java.awt.Rectangle getBackupBounds()
public java.awt.Rectangle getRelativeBounds()
public java.awt.Rectangle getSelctionBounds()
public void setSelectionBounds(java.awt.Rectangle rec, FormDesigner designer)
public void fixCreator(FormDesigner designer)
designer
- 设计界面组件public void cut2ClipBoard(FormSelection clipBoard)
clipBoard
- 剪切板public void copy2ClipBoard(FormSelection clipBoard)
clipBoard
- 复制板