public class UIButtonGroup<T> extends javax.swing.JPanel implements GlobalNameObserver
限定符和类型 | 字段和说明 |
---|---|
protected java.util.List<UIToggleButton> |
labelButtonList |
protected int |
selectedIndex |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
UIButtonGroup(javax.swing.Icon[] iconArray) |
UIButtonGroup(javax.swing.Icon[][] iconArray) |
UIButtonGroup(javax.swing.Icon[][] iconArray,
T[] objects) |
UIButtonGroup(javax.swing.Icon[] iconArray,
T[] objects) |
UIButtonGroup(java.lang.String[] textArray) |
UIButtonGroup(java.lang.String[] textArray,
T[] objects) |
限定符和类型 | 方法和说明 |
---|---|
void |
addActionListener(java.awt.event.ActionListener l) |
void |
addChangeListener(javax.swing.event.ChangeListener l) |
UIToggleButton |
getButton(int index)
getButton
|
protected java.awt.LayoutManager |
getGridLayout(int number) |
protected javax.swing.border.Border |
getGroupBorder() |
int |
getSelectedIndex()
getSelectedIndex
|
T |
getSelectedItem()
getSelectedItem
|
boolean |
hasClick() |
protected void |
initButton(UIToggleButton labelButton) |
static void |
main(java.lang.String... args)
main
|
protected void |
paintBorder(java.awt.Graphics g)
重载Border画法
|
void |
paintComponents(java.awt.Graphics g)
paintComponent
|
void |
populateBean()
populate
|
void |
registerNameListener(GlobalNameListener listener)
注册全局属性名字监听器
|
void |
removeActionListener(java.awt.event.ActionListener l) |
void |
removeChangeListener(javax.swing.event.ChangeListener l) |
void |
setAllToolTips(java.lang.String[] tips)
给所有的Button添加Tips
|
void |
setClickState(boolean changeFlag) |
void |
setEnabled(boolean enabled)
setEnabled
|
void |
setForToolBarButtonGroup(boolean isToolBarComponent) |
void |
setGlobalName(java.lang.String name)
设置全局名字
|
void |
setSelectedIndex(int newSelectedIndex)
setSelectedIndex
|
void |
setSelectedItem(T ob)
setSelectedItem
|
protected void |
setSelectedWithFireChanged(int newSelectedIndex) |
boolean |
shouldResponseNameListener()
是否响应名字监听事件
|
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, getMinimumSize, 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, 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, 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, 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, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected java.util.List<UIToggleButton> labelButtonList
protected int selectedIndex
public UIButtonGroup(java.lang.String[] textArray)
public UIButtonGroup(javax.swing.Icon[] iconArray)
public UIButtonGroup(javax.swing.Icon[][] iconArray)
public UIButtonGroup(javax.swing.Icon[] iconArray, T[] objects)
public UIButtonGroup(javax.swing.Icon[][] iconArray, T[] objects)
public UIButtonGroup(java.lang.String[] textArray, T[] objects)
public boolean hasClick()
public void setClickState(boolean changeFlag)
public void setForToolBarButtonGroup(boolean isToolBarComponent)
public void setEnabled(boolean enabled)
setEnabled
在类中 javax.swing.JComponent
enabled
- public void setGlobalName(java.lang.String name)
GlobalNameObserver
setGlobalName
在接口中 GlobalNameObserver
protected void initButton(UIToggleButton labelButton)
protected javax.swing.border.Border getGroupBorder()
protected java.awt.LayoutManager getGridLayout(int number)
public void paintComponents(java.awt.Graphics g)
paintComponents
在类中 java.awt.Container
g
- public void setSelectedItem(T ob)
ob
- public T getSelectedItem()
public int getSelectedIndex()
protected void setSelectedWithFireChanged(int newSelectedIndex)
public void setSelectedIndex(int newSelectedIndex)
newSelectedIndex
- public UIToggleButton getButton(int index)
index
- public void setAllToolTips(java.lang.String[] tips)
tips
- public void registerNameListener(GlobalNameListener listener)
registerNameListener
在接口中 GlobalNameObserver
listener
- 观察者监听事件public boolean shouldResponseNameListener()
shouldResponseNameListener
在接口中 GlobalNameObserver
public void addChangeListener(javax.swing.event.ChangeListener l)
l
- public void removeChangeListener(javax.swing.event.ChangeListener l)
l
- public void addActionListener(java.awt.event.ActionListener l)
l
- public void removeActionListener(java.awt.event.ActionListener l)
l
- public void populateBean()
protected void paintBorder(java.awt.Graphics g)
paintBorder
在类中 javax.swing.JComponent
g
- public static void main(java.lang.String... args)
args
-