public abstract class JTemplate<T extends BaseBook,U extends BaseUndoState<?>> extends TargetComponent<T> implements ToolBarMenuDockPlus, DesignerProxy
限定符和类型 | 字段和说明 |
---|---|
protected U |
authorityUndoState |
protected TemplateProcessInfo<T> |
processInfo |
int |
resolution |
protected T |
template |
protected U |
undoState |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
JTemplate() |
JTemplate(T t,
FILE file) |
JTemplate(T t,
FILE file,
boolean isNewFile) |
JTemplate(T t,
java.lang.String defaultFileName) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(java.lang.Object o) |
boolean |
acceptToolbarItem(java.lang.Class clazz) |
void |
activeJTemplate(int index,
JTemplate jt)
激活指定的template
|
void |
activeNewJTemplate()
激活新的模板
|
void |
activeOldJTemplate()
激活已存在的模板
|
void |
addJTemplateActionListener(JTemplateActionListener l)
增加模板Listener
|
void |
appendProcess(java.lang.String s) |
protected abstract void |
applyUndoState(U u) |
void |
cancelFormat()
取消格式
|
boolean |
canRedo()
可以重做
|
boolean |
canUndo()
可以撤销
|
void |
cleanAuthorityUndo()
清除权限细粒度撤销
|
void |
copyJS()
复制JS代码
|
protected abstract javax.swing.JComponent |
createCenterPane() |
DBManipulationPane |
createDBManipulationPane()
创建内置sql提交的pane
|
DBManipulationPane |
createDBManipulationPaneInWidget()
创建控件事件里内置sql提交的pane
|
protected abstract DesignModelAdapter<T,?> |
createDesignModel() |
UIButton[] |
createExtraButtons()
加载插件中的按钮
|
abstract UIMenuItem[] |
createMenuItem4Preview()
创建菜单项Preview
|
UIButton[] |
createShareButton()
创建分享模板的按钮, 目前只有jworkbook实现了
|
protected abstract U |
createUndoState() |
void |
doConditionCancelFormat()
有条件取消格式刷
|
void |
doResize()
重新计算大小
|
void |
fireAuthorityStateToNomal()
用于在退出权限编辑的时候,将所有操作的有权限编辑的效果作为一个动作放入正常报表undoManager中
|
void |
fireJTemplateClosed()
触发模板关闭
|
void |
fireJTemplateOpened()
触发模板打开
|
void |
fireJTemplateSaved()
触发模板保存
|
void |
fireTargetModified()
模板更新
|
abstract TargetComponent |
getCurrentElementCasePane() |
abstract javax.swing.JComponent |
getCurrentReportComponentPane() |
FILE |
getEditingFILE()
得到正在编辑的FILE
|
int |
getEditingReportIndex() |
protected FILEChooserPane |
getFILEChooserPane(boolean isShowLoc) |
abstract HyperlinkGroupPane |
getHyperLinkPane(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider)
返回当前支持的超链界面pane
|
abstract HyperlinkGroupPane |
getHyperLinkPaneNoPop(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider)
返回当前支持的超链界面pane
没有悬浮弹窗,显示为两列
|
abstract javax.swing.Icon |
getIcon()
取小图标,主要用于多TAB标签栏
|
Parameter[] |
getJTemplateParameters()
获取模板参数
|
abstract int |
getJTemplateResolution() |
int |
getMenuState() |
DesignModelAdapter<T,?> |
getModel() |
Parameter[] |
getParameters()
获取所有参数
|
java.lang.String |
getPath() |
javax.swing.Icon |
getPreviewLargeIcon()
得到预览的大图标
|
PreviewProvider |
getPreviewType() |
java.lang.String |
getProcess() |
abstract TemplateProcessInfo<T> |
getProcessInfo() |
abstract int |
getScale() |
Widget |
getSelectElementCase() |
javax.swing.undo.UndoManager |
getUndoManager() |
U |
getUndoState() |
void |
iniAuthorityUndoState()
初始化权限细粒度撤销状态
|
boolean |
isALLSaved()
是否都保存了
|
boolean |
isChartBook()
是否是图表
|
boolean |
isDoSomethingInAuthority()
是否在权限编辑时做过操作
|
abstract boolean |
isJWorkBook()
是否是工作薄
|
boolean |
isNewDesigner()
判断是否是新版设计器
|
boolean |
isOldDesigner()
是否是就版本设计器
|
boolean |
isSaved()
是否保存了
|
boolean |
isUpMode()
是否是参数面板的模式
|
void |
judgeSheetAuthority(java.lang.String roles)
在权限编辑的状态下,切换左下角角色树的角色时,判断对应的额sheet是不是需要corver
|
MenuDef[] |
menus4Target()
目标菜单
|
protected void |
mkNewFile(FILE file) |
void |
needAddTemplateIdAttr(boolean isUseParamTemplate)
由于老版本的模板没有模板ID,当勾选使用参数模板时候,就加一个模板ID attr
|
PreviewProvider |
parserPreviewProvider(int typeCode)
预览模式转换
|
void |
previewMenuActionPerformed(PreviewProvider provider)
略
|
void |
redo()
重做
|
abstract void |
refreshContainer()
刷新容器
|
abstract void |
refreshEastPropertiesPane() |
void |
refreshToolArea()
刷新工具区域
|
void |
removeJTemplateActionListener(JTemplateActionListener l)
移除模板Listener
|
abstract void |
removeParameterPaneSelection()
去除参数面板选择
|
abstract void |
removeTemplateSelection()
去除选择
|
void |
requestGridFocus()
请求表单焦点
|
void |
revert()
模板切换时,恢复原来的状态
|
abstract java.lang.String |
route() |
boolean |
saveAsTemplate()
另存
|
boolean |
saveAsTemplate(boolean isShowLoc) |
boolean |
saveAsTemplate(boolean isShowLoc,
java.lang.String fileName)
保存
|
boolean |
saveAsTemplate2Env()
另存
|
protected boolean |
saveFile() |
protected boolean |
saveNewFile(FILE editingFILE,
java.lang.String oldName) |
boolean |
saveShareFile()
将模板另存为可以分享出去的混淆后内置数据集模板
|
boolean |
saveTemplate()
是否保存
|
boolean |
saveTemplate(boolean isShowLoc)
Web预览的时候需要隐藏掉除“报表运行环境”外的路径(C盘D盘等) isShowLoc = false
|
boolean |
saveTemplate2Env()
保存
|
abstract int |
selfAdaptUpdate()
缩放参数自适应
|
abstract void |
setAuthorityMode(boolean isUpMode) |
void |
setComposite() |
abstract void |
setJTemplateResolution(int resolution)
set/get 模板屏幕分辨率
|
void |
setPictureElem(Elem elem,
CellImage cellImage)
添加图片到格子中
|
void |
setPreviewType(PreviewProvider previewType)
设置预览方式
|
void |
setSaved(boolean isSaved) |
abstract void |
setScale(int resolution)
缩放参数
|
void |
setSheetCovered(boolean isCovered) |
ShortCut[] |
shortcut4ExportMenu()
导出菜单项
|
ShortCut[] |
shortcut4FileMenu()
文件的4个菜单
|
abstract ShortCut[] |
shortcut4TemplateMenu()
模板菜单
|
abstract ShortCut[] |
shortCuts4Authority()
权限细粒度模板菜单
|
void |
stopEditing()
停止编辑, 判断保存属性 *
|
void |
styleChange()
系列风格改动
|
abstract java.lang.String |
suffix()
richer:保存文件的后缀名
|
PreviewProvider[] |
supportPreview()
支持的预览模式
|
void |
undo()
撤销
|
addTargetModifiedListener, copy, createAuthorityEditPane, createEditingState, cut, getEastDownPane, getEastUpPane, getTarget, getToolBarMenuDockPlus, paste, removeTargetModifiedListener, setTarget, toolBarButton4Form, toolbars4Target
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, updateUI
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
getToolBarHeight, toolBar4Authority, toolBarButton4Form, toolbarPanes4Form, toolbars4Target
protected U extends BaseUndoState<?> undoState
protected U extends BaseUndoState<?> authorityUndoState
protected TemplateProcessInfo<T extends BaseBook> processInfo
public int resolution
public JTemplate()
public JTemplate(T t, java.lang.String defaultFileName)
public abstract void refreshEastPropertiesPane()
public abstract TargetComponent getCurrentElementCasePane()
public abstract javax.swing.JComponent getCurrentReportComponentPane()
public abstract TemplateProcessInfo<T> getProcessInfo()
public void appendProcess(java.lang.String s)
public java.lang.String getProcess()
public U getUndoState()
public abstract void setJTemplateResolution(int resolution)
public abstract int getJTemplateResolution()
public void iniAuthorityUndoState()
public void doConditionCancelFormat()
public int getMenuState()
getMenuState
在接口中 ToolBarMenuDockPlus
getMenuState
在类中 TargetComponent<T extends BaseBook>
public void cancelFormat()
cancelFormat
在类中 TargetComponent<T extends BaseBook>
public int getEditingReportIndex()
public java.lang.String getPath()
protected abstract javax.swing.JComponent createCenterPane()
public abstract void removeTemplateSelection()
public void setSheetCovered(boolean isCovered)
public void judgeSheetAuthority(java.lang.String roles)
roles
- 角色public abstract void refreshContainer()
public abstract void removeParameterPaneSelection()
public abstract void setScale(int resolution)
public abstract int getScale()
public abstract int selfAdaptUpdate()
protected abstract DesignModelAdapter<T,?> createDesignModel()
public abstract UIMenuItem[] createMenuItem4Preview()
public DesignModelAdapter<T,?> getModel()
public void doResize()
public boolean isSaved()
public boolean isALLSaved()
public boolean isDoSomethingInAuthority()
public void setSaved(boolean isSaved)
public javax.swing.undo.UndoManager getUndoManager()
public void cleanAuthorityUndo()
public boolean canUndo()
public boolean canRedo()
public void undo()
public void redo()
public void fireTargetModified()
fireTargetModified
在接口中 JTemplateProvider<T extends BaseBook>
fireTargetModified
在类中 TargetComponent<T extends BaseBook>
public void fireAuthorityStateToNomal()
public boolean accept(java.lang.Object o)
protected abstract U createUndoState()
protected abstract void applyUndoState(U u)
public void stopEditing()
stopEditing
在类中 TargetComponent<T extends BaseBook>
public FILE getEditingFILE()
public abstract java.lang.String suffix()
public boolean saveTemplate()
public boolean saveTemplate2Env()
public boolean saveAsTemplate()
public boolean saveAsTemplate2Env()
public boolean saveTemplate(boolean isShowLoc)
isShowLoc
- 是否本地public boolean saveAsTemplate(boolean isShowLoc)
public boolean saveAsTemplate(boolean isShowLoc, java.lang.String fileName)
isShowLoc
- 是否显示“报表运行环境”外的路径(C盘D盘等)fileName
- 保存文件名protected boolean saveNewFile(FILE editingFILE, java.lang.String oldName)
protected void mkNewFile(FILE file)
public boolean saveShareFile()
public Widget getSelectElementCase()
protected FILEChooserPane getFILEChooserPane(boolean isShowLoc)
protected boolean saveFile()
public ShortCut[] shortcut4FileMenu()
shortcut4FileMenu
在接口中 ToolBarMenuDockPlus
public MenuDef[] menus4Target()
menus4Target
在接口中 ToolBarMenuDockPlus
menus4Target
在类中 TargetComponent<T extends BaseBook>
public abstract ShortCut[] shortcut4TemplateMenu()
shortcut4TemplateMenu
在类中 TargetComponent<T extends BaseBook>
public abstract ShortCut[] shortCuts4Authority()
shortCuts4Authority
在类中 TargetComponent<T extends BaseBook>
public void addJTemplateActionListener(JTemplateActionListener l)
l
- 模板Listenerpublic void removeJTemplateActionListener(JTemplateActionListener l)
l
- 模板Listenerpublic void fireJTemplateClosed()
public void fireJTemplateSaved()
public void fireJTemplateOpened()
public void revert()
public boolean isNewDesigner()
public boolean isOldDesigner()
public void setComposite()
public PreviewProvider getPreviewType()
public void refreshToolArea()
public abstract boolean isJWorkBook()
public void activeJTemplate(int index, JTemplate jt)
public void activeOldJTemplate()
public void activeNewJTemplate()
public abstract HyperlinkGroupPane getHyperLinkPane(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider)
public abstract HyperlinkGroupPane getHyperLinkPaneNoPop(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider)
public boolean isChartBook()
public abstract void setAuthorityMode(boolean isUpMode)
public boolean isUpMode()
public void setPreviewType(PreviewProvider previewType)
previewType
- public javax.swing.Icon getPreviewLargeIcon()
public Parameter[] getParameters()
public Parameter[] getJTemplateParameters()
public void requestGridFocus()
public DBManipulationPane createDBManipulationPane()
public DBManipulationPane createDBManipulationPaneInWidget()
public abstract javax.swing.Icon getIcon()
public ShortCut[] shortcut4ExportMenu()
shortcut4ExportMenu
在接口中 ToolBarMenuDockPlus
public void copyJS()
public void styleChange()
public UIButton[] createShareButton()
public void previewMenuActionPerformed(PreviewProvider provider)
provider
- 预览模式public PreviewProvider[] supportPreview()
public PreviewProvider parserPreviewProvider(int typeCode)
typeCode
- 类型public boolean acceptToolbarItem(java.lang.Class clazz)
public UIButton[] createExtraButtons()
public void needAddTemplateIdAttr(boolean isUseParamTemplate)
isUseParamTemplate
- 是否使用参数模板public abstract java.lang.String route()