BasicPane.NamePane
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DELETE |
static java.lang.String |
EDIT |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
UIGroupExtensionPane(java.lang.String[] titles) |
限定符和类型 | 方法和说明 |
---|---|
void |
addData(java.lang.Object data,
int index)
根据索引来添加数据
|
void |
addData(java.lang.Object data,
int index,
boolean checkRepeat)
根据索引来添加数据
|
void |
addData(java.lang.Object data,
java.lang.String title)
根据标题来添加数据
|
void |
addData(java.lang.Object data,
java.lang.String title,
boolean checkRepeat)
根据标题来添加数据
|
void |
addDeleteListener(ChangeListener listener)
添加删除事件的监听事件
|
void |
addItemEditListener(ChangeListener listener)
添加Item的监听事件
|
void |
addSelectionChangeListener(ChangeListener listener)
添加选中变化监听事件
|
void |
clearData()
清除所有的数据
|
void |
clearLastListSelection(javax.swing.JList currentList)
直接跨list点击删除按钮,要置之前list的选中项为空(因为删除操作不触发更新)
|
protected void |
dealNewAddedDataIndex(java.lang.Object data)
新添加的数据的序号
|
java.lang.Object[] |
getData(int index)
返回index列表的数据
|
java.lang.Object[] |
getData(java.lang.String title)
返回对应Title的列表数组
|
java.lang.Object |
getSelectedObject()
获取选中的值
|
java.lang.String |
getSelectedType()
返回选中的类别
|
boolean |
isPressOnDelete()
是否点击在删除按钮上
|
protected boolean |
isRespondToValueChange(javax.swing.event.ListSelectionEvent e)
是否响应list值改变
|
static void |
main(java.lang.String[] args)
测试程序
|
void |
setEnabled(boolean isEnabled) |
void |
setSelectedObject(java.lang.Object value)
设置选中的数据
|
void |
setValueAtCurrentSelectIndex(java.lang.Object value)
设置数据选中的序号.
|
protected java.lang.String |
title4PopupWindow() |
asNamePane, checkValid, getTitle, showLargeWindow, showMediumWindow, showSmallWindow, showToolBarWindow, showUnsizedWindow, showWindow, showWindow, showWindow, showWindow, showWindow4ChartMapArray, showWindow4ChartType, showWindow4UpdateOnline
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, 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, 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, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String EDIT
public static final java.lang.String DELETE
protected java.lang.String title4PopupWindow()
title4PopupWindow
在类中 BasicPane
public java.lang.Object[] getData(int index)
public java.lang.Object[] getData(java.lang.String title)
public java.lang.Object getSelectedObject()
public java.lang.String getSelectedType()
public void setSelectedObject(java.lang.Object value)
public void setValueAtCurrentSelectIndex(java.lang.Object value)
public void addData(java.lang.Object data, int index)
data
- 要添加的数据index
- 要添加的数据向的索引public void addData(java.lang.Object data, int index, boolean checkRepeat)
data
- 要添加的数据index
- 要添加的数据向的索引checkRepeat
- 是否检查名字重复protected void dealNewAddedDataIndex(java.lang.Object data)
data
- 数据public void addData(java.lang.Object data, java.lang.String title)
data
- 要添加的数据title
- 要添加数据的项的标题文字public void addData(java.lang.Object data, java.lang.String title, boolean checkRepeat)
data
- 要添加的数据title
- 要添加数据的项的标题文字checkRepeat
- 是否检查名字重复public void clearData()
protected boolean isRespondToValueChange(javax.swing.event.ListSelectionEvent e)
public void clearLastListSelection(javax.swing.JList currentList)
currentList
- 当前选中的listpublic boolean isPressOnDelete()
public void addSelectionChangeListener(ChangeListener listener)
listener
- 监听public void addItemEditListener(ChangeListener listener)
listener
- 监听器public void addDeleteListener(ChangeListener listener)
listener
- 监听public void setEnabled(boolean isEnabled)
setEnabled
在类中 javax.swing.JComponent
public static void main(java.lang.String[] args)
args
- 参数