public abstract class JListControlPane extends BasicPane implements ListControlPaneProvider
BasicPane.NamePane
限定符和类型 | 字段和说明 |
---|---|
protected java.awt.CardLayout |
cardLayout |
protected javax.swing.JPanel |
cardPane |
protected int |
editingIndex |
protected JNameEdList |
nameableList |
protected java.lang.String |
selectedName |
protected AbstractShortCutFactory |
shortCutFactory |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
JListControlPane() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addEditingListener(PropertyChangeAdapter l)
添加Editinglistener
|
protected void |
addModNameActionListener(ModNameActionListener l)
添加名字改变时的listener
|
void |
addNameable(Nameable nameable,
int index)
添加 Nameable
|
void |
checkButtonEnabled()
检查按钮可用状态 Check button enabled.
|
void |
checkValid()
检查是否符合规范
|
protected javax.swing.JPanel |
createControlUpdatePane() |
protected JNameEdList |
createJNameList() |
abstract NameableCreator[] |
createNameableCreators()
生成添加按钮的NameableCreator
|
BasicBeanPane |
createPaneByCreators(NameableCreator creator) |
BasicBeanPane |
createPaneByCreators(NameableCreator creator,
java.lang.String string) |
protected ShortCut4JControlPane[] |
createShortcuts() |
java.lang.String |
createUnrepeatedName(java.lang.String prefix)
生成不重复的名字
|
NameableCreator[] |
creators() |
java.awt.CardLayout |
getCardLayout() |
javax.swing.JPanel |
getCardPane() |
com.fr.design.gui.controlpane.JControlUpdatePane |
getControlUpdatePane() |
java.lang.String |
getEditingName() |
java.lang.Object |
getEditingType() |
protected javax.swing.JPanel |
getLeftPane() |
protected int |
getLeftPreferredSize() |
javax.swing.DefaultListModel |
getModel() |
JNameEdList |
getNameableList() |
int |
getSelectedIndex() |
java.lang.String |
getSelectedName()
获取选中的名字
|
ListModelElement |
getSelectedValue() |
ShortCut4JControlPane[] |
getShorts() |
UIToolbar |
getToolBar() |
ToolBarDef |
getToolbarDef() |
boolean |
hasInvalid(boolean isAdd) |
protected void |
initCardPane() |
protected void |
initComponentPane() |
protected void |
initLeftPane(javax.swing.JPanel leftPane)
初始化左边面板
|
protected void |
initShortCutFactory() |
protected void |
initToolBar() |
boolean |
isContainsRename()
是否重命名
|
boolean |
isItemSelected() |
boolean |
isNameRepeated()
名字是否重复
|
protected boolean |
isNameRepeated(java.util.List[] list,
java.lang.String name) |
void |
onAddItem(NameableCreator creator) |
void |
onCopyItem() |
void |
onMoveDownItem() |
void |
onMoveUpItem() |
void |
onRemoveItem() |
void |
onSortItem(boolean isAtoZ) |
void |
populate(Nameable[] nameableArray) |
protected void |
populateSelectedValue() |
void |
refreshNameableCreator(NameableCreator[] creators)
刷新 NameableCreator
|
void |
setCardLayout(java.awt.CardLayout cardLayout) |
void |
setCardPane(javax.swing.JPanel cardPane) |
void |
setCreators(NameableCreator[] creators) |
void |
setIllegalIndex(int index) |
void |
setSelectedIndex(int index)
设置选中项
|
void |
setSelectedName(java.lang.String name)
根据name,选中JNameEdList中的item
|
void |
setToolBar(UIToolbar toolBar) |
void |
setToolbarDef(ToolBarDef toolbarDef) |
void |
showEditPane() |
void |
showSelectPane() |
Nameable[] |
update() |
asNamePane, getTitle, showLargeWindow, showMediumWindow, showSmallWindow, showToolBarWindow, showUnsizedWindow, showWindow, showWindow, showWindow, showWindow, showWindow4ChartMapArray, showWindow4ChartType, showWindow4UpdateOnline, title4PopupWindow
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, 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, 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
creators, getShorts, showEditPane, showSelectPane
protected JNameEdList nameableList
protected int editingIndex
protected java.lang.String selectedName
protected java.awt.CardLayout cardLayout
protected javax.swing.JPanel cardPane
protected AbstractShortCutFactory shortCutFactory
protected javax.swing.JPanel createControlUpdatePane()
public abstract NameableCreator[] createNameableCreators()
protected void initLeftPane(javax.swing.JPanel leftPane)
protected JNameEdList createJNameList()
public Nameable[] update()
public void populate(Nameable[] nameableArray)
protected void addModNameActionListener(ModNameActionListener l)
l
- 名字改变时的监听protected void addEditingListener(PropertyChangeAdapter l)
l
- 监听protected void populateSelectedValue()
public void setSelectedName(java.lang.String name)
public java.lang.String getEditingName()
public java.lang.Object getEditingType()
public void setIllegalIndex(int index)
public java.lang.String getSelectedName()
protected boolean isNameRepeated(java.util.List[] list, java.lang.String name)
public boolean isNameRepeated()
public void addNameable(Nameable nameable, int index)
addNameable
在接口中 ListControlPaneProvider
nameable
- 添加的Nameableindex
- 序号public boolean isContainsRename()
public javax.swing.DefaultListModel getModel()
getModel
在接口中 ListControlPaneProvider
public java.lang.String createUnrepeatedName(java.lang.String prefix)
createUnrepeatedName
在接口中 UnrepeatedNameHelper
prefix
- 名字前缀public void onAddItem(NameableCreator creator)
onAddItem
在接口中 ShortCutListenerProvider
public void onRemoveItem()
onRemoveItem
在接口中 ShortCutListenerProvider
public void onCopyItem()
onCopyItem
在接口中 ShortCutListenerProvider
public void onMoveUpItem()
onMoveUpItem
在接口中 ShortCutListenerProvider
public void onMoveDownItem()
onMoveDownItem
在接口中 ShortCutListenerProvider
public void onSortItem(boolean isAtoZ)
onSortItem
在接口中 ShortCutListenerProvider
public boolean isItemSelected()
isItemSelected
在接口中 ShortCutListenerProvider
public void checkButtonEnabled()
checkButtonEnabled
在接口中 ListControlPaneProvider
public BasicBeanPane createPaneByCreators(NameableCreator creator)
createPaneByCreators
在接口中 ListControlPaneProvider
public BasicBeanPane createPaneByCreators(NameableCreator creator, java.lang.String string)
createPaneByCreators
在接口中 ListControlPaneProvider
public void checkValid() throws java.lang.Exception
checkValid
在接口中 ListControlPaneProvider
checkValid
在类中 BasicPane
java.lang.Exception
public boolean hasInvalid(boolean isAdd)
hasInvalid
在接口中 ListControlPaneProvider
public void setSelectedIndex(int index)
setSelectedIndex
在接口中 ListControlPaneProvider
index
- 选中项的序列号public int getSelectedIndex()
getSelectedIndex
在接口中 ListControlPaneProvider
public JNameEdList getNameableList()
getNameableList
在接口中 ListControlPaneProvider
public ListModelElement getSelectedValue()
getSelectedValue
在接口中 ListControlPaneProvider
public com.fr.design.gui.controlpane.JControlUpdatePane getControlUpdatePane()
getControlUpdatePane
在接口中 ListControlPaneProvider
protected void initShortCutFactory()
public ShortCut4JControlPane[] getShorts()
public void setCreators(NameableCreator[] creators)
public ToolBarDef getToolbarDef()
public void setToolbarDef(ToolBarDef toolbarDef)
public UIToolbar getToolBar()
public void setToolBar(UIToolbar toolBar)
public java.awt.CardLayout getCardLayout()
public void setCardLayout(java.awt.CardLayout cardLayout)
public javax.swing.JPanel getCardPane()
public void setCardPane(javax.swing.JPanel cardPane)
protected void initComponentPane()
protected void initCardPane()
public void showEditPane()
public void showSelectPane()
protected void initToolBar()
protected javax.swing.JPanel getLeftPane()
protected int getLeftPreferredSize()
protected ShortCut4JControlPane[] createShortcuts()
public NameableCreator[] creators()
creators
在接口中 ShortCutListenerProvider
public void refreshNameableCreator(NameableCreator[] creators)
creators
- 生成器