public class XCardSwitchButton extends XButton
限定符和类型 | 类和说明 |
---|---|
class |
XCardSwitchButton.CardSwitchBtnLabel |
class |
XCardSwitchButton.CardSwitchBtnLabelUI |
XWidgetCreator.LimpidButton
限定符和类型 | 字段和说明 |
---|---|
static java.awt.Color |
CHOOSED_GRAL |
static java.awt.Color |
NORMAL_GRAL |
DEFAULTBG, DEFAULTFOREGROUNDCOLOR, DEFAULTFT
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
构造器和说明 |
---|
XCardSwitchButton(CardSwitchButton widget,
java.awt.Dimension initSize) |
XCardSwitchButton(CardSwitchButton widget,
java.awt.Dimension initSize,
XWCardLayout cardLayout,
XWCardTagLayout tagLayout) |
限定符和类型 | 方法和说明 |
---|---|
UIPopupMenu |
createPopupMenu(FormDesigner formDesigner)
创建右击弹出菜单
|
void |
doLayout() |
void |
firePropertyChange()
data属性改变触发其他操作
|
XWCardLayout |
getCardLayout() |
UILabel |
getLabel() |
Background |
getSelectBackground() |
XWCardTagLayout |
getTagLayout() |
XLayoutContainer |
getTopLayout()
获取当前布局控件的顶层布局框架,如tab布局、绝对布局
|
XCreator |
getXCreator()
控件树里需要隐藏xwcardmainLayout,返回其子组件xwcardLayout;
标题样式下,this.getComponent(1)==xwcardLayout
标准样式下,this.getComponent(0)==xwcardLayout
|
protected UILabel |
initContentLabel() |
protected void |
initXCreatorProperties()
根据Widget的属性值初始化XCreator的属性值
|
void |
paintComponent(java.awt.Graphics g) |
void |
respondClick(EditingMouseListener editingMouseListener,
java.awt.event.MouseEvent e)
响应点击事件
|
void |
setCardLayout(XWCardLayout cardLayout) |
void |
setLabel(UILabel label) |
void |
setSelectBackground(Background selectBackground) |
void |
setTagLayout(XWCardTagLayout tagLayout) |
creatNonListenerStyle, getContentBackground, getContentLabel, getIconName, getisCustomStyle, getisnotCustomStyle, initEditor, initEditorSize, setButtonText, setContentBackground, setContentLabel, supportedDescriptor
ChangeCreatorName, makeVisible, paint, recalculateChildrenSize, toData
acceptType, addToWrapper, adjustCompHeight, adjustCompSize, adjustCompWidth, backupCurrentSize, backupParent, canEnterIntoAbsolutePane, canEnterIntoAdaptPane, canEnterIntoParaPane, createDefaultName, createToolPane, deleteRelatedComponent, destroyHelpDialog, displayCoverPane, getAllXCreatorNameList, getBackupBound, getBackupParent, getCoverPane, getCreatorWrapper, getDesignerEditor, getDirections, getEditingChildCreator, getIconPath, getMinimumSize, getOuterLayout, getParentShow, getPropertyDescriptorCreator, getShareId, getTargetChildrenList, getWidgetPropertyUIProviders, hasTitleStyle, initCreatorWrapper, isComponentTreeLeaf, isDedicateContainer, isHelpBtnOnFocus, isMovable, isReport, isShared, isSupportDrag, isSupportShared, notShowInComponentTree, paintBorder, rebuid, recalculateChildHeight, recalculateChildWidth, resetCreatorName, resetData, resetVisible, SearchQueryCreators, seleteRelatedComponent, setBackupBound, setBackupParent, setBounds, setDirections, setHelpBtnOnFocus, setInitSize, setShareId, setWrapperName, setXDescrption, setXDescrption, shouldScaleCreator, stopEditing, supportRenameInWidgetTree, supportSetEnable, supportSetVisible, 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, 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, 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 final java.awt.Color NORMAL_GRAL
public static final java.awt.Color CHOOSED_GRAL
public XCardSwitchButton(CardSwitchButton widget, java.awt.Dimension initSize)
public XCardSwitchButton(CardSwitchButton widget, java.awt.Dimension initSize, XWCardLayout cardLayout, XWCardTagLayout tagLayout)
public XWCardTagLayout getTagLayout()
public void setTagLayout(XWCardTagLayout tagLayout)
public XWCardLayout getCardLayout()
public void setCardLayout(XWCardLayout cardLayout)
public Background getSelectBackground()
public void setSelectBackground(Background selectBackground)
public UILabel getLabel()
public void setLabel(UILabel label)
public void respondClick(EditingMouseListener editingMouseListener, java.awt.event.MouseEvent e)
respondClick
在类中 XCreator
editingMouseListener
- 事件处理器e
- 点击事件public UIPopupMenu createPopupMenu(FormDesigner formDesigner)
XCreator
createPopupMenu
在类中 XCreator
public void paintComponent(java.awt.Graphics g)
paintComponent
在类中 XButton
public XLayoutContainer getTopLayout()
XCreator
getTopLayout
在类中 XCreator
public void doLayout()
doLayout
在类中 java.awt.Container
public XCreator getXCreator()
getXCreator
在类中 XCreator
protected void initXCreatorProperties()
XWidgetCreator
initXCreatorProperties
在类中 XButton
public void firePropertyChange()
XButton
firePropertyChange
在类中 XButton
protected UILabel initContentLabel()
initContentLabel
在类中 XButton