public class XWAbsoluteLayout extends XLayoutContainer
XWidgetCreator.LimpidButton
限定符和类型 | 字段和说明 |
---|---|
protected double |
containerPercent |
default_Length, editable, isMouseEnter, isRefreshing, LARGEPREFERREDSIZE, MIN_HEIGHT, 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
构造器和说明 |
---|
XWAbsoluteLayout() |
XWAbsoluteLayout(WAbsoluteLayout widget) |
XWAbsoluteLayout(WAbsoluteLayout widget,
java.awt.Dimension initSize) |
限定符和类型 | 方法和说明 |
---|---|
void |
addConnector(Connector connector)
增加对齐线
|
void |
adjustCompHeight(double percent)
body大小手动调整的时候
按照比例调整组件的高度
|
void |
adjustCompWidth(double percent)
body大小手动调整的时候
按照比例调整组件的宽度
|
void |
componentAdded(java.awt.event.ContainerEvent e)
组件增加
|
void |
componentRemoved(java.awt.event.ContainerEvent e)
在设计界面中有组件移除的时候,需要通知WLayout容器重新paint
|
void |
convert()
转换保存组件信息的wlayout为对应的container
|
java.lang.String |
createDefaultName()
返回默认的容器name
|
int |
getActualMinHeight()
返回界面处根据百分比调整后的最小高度
|
int |
getActualMinWidth()
返回界面处根据百分比调整后的最小宽度
|
int |
getAcualInterval()
返回界面处根据百分比调整后的间隔大小(且为偶数)
|
double |
getContainerPercent()
返回容器大小的百分比
|
protected java.lang.String |
getIconName() |
LayoutAdapter |
getLayoutAdapter() |
java.awt.Dimension |
getMinimumSize() |
XLayoutContainer |
getTopLayout()
获取当前布局控件的顶层布局框架,如tab布局、绝对布局
|
XConnector |
getXConnector(Connector connector) |
boolean |
hasTitleStyle()
是否支持标题样式
|
java.awt.Dimension |
initEditorSize()
初始化时默认的组件大小
|
protected void |
initLayoutManager() |
protected void |
initStyle() |
boolean |
isSupportShared()
是否支持共享-现只支持报表块、图表、tab块、绝对布局
|
void |
paint(java.awt.Graphics g)
渲染Painter
|
void |
paintBorder(java.awt.Graphics g,
java.awt.Rectangle bounds)
编辑状态的时候需要重新绘制下边框
|
void |
paintComponent(java.awt.Graphics g) |
void |
paintExtro(java.awt.Graphics g) |
void |
removeConnector(Connector connector)
去除对齐线
|
XCreator |
replace(Widget widget,
XCreator oldcreator)
当前组件zorder位置替换新的控件
|
void |
respondClick(EditingMouseListener editingMouseListener,
java.awt.event.MouseEvent e)
响应点击事件
|
void |
setContainerPercent(double containerPercent)
设置容器大小的百分比
|
CRPropertyDescriptor[] |
supportedDescriptor()
得到属性名
|
boolean |
supportInnerOrderChangeActions()
内部组件是否支持叠加顺序的调整
return boolean
|
WAbsoluteLayout |
toData()
返回对应的widget容器
|
void |
updateBoundsWidget()
新增删除拉伸后每个组件的BoundsWidget
|
void |
updateBoundsWidget(XCreator xCreator)
新增删除拉伸后单个组件的BoundsWidget
|
void |
updateChildBound(int minHeight)
更新子组件的Bound
这边主要用于绝对布局子组件在适应区域选项时
涉及到的不同分辨率下缩放
|
addWidgetToSwingComponent, calculatePreferredSize, canEnterIntoParaPane, createMarginDescriptor, createWidgetNameDescriptor, findNearestFit, firePropertyChange, getAllXCreatorNameList, getBottomComp, getBottomLeftComp, getBottomRightComp, getDataBackground, getDesignWidth, getFRLayout, getHors, getIndexOfChild, getLeftComp, getPosition, getRightBottomComp, getRightComp, getRightTopComp, getShowXCreatorCount, getTopComp, getVeris, getXCreator, getXCreatorCount, initEditor, initXCreatorProperties, isComponentTreeLeaf, isDelayDisplayContent, isDisplay, isEditable, isUseParamsTemplate, recalculateChildrenPreferredSize, SearchQueryCreators, setBackground, setComponentZOrder, setDelayDisplayContent, setDisplay, setEditable, setMouseEnter, setPosition, setUseParamsTemplate, stopAddingState, supportSetEnable, supportSetVisible
getInsets, initBorderStyle, initTitleStyle
ChangeCreatorName, makeVisible, recalculateChildrenSize
acceptType, addToWrapper, adjustCompSize, backupCurrentSize, backupParent, canEnterIntoAbsolutePane, canEnterIntoAdaptPane, createPopupMenu, createToolPane, deleteRelatedComponent, destroyHelpDialog, displayCoverPane, getBackupBound, getBackupParent, getCoverPane, getCreatorWrapper, getDesignerEditor, getDirections, getEditingChildCreator, getIconPath, getOuterLayout, getParentShow, getPropertyDescriptorCreator, getShareId, getTargetChildrenList, getWidgetPropertyUIProviders, getXCreator, initCreatorWrapper, isDedicateContainer, isHelpBtnOnFocus, isMovable, isReport, isShared, isSupportDrag, notShowInComponentTree, rebuid, recalculateChildHeight, recalculateChildWidth, resetCreatorName, resetData, resetVisible, seleteRelatedComponent, setBackupBound, setBackupParent, setBounds, setDirections, setHelpBtnOnFocus, setInitSize, setShareId, setWrapperName, setXDescrption, setXDescrption, shouldScaleCreator, stopEditing, supportRenameInWidgetTree, 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, 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 XWAbsoluteLayout()
public XWAbsoluteLayout(WAbsoluteLayout widget)
public XWAbsoluteLayout(WAbsoluteLayout widget, java.awt.Dimension initSize)
public java.awt.Dimension initEditorSize()
initEditorSize
在类中 XLayoutContainer
public double getContainerPercent()
public void setContainerPercent(double containerPercent)
containerPercent
- the containerPercent to setpublic int getActualMinWidth()
public int getActualMinHeight()
public int getAcualInterval()
public void updateBoundsWidget(XCreator xCreator)
public void updateBoundsWidget()
public void updateChildBound(int minHeight)
updateChildBound
在接口中 XCreatorTools
updateChildBound
在类中 XCreator
minHeight
- 最小高度public void addConnector(Connector connector)
connector
- 对齐线public XConnector getXConnector(Connector connector)
public void removeConnector(Connector connector)
connector
- 对齐线public WAbsoluteLayout toData()
toData
在类中 XLayoutContainer
protected java.lang.String getIconName()
getIconName
在类中 XBorderStyleWidgetCreator
public java.lang.String createDefaultName()
createDefaultName
在类中 XCreator
protected void initLayoutManager()
initLayoutManager
在类中 XLayoutContainer
protected void initStyle()
initStyle
在类中 XBorderStyleWidgetCreator
public boolean hasTitleStyle()
hasTitleStyle
在类中 XCreator
public void paintComponent(java.awt.Graphics g)
paintComponent
在类中 javax.swing.JComponent
public void convert()
convert
在类中 XLayoutContainer
public XCreator replace(Widget widget, XCreator oldcreator)
replace
在类中 XLayoutContainer
widget
- 控件oldcreator
- 旧组件public void componentAdded(java.awt.event.ContainerEvent e)
componentAdded
在接口中 java.awt.event.ContainerListener
componentAdded
在类中 XLayoutContainer
e
- 容器事件public void componentRemoved(java.awt.event.ContainerEvent e)
componentRemoved
在接口中 java.awt.event.ContainerListener
componentRemoved
在类中 XLayoutContainer
e
- 容器事件public java.awt.Dimension getMinimumSize()
getMinimumSize
在类中 XCreator
public LayoutAdapter getLayoutAdapter()
getLayoutAdapter
在类中 XLayoutContainer
public XLayoutContainer getTopLayout()
XCreator
getTopLayout
在类中 XCreator
public CRPropertyDescriptor[] supportedDescriptor() throws java.beans.IntrospectionException
supportedDescriptor
在类中 XLayoutContainer
java.beans.IntrospectionException
public void paint(java.awt.Graphics g)
XWidgetCreator
paint
在类中 XWidgetCreator
public void paintExtro(java.awt.Graphics g)
public void paintBorder(java.awt.Graphics g, java.awt.Rectangle bounds)
XCreator
paintBorder
在类中 XCreator
public void respondClick(EditingMouseListener editingMouseListener, java.awt.event.MouseEvent e)
respondClick
在类中 XCreator
editingMouseListener
- 鼠标点击,位置处理器e
- 鼠标点击事件public void adjustCompWidth(double percent)
adjustCompWidth
在类中 XCreator
percent
- 比例public void adjustCompHeight(double percent)
adjustCompHeight
在类中 XCreator
percent
- 比例public boolean supportInnerOrderChangeActions()
XLayoutContainer
public boolean isSupportShared()
isSupportShared
在类中 XCreator