public abstract class ElementCasePane<T extends TemplateElementCase> extends TargetComponent<T> implements Selectedable<Selection>, PageAttributeGetter
限定符和类型 | 类和说明 |
---|---|
static class |
ElementCasePane.Clear |
限定符和类型 | 字段和说明 |
---|---|
protected UIButton |
formatBrush |
static int |
HORIZONTAL_OVER |
static int |
NO_OVER |
static int |
VERTICAL_OVER |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
ElementCasePane(T t)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addFloatElementToCenterOfElementPane(FloatElement floatElement)
增加悬浮元素在面板中
|
void |
addSelectionChangeListener(SelectionListener selectionListener)
添加选中的SelectionListener
|
void |
cancelFormat()
取消格式化
|
void |
cancelFormatBrush()
取消格式刷
|
boolean |
canMergeCell()
是否能合并单元格
|
boolean |
canUnMergeCell()
是否撤销合并单元格
|
boolean |
clearAll()
清空所有.
|
boolean |
clearContents()
清除内容
|
boolean |
clearFormats()
清除格式.
|
boolean |
clearWidget()
清除控件
|
void |
copy()
复制
|
protected ToolBarDef |
createAlignmentToolBar() |
AuthorityEditPane |
createAuthorityEditPane()
创建权限犀利段编辑面板
|
protected ToolBarDef |
createCellToolBar() |
UIPopupMenu |
createColumnPopupMenu(java.awt.event.MouseEvent evt,
int selectedColumn)
弹出列表.
|
EditingState |
createEditingState()
创建正在编辑的状态.
|
protected ToolBarDef |
createFontToolBar() |
protected ToolBarDef |
createInsertToolBar() |
javax.swing.JPopupMenu |
createPopupMenu()
弹出列表.
|
UIPopupMenu |
createRowPopupMenu(java.awt.event.MouseEvent evt,
int selectedRows)
弹出列表
|
protected ToolBarDef |
createStyleToolBar() |
boolean |
cut()
剪切
|
int |
ensureColumnRowVisible(int column,
int row)
确认行列是否可见
|
void |
fireSelectionChangeListener()
响应选中的ChangeListener
|
void |
fireTargetModified()
响应目标变动.
|
CellSelection |
getCellNeedTOFormat() |
java.lang.Object |
getClipObject() |
QuickEditor |
getCurrentEditor() |
javax.swing.JPanel |
getEastDownPane() |
javax.swing.JPanel |
getEastUpPane() |
TemplateElementCase |
getEditingElementCase()
返回当前正在编辑的模板单元格组件
|
UIButton |
getFormatBrush() |
FormatBrushAction |
getFormatBrushAction() |
CellSelection |
getFormatReferencedCell() |
Grid |
getGrid()
Gets the cell table of rpt pane.
|
GridColumn |
getGridColumn()
Gets the column header of cell table.
|
GridCorner |
getGridCorner()
Gets the left top corner of cell table
|
GridRow |
getGridRow()
Gets the row header of cell table.
|
javax.swing.JScrollBar |
getHorizontalScrollBar()
Gets horizontal scroll bar
|
int |
getMenuState() |
int |
getResolution() |
Selection |
getSelection() |
javax.swing.JScrollBar |
getVerticalScrollBar()
Gets vertical scroll bar
|
protected void |
initComponents() |
protected void |
initFormatBrush() |
protected void |
initGridComponent() |
protected void |
initInputActionMap()
Init input/action map.
|
boolean |
isColumnHeaderVisible()
是否列表头可见
|
boolean |
isEditable()
是否可编辑.
|
boolean |
isHorizontalScrollBarVisible()
是否水平滚动条可见.
|
boolean |
isRowHeaderVisible()
是否行表头可见.
|
boolean |
isSelectedOneCell()
是否只选中了一个单元格
|
boolean |
isSupportDefaultParentCalculate()
是否支持默认计算父格
|
boolean |
isVerticalScrollBarVisible()
是否垂直滚动条可见
|
MenuDef[] |
menus4Target()
目标的下列列表
|
boolean |
mergeCell()
合并单元格
|
boolean |
mustInVisibleRange()
所有的操作都必须在可见范围内,否则不做任何操作
|
boolean |
paste()
黏贴
|
void |
removeSelectionChangeListener(SelectionListener selectionListener)
删除选中的ChangeListener
|
void |
requestFocus()
请求焦点
|
protected void |
resizeAndRepaint()
Equivalent to
revalidate followed by repaint . |
void |
setCellNeedTOFormat(CellSelection selection) |
void |
setColumnHeaderVisible(boolean isColumnVisible)
Makes the column visible or invisible.
|
void |
setEditable(boolean editable)
Sets whether to editable.
|
void |
setFormatReferencedCell(CellSelection cellSelection) |
void |
setFormatState(int formatState) |
void |
setHorizontalScrollBarVisible(boolean horizontalScrollBarVisible)
Makes the horizontal scrollbar visible or invisible.
|
void |
setOldSelecton(Selection selection) |
void |
setResolution(int resolution) |
void |
setRowHeaderVisible(boolean isRowVisible)
Makes the row visible or invisible.
|
void |
setSelection(Selection selection) |
void |
setSupportDefaultParentCalculate(boolean supportDefaultParentCalculate)
Sets whether to support auto calculate default parent
|
void |
setVerticalScrollBarVisible(boolean verticalScrollBarVisible)
Makes the vertical scrollbar visible or invisible.
|
ShortCut[] |
shortcut4TemplateMenu()
模板menu
|
ShortCut[] |
shortCuts4Authority()
权限细粒度状态下的菜单
|
void |
stopEditing()
停止编辑
|
protected abstract boolean |
supportRepeatedHeaderFooter() |
javax.swing.JComponent[] |
toolBarButton4Form()
表单下的工具按钮
|
ToolBarDef[] |
toolbars4Target()
kunsnat: 工具栏 快捷键菜单按钮.
|
ElementsTransferable |
transferSelection()
转换选择
|
boolean |
unMergeCell()
撤销合并单元格
|
addTargetModifiedListener, getTarget, getToolBarMenuDockPlus, removeTargetModifiedListener, setTarget
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, 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
getReportSettings
public static final int NO_OVER
public static final int HORIZONTAL_OVER
public static final int VERTICAL_OVER
protected UIButton formatBrush
public ElementCasePane(T t)
public void cancelFormat()
cancelFormat
在类中 TargetComponent<T extends TemplateElementCase>
protected void initComponents()
public int getMenuState()
getMenuState
在类中 TargetComponent<T extends TemplateElementCase>
protected void initFormatBrush()
public void cancelFormatBrush()
public UIButton getFormatBrush()
public void setFormatState(int formatState)
public javax.swing.JPanel getEastUpPane()
getEastUpPane
在类中 TargetComponent<T extends TemplateElementCase>
public javax.swing.JPanel getEastDownPane()
getEastDownPane
在类中 TargetComponent<T extends TemplateElementCase>
public FormatBrushAction getFormatBrushAction()
protected void initGridComponent()
public void setResolution(int resolution)
public int getResolution()
public boolean mustInVisibleRange()
public final TemplateElementCase getEditingElementCase()
public Grid getGrid()
public GridColumn getGridColumn()
public GridRow getGridRow()
public GridCorner getGridCorner()
public javax.swing.JScrollBar getVerticalScrollBar()
public javax.swing.JScrollBar getHorizontalScrollBar()
public boolean isSupportDefaultParentCalculate()
public void setSupportDefaultParentCalculate(boolean supportDefaultParentCalculate)
supportDefaultParentCalculate
- whether to support auto calculate default parent.public ElementsTransferable transferSelection()
public QuickEditor getCurrentEditor()
public void setSelection(Selection selection)
setSelection
在接口中 Selectedable<Selection>
public void setOldSelecton(Selection selection)
public void setFormatReferencedCell(CellSelection cellSelection)
public CellSelection getFormatReferencedCell()
public Selection getSelection()
getSelection
在接口中 Selectedable<Selection>
public boolean isSelectedOneCell()
public void stopEditing()
stopEditing
在类中 TargetComponent<T extends TemplateElementCase>
public boolean cut()
cut
在类中 TargetComponent<T extends TemplateElementCase>
public void copy()
copy
在类中 TargetComponent<T extends TemplateElementCase>
public boolean paste()
paste
在类中 TargetComponent<T extends TemplateElementCase>
public java.lang.Object getClipObject()
public int ensureColumnRowVisible(int column, int row)
column
- 列序号row
- 行序号public boolean clearAll()
public boolean clearFormats()
public boolean clearContents()
public boolean clearWidget()
public boolean canMergeCell()
public boolean mergeCell()
public boolean canUnMergeCell()
public boolean unMergeCell()
public void addSelectionChangeListener(SelectionListener selectionListener)
addSelectionChangeListener
在接口中 Selectedable<Selection>
selectionListener
- 选中的listenerpublic void removeSelectionChangeListener(SelectionListener selectionListener)
removeSelectionChangeListener
在接口中 Selectedable<Selection>
selectionListener
- 选中的listenerpublic void fireSelectionChangeListener()
public void fireTargetModified()
fireTargetModified
在接口中 JTemplateProvider<T extends TemplateElementCase>
fireTargetModified
在类中 TargetComponent<T extends TemplateElementCase>
protected void initInputActionMap()
public boolean isColumnHeaderVisible()
public void setColumnHeaderVisible(boolean isColumnVisible)
isColumnVisible
- true to make the column visible; false to make it invisiblepublic boolean isRowHeaderVisible()
public void setRowHeaderVisible(boolean isRowVisible)
isRowVisible
- true to make the row visible; false to make it invisiblepublic boolean isVerticalScrollBarVisible()
public void setVerticalScrollBarVisible(boolean verticalScrollBarVisible)
verticalScrollBarVisible
- true to make the vertical scrollbar visible; false to make it
invisiblepublic boolean isHorizontalScrollBarVisible()
public void setHorizontalScrollBarVisible(boolean horizontalScrollBarVisible)
horizontalScrollBarVisible
- true to make the horizontal scrollbar visible; false to make
it invisiblepublic boolean isEditable()
public void setEditable(boolean editable)
editable
- 是否可编辑.public javax.swing.JPopupMenu createPopupMenu()
public UIPopupMenu createRowPopupMenu(java.awt.event.MouseEvent evt, int selectedRows)
evt
- 鼠标的响应事件.selectedRows
- 选中的行..public UIPopupMenu createColumnPopupMenu(java.awt.event.MouseEvent evt, int selectedColumn)
evt
- 鼠标事件selectedColumn
- 选中的列.protected abstract boolean supportRepeatedHeaderFooter()
public void requestFocus()
requestFocus
在类中 javax.swing.JComponent
protected void resizeAndRepaint()
revalidate
followed by repaint
.public ShortCut[] shortcut4TemplateMenu()
shortcut4TemplateMenu
在类中 TargetComponent<T extends TemplateElementCase>
public ShortCut[] shortCuts4Authority()
shortCuts4Authority
在类中 TargetComponent<T extends TemplateElementCase>
public MenuDef[] menus4Target()
menus4Target
在类中 TargetComponent<T extends TemplateElementCase>
public ToolBarDef[] toolbars4Target()
toolbars4Target
在类中 TargetComponent<T extends TemplateElementCase>
public javax.swing.JComponent[] toolBarButton4Form()
toolBarButton4Form
在类中 TargetComponent<T extends TemplateElementCase>
protected ToolBarDef createFontToolBar()
protected ToolBarDef createAlignmentToolBar()
protected ToolBarDef createStyleToolBar()
protected ToolBarDef createCellToolBar()
protected ToolBarDef createInsertToolBar()
public AuthorityEditPane createAuthorityEditPane()
createAuthorityEditPane
在类中 TargetComponent<T extends TemplateElementCase>
public EditingState createEditingState()
createEditingState
在类中 TargetComponent<T extends TemplateElementCase>
public void setCellNeedTOFormat(CellSelection selection)
public CellSelection getCellNeedTOFormat()
public void addFloatElementToCenterOfElementPane(FloatElement floatElement)
floatElement
- 元素