public abstract class UIListControlPane extends BasicPane implements ListControlPaneProvider
BasicPane.NamePane
限定符和类型 | 字段和说明 |
---|---|
protected java.awt.CardLayout |
cardLayout |
protected javax.swing.JPanel |
cardPane |
protected boolean |
isPopulating |
protected UINameEdList |
nameableList |
protected java.awt.Window |
popupEditDialog |
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
构造器和说明 |
---|
UIListControlPane() |
限定符和类型 | 方法和说明 |
---|---|
void |
addNameable(Nameable nameable,
int index)
添加 Nameable
|
void |
checkButtonEnabled()
检查按钮可用状态 Check button enabled.
|
void |
checkValid()
检查是否符合规范
|
protected javax.swing.JPanel |
createControlUpdatePane() |
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() |
protected java.lang.String |
getAddItemText()
子类重写此方法,可以改变标签内容
|
java.awt.CardLayout |
getCardLayout() |
javax.swing.JPanel |
getCardPane() |
com.fr.design.gui.controlpane.JControlUpdatePane |
getControlUpdatePane() |
protected javax.swing.JPanel |
getLeftPane() |
protected int |
getLeftPreferredSize() |
protected javax.swing.JPanel |
getLeftTopPane(UIToolbar topToolBar) |
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 |
isItemSelected() |
protected boolean |
isNewStyle() |
void |
onAddItem(NameableCreator creator) |
void |
onCopyItem() |
void |
onMoveDownItem() |
void |
onMoveUpItem() |
void |
onRemoveItem() |
void |
onSortItem(boolean isAtoZ) |
void |
populate(Nameable[] nameableArray) |
protected void |
popupEditDialog(java.awt.Point mousePos) |
void |
refreshNameableCreator(NameableCreator[] creators)
刷新 NameableCreator
|
abstract void |
saveSettings() |
void |
setCardLayout(java.awt.CardLayout cardLayout) |
void |
setCardPane(javax.swing.JPanel cardPane) |
void |
setCreators(NameableCreator[] creators) |
protected void |
setNameListEditable(boolean editable) |
void |
setSelectedIndex(int index)
设置选中项
|
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 UINameEdList nameableList
protected java.lang.String selectedName
protected boolean isPopulating
protected java.awt.Window popupEditDialog
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 void setNameListEditable(boolean editable)
public Nameable[] update()
public void populate(Nameable[] nameableArray)
public java.lang.String getSelectedName()
public void addNameable(Nameable nameable, int index)
addNameable
在接口中 ListControlPaneProvider
nameable
- 添加的Nameableindex
- 序号public javax.swing.DefaultListModel getModel()
getModel
在接口中 ListControlPaneProvider
protected void popupEditDialog(java.awt.Point mousePos)
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 ListModelElement getSelectedValue()
getSelectedValue
在接口中 ListControlPaneProvider
public com.fr.design.gui.controlpane.JControlUpdatePane getControlUpdatePane()
getControlUpdatePane
在接口中 ListControlPaneProvider
public JNameEdList getNameableList()
getNameableList
在接口中 ListControlPaneProvider
public abstract void saveSettings()
protected void initShortCutFactory()
protected boolean isNewStyle()
protected void initComponentPane()
protected void initToolBar()
protected javax.swing.JPanel getLeftPane()
protected javax.swing.JPanel getLeftTopPane(UIToolbar topToolBar)
protected java.lang.String getAddItemText()
protected ShortCut4JControlPane[] createShortcuts()
public void refreshNameableCreator(NameableCreator[] creators)
creators
- 生成器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 initCardPane()
public void showEditPane()
public void showSelectPane()
protected int getLeftPreferredSize()
public NameableCreator[] creators()
creators
在接口中 ShortCutListenerProvider