public abstract class AbstractEditor extends JPanel implements org.jgraph.event.GraphModelListener, org.jgraph.event.GraphSelectionListener, Observer
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainer| 限定符和类型 | 字段和说明 |
|---|---|
protected BarFactory |
barFactory
主界面菜单、工具条、状态栏以及相关图形的构造类 A factory for the menubar, tool and popup bars
|
protected Hashtable |
commands |
JTabbedPane |
contentTabbedPane |
protected Action[] |
defaultActions
缺省操作定义 Actions defined by the Editor class
|
protected AbstractGraph |
graph |
JPanel |
graphMainPanel |
JSplitPane |
graphMainsplitPane |
protected JScrollPane |
graphScrollPane |
static Image |
icon |
protected JSplitPane |
leftSplitPane |
protected JPanel |
mainPanel |
protected JMenuBar |
menubar |
protected Hashtable |
menuItems |
protected AbstractEditor |
parentEditor |
protected Redo |
redoAction |
protected Hashtable |
specialButtonGroup |
protected Hashtable |
specialItems |
protected BPDStatusBar |
statusBar |
protected JPanel |
submainPanel |
protected Hashtable |
toolbarComponents |
protected Hashtable |
toolbarGroup |
protected org.jgraph.graph.GraphUndoManager |
undo |
protected Undo |
undoAction
撤销、重复操作的实现 undo and redo action implementations
|
protected UndoHandler |
undoHandler |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| 构造器和说明 |
|---|
AbstractEditor() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract String |
buttongroupToLoad()
获得工作流工具按钮组的配置名称 Returns string of buttongroup for load.
|
protected abstract void |
createActions()
创建主界面的动作行为 Creates actions used by editor.
|
protected Component |
createCenterComponent()
主面板分为快捷方式工具栏、中心组件的上、下两部分,此方法创建子主面板的中心组件 Create the centerpanel of
component of this submainpanel.
|
protected abstract AbstractGraph |
createGraph()
Create an editor to represent the given document.
|
protected Component |
createMainComponent()
主界面分为菜单、中央组件、状态栏上、中、下三部分,此方法是创建主界面中央部分的组件 Create the main component of
this panel.
|
protected Component |
createRightComponent()
子主面板分为左、中、右三部分,此方法是创建子主面板的左边组件 Create the left of component of this
submainpanel component.
|
protected Hashtable |
createSpecialItems()
创建特殊菜单项 Create special menubar items - have no functionality at the moment.
|
protected Component |
createStatusBar()
此方法创建主界面的状态栏 Create the statusBar
|
protected Component |
createSubMainComponent()
主面板分为快捷方式工具栏、子主面板组件的上、下两部分,此方法创建子主面板 Create the center component of this
panel.
|
protected void |
doEditorSpecificStuff() |
Action |
getAction(String cmd)
得到响应的操作 Method to get packageEditor's action corresponding to the given
string.
|
Action[] |
getActions()
获得主界面按钮或菜单的操作对象Action Fetch the list of actions supported by this
packageEditor.
|
BarFactory |
getBarFactory()
获得主界面组件的构造类 Get barFactory class.
|
JTabbedPane |
getContentTabbedPane()
获得配置工作流的分页面板 Get contentTabbedPane.
|
AbstractGraph |
getGraph() |
JMenuBar |
getMenubar()
获得主界面菜单组件 Get menubar.
|
JMenuItem |
getMenuItem(String cmd)
获得一个菜单项
|
Map |
getMenuItems()
获得主界面菜单组件的菜单项集合 Get the menuItems of .JMenuBar from the Map of menuItems
|
AbstractEditor |
getParentEditor()
获得主界面的对象 Gets parentEditor.
|
Redo |
getRedo()
获得一个重复操作对象 Returns redoAction class.
|
Map |
getSpecialButtonGroup()
获得流程定义按钮的MAP集合 Put SpecialButton to the Hashtable of specialButtonGroup.
|
Object |
getSpecialButtonGroup(String key)
获得流程定义按钮 Put SpecialButton to the Hashtable of specialButtonGroup.
|
Object |
getSpecialItem(String key)
从Hashtable中 获得特殊菜单项
|
Map |
getSpecialItems()
获得特殊菜单项的HashTable
|
BPDStatusBar |
getStatusBar()
此方法获得主界面的状态栏 Get the statusBar
|
abstract String |
getTitle()
获得窗口标题 Gets a title.
|
JComponent |
getToolbarComponent(String cmd)
获得一个快捷方式工具栏按钮
|
Map |
getToolbarComponents()
获得存储所有快捷方式工具栏按钮的Map对象 Get the buttons of toolbar from the Map of
toolbarComponents.
|
JToolBar |
getToolbarGroup(String key)
从工具栏组中获得工具栏对象 Get the toolbar from the Hashtable of toolbarComponents.
|
Undo |
getUndo()
获得一个撤销操作对象 Returns undoAction class.
|
UndoHandler |
getUndoHandler() |
org.jgraph.graph.GraphUndoManager |
getUndoManager()
得到撤销对象
|
Window |
getWindow()
获得主窗口 Find the hosting window.
|
abstract String |
graphbars()
获得图形界面工具栏的配置名称
|
void |
graphChanged(org.jgraph.event.GraphModelEvent e)
图形变化侦听器
|
abstract String |
menubarToLoad()
获得主界面菜单的配置名称 Returns string of menubar for load.
|
void |
putMenuItem(String key,
Object item)
将菜单项目存入Hashtable Put menuItem to the Hashtable of menuItems.
|
void |
putSpecialButtonGroup(String key,
Object buttom)
添加流程定义按钮到特别按钮组 Put SpecialButton to the Hashtable of specialButtonGroup.
|
void |
putToolbarComponent(String key,
Object item)
将快捷方式工具栏按钮存入Hashtable Put the buttons of toolbar to the Hashtable of
toolbarComponents.
|
void |
putToolbarGroup(String key,
Object item)
将工具栏存入工具栏组Hashtable Put the toolbar to the Hashtable of toolbarGroup.
|
void |
refreshEditorConfiguration()
刷新主界面配置
|
void |
refreshView() |
protected void |
registerListeners(org.jgraph.JGraph graph)
为流程定义图形注册侦听器 Add this documents listeners to the specified graph.
|
void |
resetUndoManager()
重新设置撤销操作 Resets UndoManager.
|
protected void |
setALTCursorKeyboardShortcuts(JComponent jc) |
void |
setTitle(Window w,
String name)
设置窗口标题 Sets the title to the window.
|
void |
showWindow(String name)
显示主界面窗口 Shows a window.
|
abstract String |
toolbarToLoad()
获得快捷方式工具栏的配置名称 Returns string of toolbars for load.
|
protected void |
unregisterListeners(org.jgraph.JGraph graph)
移除流程定义图形侦听器 Remove this documents listeners from the specified graph.
|
void |
update()
更新界面 Invoked after the selection or the model has changed.
|
void |
update(Observable obs,
Object arg) |
void |
valueChanged(org.jgraph.event.GraphSelectionEvent e)
Enables and disables various actions depending of cell selection
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, updateadd, 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, validateTreeaction, 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, transferFocusUpCyclepublic static Image icon
protected BarFactory barFactory
protected Hashtable commands
protected Hashtable menuItems
protected Hashtable specialItems
protected Hashtable toolbarComponents
protected Hashtable toolbarGroup
protected JMenuBar menubar
protected JPanel mainPanel
protected JPanel submainPanel
protected JScrollPane graphScrollPane
protected BPDStatusBar statusBar
protected org.jgraph.graph.GraphUndoManager undo
protected UndoHandler undoHandler
protected JSplitPane leftSplitPane
protected Hashtable specialButtonGroup
public JTabbedPane contentTabbedPane
protected AbstractGraph graph
protected Undo undoAction
protected Redo redoAction
protected Action[] defaultActions
protected AbstractEditor parentEditor
public JPanel graphMainPanel
public JSplitPane graphMainsplitPane
public void refreshView()
protected Component createMainComponent()
protected Component createSubMainComponent()
protected Component createRightComponent()
protected Component createCenterComponent()
protected Component createStatusBar()
public BPDStatusBar getStatusBar()
public abstract String getTitle()
public abstract String graphbars()
public abstract String toolbarToLoad()
public abstract String buttongroupToLoad()
public abstract String menubarToLoad()
protected abstract void createActions()
public AbstractEditor getParentEditor()
protected void doEditorSpecificStuff()
public void putSpecialButtonGroup(String key, Object buttom)
public Object getSpecialButtonGroup(String key)
public Map getSpecialButtonGroup()
public Object getSpecialItem(String key)
key - 菜单项关键字public Map getSpecialItems()
public void putMenuItem(String key, Object item)
public void putToolbarGroup(String key, Object item)
public JToolBar getToolbarGroup(String key)
public void putToolbarComponent(String key, Object item)
public Map getToolbarComponents()
public BarFactory getBarFactory()
public JTabbedPane getContentTabbedPane()
public JMenuBar getMenubar()
public Map getMenuItems()
public JMenuItem getMenuItem(String cmd)
cmd - The keyword in the resource file to serve as the basis of
lookups. Returns menubar item if exist.public JComponent getToolbarComponent(String cmd)
cmd - The keyword in the resource file to serve as the basis of
lookups. Returns toolbar button if exist.public Redo getRedo()
public Undo getUndo()
protected Hashtable createSpecialItems()
public Window getWindow()
public void update()
public void showWindow(String name)
public void resetUndoManager()
public org.jgraph.graph.GraphUndoManager getUndoManager()
protected void setALTCursorKeyboardShortcuts(JComponent jc)
jc - 侦听组件public Action[] getActions()
public Action getAction(String cmd)
cmd - String representation of editor's action.protected void registerListeners(org.jgraph.JGraph graph)
graph - protected void unregisterListeners(org.jgraph.JGraph graph)
graph - public void valueChanged(org.jgraph.event.GraphSelectionEvent e)
valueChanged 在接口中 org.jgraph.event.GraphSelectionListenerpublic void update(Observable obs, Object arg)
public void graphChanged(org.jgraph.event.GraphModelEvent e)
graphChanged 在接口中 org.jgraph.event.GraphModelListenere - public void refreshEditorConfiguration()
public AbstractGraph getGraph()
protected abstract AbstractGraph createGraph()
public UndoHandler getUndoHandler()
Copyright © 2023 onecode. All rights reserved.