public abstract class XCreator extends javax.swing.JPanel implements XComponent, XCreatorTools
限定符和类型 | 字段和说明 |
---|---|
protected XLayoutContainer |
backupParent |
protected java.awt.Dimension |
backupSize |
protected static java.awt.Dimension |
BIG_PREFERRED_SIZE |
protected CoverReportPane |
coverPanel |
protected Widget |
data |
protected static javax.swing.border.Border |
DEFALUTBORDER |
protected javax.swing.JComponent |
editor |
protected static java.awt.Dimension |
MIDDLE_PREFERRED_SIZE |
static java.awt.Dimension |
SMALL_PREFERRED_SIZE |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
限定符和类型 | 方法和说明 |
---|---|
boolean |
acceptType(java.lang.Class<?>... acceptTypes)
是否接收这种类型
|
protected void |
addToWrapper(XLayoutContainer parentPanel,
int width,
int minHeight)
将当前对象添加到父容器中
|
void |
adjustCompHeight(double percent)
按照比例调整组件的高度
|
void |
adjustCompSize(double percent)
按百分比调整组件
|
void |
adjustCompWidth(double percent)
按照比例调整组件的宽度
|
void |
backupCurrentSize()
备份当前大小
|
void |
backupParent()
备份当前parent容器
|
boolean |
canEnterIntoAbsolutePane()
该组件是否可以拖入绝对布局
|
boolean |
canEnterIntoAdaptPane()
该组件是否可以拖入表单主体
|
boolean |
canEnterIntoParaPane()
该组件是否可以拖入参数面板
|
java.lang.String |
createDefaultName()
返回组件默认名
|
UIPopupMenu |
createPopupMenu(FormDesigner formDesigner)
创建右击弹出菜单
|
javax.swing.JComponent |
createToolPane(BaseJForm jform,
FormDesigner formEditor)
根据权限编辑工具界面
|
void |
deleteRelatedComponent(XCreator creator,
FormDesigner designer)
删除相关组件
|
void |
destroyHelpDialog()
销毁帮助提示框
|
void |
displayCoverPane(boolean display)
是否展现覆盖的pane
|
void |
firePropertyChange()
data属性改变触发其他操作
|
java.util.List<java.lang.String> |
getAllXCreatorNameList(XCreator xCreator,
java.util.List<java.lang.String> namelist) |
java.awt.Rectangle |
getBackupBound() |
XLayoutContainer |
getBackupParent() |
javax.swing.JComponent |
getCoverPane() |
protected XLayoutContainer |
getCreatorWrapper(java.lang.String widgetName)
获取当前XCreator的一个封装父容器
|
DesignerEditor<? extends javax.swing.JComponent> |
getDesignerEditor() |
int[] |
getDirections() |
XCreator |
getEditingChildCreator()
返回编辑的子组件,scale为其内部组件
|
protected java.lang.String |
getIconName() |
java.lang.String |
getIconPath() |
java.awt.Dimension |
getMinimumSize() |
XLayoutContainer |
getOuterLayout() |
java.awt.Component |
getParentShow()
获取其在控件树上可见父层
|
XCreator |
getPropertyDescriptorCreator()
返回对应属性表的组件,scale和title返回其子组件
|
java.lang.String |
getShareId() |
java.util.ArrayList<?> |
getTargetChildrenList()
返回一些需要的子组件
|
XLayoutContainer |
getTopLayout()
获取当前布局控件的顶层布局框架,如tab布局、绝对布局
|
WidgetPropertyUIProvider[] |
getWidgetPropertyUIProviders()
获取当前组件自定义的属性表tab
|
XCreator |
getXCreator()
返回组件
|
boolean |
hasTitleStyle()
是否支持标题样式
|
XLayoutContainer |
initCreatorWrapper(int minHeight)
初始化当前组件的父容器
大体分为三种: Scale缩放型, Title标题型, Border自定义标题栏
|
protected abstract javax.swing.JComponent |
initEditor() |
java.awt.Dimension |
initEditorSize()
返回XCreator的默认大小80x21
|
protected abstract void |
initXCreatorProperties()
根据Widget的属性值初始化XCreator的属性值
|
boolean |
isComponentTreeLeaf()
是否作为控件树的叶子节点
|
boolean |
isDedicateContainer()
是否为sclae和title专属容器
|
boolean |
isHelpBtnOnFocus()
焦点是否在帮助按钮上
|
boolean |
isMovable()
是否支持上移一层、下移一层等操作
|
boolean |
isReport()
是否支持切换到报表界面编辑
|
boolean |
isShared()
组件是否是共享组件
|
boolean |
isSupportDrag()
该组件是否可以拖拽(表单中参数面板和自适应布局不可以拖拽)
|
boolean |
isSupportShared()
是否支持共享-现只支持报表块、图表、tab块、绝对布局
|
void |
notShowInComponentTree(java.util.List<java.awt.Component> path)
控件树不显示此组件
|
void |
paintBorder(java.awt.Graphics g,
java.awt.Rectangle bounds)
编辑状态的时候需要重新绘制下边框
|
void |
rebuid()
初始化creator的属性值
|
void |
recalculateChildHeight(int height,
boolean actualSize)
重新调整子组件高度
|
void |
recalculateChildWidth(int width,
boolean actualSize)
重新调整子组件宽度
|
void |
resetCreatorName(java.lang.String name)
重置组件的名称
|
void |
resetData(Widget data)
重新设置data
|
void |
resetVisible(boolean visible)
重置组件的可见性
|
void |
respondClick(EditingMouseListener editingMouseListener,
java.awt.event.MouseEvent e)
响应点击事件
|
boolean |
SearchQueryCreators(XCreator xCreator)
是否有查询按钮
|
void |
seleteRelatedComponent(XCreator creator)
选择相关组件
|
void |
setBackupBound(java.awt.Rectangle rec) |
void |
setBackupParent(XLayoutContainer backupContainer) |
void |
setBounds(java.awt.Rectangle bounds)
设置组件的位置大小
|
void |
setDirections(int[] directions) |
void |
setHelpBtnOnFocus(boolean helpBtnOnFocus) |
void |
setInitSize(java.awt.Dimension initSize)
初始化组件大小
|
void |
setShareId(java.lang.String shareId) |
protected void |
setWrapperName(XLayoutContainer parentPanel,
java.lang.String widgetName)
设置父容器的名字
|
void |
setXDescrption(java.lang.String msg)
设置描述信息
|
void |
setXDescrption(Widget widget)
根据widget设置Xcreator描述信息
|
boolean |
shouldScaleCreator()
是否组件要缩放(自适应里部分组件需要, 如数字、文本、下拉框、下拉复选框、密码、下拉树、下拉复选树、日期)
|
void |
stopEditing()
有的控件是有编辑状态的,给一个退出编辑的接口
|
abstract CRPropertyDescriptor[] |
supportedDescriptor()
返回组件属性值
|
boolean |
supportRenameInWidgetTree()
控件树面板中是否支持重命名选项
|
boolean |
supportSetEnable()
是否支持设置可用
return boolean
|
boolean |
supportSetVisible()
是否支持设置可见
return boolean
|
Widget |
toData()
生成creator对应的控件widget
|
void |
updateChildBound(int minHeight)
更新子组件的Bound; 没有不处理
|
void |
useBackupSize()
应用备份的大小
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBounds
protected static final javax.swing.border.Border DEFALUTBORDER
public static final java.awt.Dimension SMALL_PREFERRED_SIZE
protected static final java.awt.Dimension MIDDLE_PREFERRED_SIZE
protected static final java.awt.Dimension BIG_PREFERRED_SIZE
protected java.awt.Dimension backupSize
protected XLayoutContainer backupParent
protected Widget data
protected javax.swing.JComponent editor
protected CoverReportPane coverPanel
public XCreator(Widget ob, java.awt.Dimension initSize)
public int[] getDirections()
public void setDirections(int[] directions)
public void useBackupSize()
public void setInitSize(java.awt.Dimension initSize)
public void backupCurrentSize()
public XLayoutContainer getBackupParent()
public void setBackupParent(XLayoutContainer backupContainer)
public void backupParent()
public XLayoutContainer getTopLayout()
protected XLayoutContainer getCreatorWrapper(java.lang.String widgetName)
widgetName
- 当前组件名protected void addToWrapper(XLayoutContainer parentPanel, int width, int minHeight)
parentPanel
- 父容器组件protected void setWrapperName(XLayoutContainer parentPanel, java.lang.String widgetName)
parentPanel
- 当前父容器widgetName
- 当前控件名public XLayoutContainer initCreatorWrapper(int minHeight)
minHeight
- 最小高度public void rebuid()
public abstract CRPropertyDescriptor[] supportedDescriptor() throws java.beans.IntrospectionException
java.beans.IntrospectionException
- 异常public Widget toData()
protected abstract javax.swing.JComponent initEditor()
protected abstract void initXCreatorProperties()
public java.awt.Dimension initEditorSize()
protected java.lang.String getIconName()
public java.lang.String getIconPath()
public java.lang.String createDefaultName()
public void setBounds(java.awt.Rectangle bounds)
XComponent
setBounds
在接口中 XComponent
setBounds
在类中 java.awt.Component
bounds
- bound大小public DesignerEditor<? extends javax.swing.JComponent> getDesignerEditor()
public javax.swing.JComponent createToolPane(BaseJForm jform, FormDesigner formEditor)
createToolPane
在接口中 XComponent
jform
- 表单容器formEditor
- 设计界面组件public java.awt.Dimension getMinimumSize()
getMinimumSize
在类中 javax.swing.JComponent
public boolean isReport()
public boolean canEnterIntoParaPane()
public boolean canEnterIntoAdaptPane()
public boolean canEnterIntoAbsolutePane()
public boolean isSupportDrag()
public java.util.List<java.lang.String> getAllXCreatorNameList(XCreator xCreator, java.util.List<java.lang.String> namelist)
public boolean SearchQueryCreators(XCreator xCreator)
xCreator
- 控件或容器public java.awt.Rectangle getBackupBound()
public void setBackupBound(java.awt.Rectangle rec)
rec
- the backupBound to setpublic void notShowInComponentTree(java.util.List<java.awt.Component> path)
notShowInComponentTree
在接口中 XCreatorTools
path
- 控件树listpublic java.awt.Component getParentShow()
getParentShow
在接口中 XCreatorTools
public void resetCreatorName(java.lang.String name)
resetCreatorName
在接口中 XCreatorTools
name
- 名称public void resetVisible(boolean visible)
visible
- 可见性public XCreator getEditingChildCreator()
getEditingChildCreator
在接口中 XCreatorTools
public XCreator getPropertyDescriptorCreator()
getPropertyDescriptorCreator
在接口中 XCreatorTools
public void updateChildBound(int minHeight)
updateChildBound
在接口中 XCreatorTools
minHeight
- 最小高度public boolean isComponentTreeLeaf()
isComponentTreeLeaf
在接口中 XCreatorTools
public boolean isDedicateContainer()
isDedicateContainer
在接口中 XCreatorTools
public boolean acceptType(java.lang.Class<?>... acceptTypes)
acceptTypes
- 接收的类型public boolean shouldScaleCreator()
public boolean hasTitleStyle()
public void respondClick(EditingMouseListener editingMouseListener, java.awt.event.MouseEvent e)
editingMouseListener
- 鼠标点击,位置处理器e
- 鼠标点击事件public void deleteRelatedComponent(XCreator creator, FormDesigner designer)
creator
- 当前组件designer
- 表单设计器public void seleteRelatedComponent(XCreator creator)
creator
- 当前组件public XCreator getXCreator()
public void adjustCompSize(double percent)
percent
- 百分比
voidpublic java.util.ArrayList<?> getTargetChildrenList()
public XLayoutContainer getOuterLayout()
public void recalculateChildWidth(int width, boolean actualSize)
width
- 宽度actualSize
- 是否按照实际大小计算public void recalculateChildHeight(int height, boolean actualSize)
height
- 高度actualSize
- 是否按照实际大小计算public WidgetPropertyUIProvider[] getWidgetPropertyUIProviders()
public boolean supportRenameInWidgetTree()
public boolean isShared()
public void setShareId(java.lang.String shareId)
public java.lang.String getShareId()
public boolean isHelpBtnOnFocus()
public void setHelpBtnOnFocus(boolean helpBtnOnFocus)
public void setXDescrption(java.lang.String msg)
msg
- 帮助信息public javax.swing.JComponent getCoverPane()
public void destroyHelpDialog()
public void displayCoverPane(boolean display)
display
- 是否public void setXDescrption(Widget widget)
widget
- public void adjustCompWidth(double percent)
percent
- 比例public void adjustCompHeight(double percent)
percent
- 比例public boolean supportSetVisible()
public boolean supportSetEnable()
public void resetData(Widget data)
public void firePropertyChange()
public void stopEditing()
public void paintBorder(java.awt.Graphics g, java.awt.Rectangle bounds)
public UIPopupMenu createPopupMenu(FormDesigner formDesigner)
public boolean isMovable()
public boolean isSupportShared()