public abstract class XLayoutContainer extends XBorderStyleWidgetCreator implements java.awt.event.ContainerListener, ParameterBridge
XWidgetCreator.LimpidButton
限定符和类型 | 字段和说明 |
---|---|
protected int |
default_Length |
protected boolean |
editable
布局是否可编辑,不可则显示编辑层
|
protected boolean |
isMouseEnter |
protected boolean |
isRefreshing |
protected static java.awt.Dimension |
LARGEPREFERREDSIZE |
static int |
MIN_HEIGHT |
static int |
MIN_WIDTH |
BORDER_PREFERRED_SIZE
FULL_OPACITY, HALF_OPACITY
backupParent, backupSize, BIG_PREFERRED_SIZE, coverPanel, data, DEFALUTBORDER, editor, MIDDLE_PREFERRED_SIZE, SMALL_PREFERRED_SIZE
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
XLayoutContainer(WLayout widget,
java.awt.Dimension initSize) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addWidgetToSwingComponent(WLayout layout) |
protected java.awt.Dimension |
calculatePreferredSize(Widget wgt)
根据widget的属性值来获取
|
boolean |
canEnterIntoParaPane()
该组件是否可以拖入参数面板
|
void |
componentAdded(java.awt.event.ContainerEvent e)
设计界面中有组件添加时,要通知WLayout容器重新paint
|
void |
componentRemoved(java.awt.event.ContainerEvent e)
设计界面中有组件添加时,要通知WLayout容器重新paint
|
void |
convert()
将WLayout转换为XLayoutContainer
|
CRPropertyDescriptor |
createMarginDescriptor()
边距属性
|
CRPropertyDescriptor |
createWidgetNameDescriptor()
控件名属性
|
XLayoutContainer |
findNearestFit()
寻找最近的为自适应布局的父容器
|
void |
firePropertyChange()
data属性改变触发其他操作
|
java.util.List<java.lang.String> |
getAllXCreatorNameList(XCreator xCreator,
java.util.List<java.lang.String> namelist) |
java.awt.Component |
getBottomComp(int x,
int y,
int h)
返回指定point的下方组件
|
java.awt.Component |
getBottomLeftComp(int x,
int y,
int h)
返回指定point的左方且是下侧的组件
|
java.awt.Component |
getBottomRightComp(int x,
int y,
int h,
int w)
返回指定point的右方且是下侧的组件
|
Background |
getDataBackground()
获取参数界面背景
|
int |
getDesignWidth()
获取参数界面的宽度
|
FRLayoutManager |
getFRLayout() |
int[] |
getHors()
获取容器所有内部组件横坐标值
|
int |
getIndexOfChild(java.lang.Object child) |
abstract LayoutAdapter |
getLayoutAdapter() |
java.awt.Component |
getLeftComp(int x,
int y)
主要为自适应用
返回指定point的左方组件
|
int |
getPosition()
获取参数面板的对齐方式
|
java.awt.Component |
getRightBottomComp(int x,
int y,
int h,
int w)
返回指定point的下方且是右侧的组件
|
java.awt.Component |
getRightComp(int x,
int y,
int w)
返回指定point的右方组件
|
java.awt.Component |
getRightTopComp(int x,
int y,
int w)
返回指定point的上方且是右侧的组件
|
int |
getShowXCreatorCount() |
java.awt.Component |
getTopComp(int x,
int y)
主要为自适应用
返回指定point的上方组件
|
int[] |
getVeris()
获取容器所有内部组件纵坐标值
|
XCreator |
getXCreator(int i) |
int |
getXCreatorCount() |
protected javax.swing.JComponent |
initEditor() |
java.awt.Dimension |
initEditorSize()
初始化时默认的组件大小
|
protected abstract void |
initLayoutManager() |
protected void |
initXCreatorProperties()
根据Widget的属性值初始化XCreator的属性值
|
boolean |
isComponentTreeLeaf()
是否作为控件树的叶子节点
|
boolean |
isDelayDisplayContent()
是否延迟展示报表内容,也就是说是否要等点击了查询之后才执行报表
|
boolean |
isDisplay()
是否显示参数界面
|
boolean |
isEditable()
布局是否可编辑,不可则显示编辑蒙层
|
boolean |
isUseParamsTemplate()
是否启用参数模板
|
void |
recalculateChildrenPreferredSize()
重新调整子组件的大小
|
XCreator |
replace(Widget widget,
XCreator oldcreator)
当前组件zorder位置替换新的控件
|
boolean |
SearchQueryCreators(XCreator xCreator)
是否有查询按钮
|
void |
setBackground(Background background) |
void |
setComponentZOrder(XCreator creator,
int targetIndex) |
void |
setDelayDisplayContent(boolean delayPlaying) |
void |
setDisplay(boolean showWindow) |
void |
setEditable(boolean isEditable)
设置布局是否可编辑,不可则显示编辑蒙层
|
void |
setMouseEnter(boolean mouseEnter) |
void |
setPosition(int align) |
void |
setUseParamsTemplate(boolean isUse) |
void |
stopAddingState(FormDesigner designer)
切换到非添加状态
|
CRPropertyDescriptor[] |
supportedDescriptor()
得到属性名
|
boolean |
supportInnerOrderChangeActions()
内部组件是否支持叠加顺序的调整
return boolean
|
boolean |
supportSetEnable()
是否支持设置可用
return boolean
|
boolean |
supportSetVisible()
是否支持设置可见
return boolean
|
WLayout |
toData()
返回对应的wlayout
|
getIconName, getInsets, initBorderStyle, initStyle, initTitleStyle
ChangeCreatorName, makeVisible, paint, recalculateChildrenSize
acceptType, addToWrapper, adjustCompHeight, adjustCompSize, adjustCompWidth, backupCurrentSize, backupParent, canEnterIntoAbsolutePane, canEnterIntoAdaptPane, createDefaultName, createPopupMenu, createToolPane, deleteRelatedComponent, destroyHelpDialog, displayCoverPane, getBackupBound, getBackupParent, getCoverPane, getCreatorWrapper, getDesignerEditor, getDirections, getEditingChildCreator, getIconPath, getMinimumSize, getOuterLayout, getParentShow, getPropertyDescriptorCreator, getShareId, getTargetChildrenList, getTopLayout, getWidgetPropertyUIProviders, getXCreator, hasTitleStyle, initCreatorWrapper, isDedicateContainer, isHelpBtnOnFocus, isMovable, isReport, isShared, isSupportDrag, isSupportShared, notShowInComponentTree, paintBorder, rebuid, recalculateChildHeight, recalculateChildWidth, resetCreatorName, resetData, resetVisible, respondClick, seleteRelatedComponent, setBackupBound, setBackupParent, setBounds, setDirections, setHelpBtnOnFocus, setInitSize, setShareId, setWrapperName, setXDescrption, setXDescrption, shouldScaleCreator, stopEditing, supportRenameInWidgetTree, updateChildBound, 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, 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, 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
public static int MIN_WIDTH
public static int MIN_HEIGHT
protected static final java.awt.Dimension LARGEPREFERREDSIZE
protected boolean isRefreshing
protected int default_Length
protected boolean editable
protected boolean isMouseEnter
public XLayoutContainer(WLayout widget, java.awt.Dimension initSize)
public void setMouseEnter(boolean mouseEnter)
public CRPropertyDescriptor[] supportedDescriptor() throws java.beans.IntrospectionException
supportedDescriptor
在类中 XWidgetCreator
java.beans.IntrospectionException
public CRPropertyDescriptor createWidgetNameDescriptor() throws java.beans.IntrospectionException
java.beans.IntrospectionException
public CRPropertyDescriptor createMarginDescriptor() throws java.beans.IntrospectionException
java.beans.IntrospectionException
public WLayout toData()
toData
在类中 XBorderStyleWidgetCreator
protected void initXCreatorProperties()
XWidgetCreator
initXCreatorProperties
在类中 XWidgetCreator
protected javax.swing.JComponent initEditor()
initEditor
在类中 XBorderStyleWidgetCreator
public void setComponentZOrder(XCreator creator, int targetIndex)
public XCreator replace(Widget widget, XCreator oldcreator)
widget
- 控件oldcreator
- 旧组件public java.awt.Dimension initEditorSize()
initEditorSize
在类中 XCreator
protected abstract void initLayoutManager()
public void convert()
protected void addWidgetToSwingComponent(WLayout layout)
public void componentAdded(java.awt.event.ContainerEvent e)
componentAdded
在接口中 java.awt.event.ContainerListener
e
- 待说明public void componentRemoved(java.awt.event.ContainerEvent e)
componentRemoved
在接口中 java.awt.event.ContainerListener
e
- 待说明protected java.awt.Dimension calculatePreferredSize(Widget wgt)
wgt
- public void recalculateChildrenPreferredSize()
public int getShowXCreatorCount()
public int getXCreatorCount()
public XCreator getXCreator(int i)
public boolean canEnterIntoParaPane()
canEnterIntoParaPane
在类中 XCreator
public boolean isComponentTreeLeaf()
isComponentTreeLeaf
在接口中 XCreatorTools
isComponentTreeLeaf
在类中 XCreator
public java.util.List<java.lang.String> getAllXCreatorNameList(XCreator xCreator, java.util.List<java.lang.String> namelist)
getAllXCreatorNameList
在类中 XCreator
public boolean SearchQueryCreators(XCreator xCreator)
SearchQueryCreators
在类中 XCreator
xCreator
- 控件或容器public FRLayoutManager getFRLayout()
public abstract LayoutAdapter getLayoutAdapter()
public int getIndexOfChild(java.lang.Object child)
public java.awt.Component getTopComp(int x, int y)
x
- x位置y
- y位置public java.awt.Component getLeftComp(int x, int y)
x
- x位置y
- y位置public java.awt.Component getRightComp(int x, int y, int w)
x
- x位置y
- y位置w
- 宽度public java.awt.Component getBottomComp(int x, int y, int h)
x
- x位置y
- y位置h
- 高度public java.awt.Component getRightTopComp(int x, int y, int w)
x
- x位置y
- y位置w
- 宽度public java.awt.Component getBottomLeftComp(int x, int y, int h)
x
- x位置y
- y位置h
- 高度public java.awt.Component getBottomRightComp(int x, int y, int h, int w)
x
- x位置y
- y位置h
- 高度w
- 宽度public java.awt.Component getRightBottomComp(int x, int y, int h, int w)
x
- x位置y
- y位置h
- 高度w
- 宽度public boolean isDelayDisplayContent()
isDelayDisplayContent
在接口中 ParameterBridge
public boolean isUseParamsTemplate()
isUseParamsTemplate
在接口中 ParameterBridge
public boolean isDisplay()
isDisplay
在接口中 ParameterBridge
public Background getDataBackground()
ParameterBridge
getDataBackground
在接口中 ParameterBridge
public int getDesignWidth()
getDesignWidth
在接口中 ParameterBridge
public int getPosition()
getPosition
在接口中 ParameterBridge
public void stopAddingState(FormDesigner designer)
designer
- 表单设计器public XLayoutContainer findNearestFit()
public int[] getHors()
public int[] getVeris()
public void setDelayDisplayContent(boolean delayPlaying)
setDelayDisplayContent
在接口中 ParameterBridge
public void setUseParamsTemplate(boolean isUse)
setUseParamsTemplate
在接口中 ParameterBridge
public void setPosition(int align)
setPosition
在接口中 ParameterBridge
public void setDisplay(boolean showWindow)
setDisplay
在接口中 ParameterBridge
public void setBackground(Background background)
setBackground
在接口中 ParameterBridge
public boolean isEditable()
public void setEditable(boolean isEditable)
isEditable
- 可否编辑public void firePropertyChange()
public boolean supportSetVisible()
supportSetVisible
在类中 XCreator
public boolean supportSetEnable()
supportSetEnable
在类中 XCreator
public boolean supportInnerOrderChangeActions()