public class XDocBuilder
extends javax.swing.JComponent
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
VIEW_TYPE_PAGE
视图类别:页面
|
static java.lang.String |
VIEW_TYPE_TABLE
视图类别:表格
|
static java.lang.String |
VIEW_TYPE_TEXT
视图类别:文字
|
static java.lang.String |
VIEW_TYPE_WEB
视图类别:网页
|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
XDocBuilder()
构造器
|
限定符和类型 | 方法和说明 |
---|---|
void |
about()
显示关于对话框
|
int |
activeIndex()
当前xdoc索引
|
void |
activeXDoc(int index)
将指定索引的XDoc设置为当前xdoc
|
void |
close()
关闭当前的XDoc
|
void |
closeAll()
关闭当前的XDoc
|
void |
create()
创建XDoc
|
void |
create(java.lang.String viewType)
创建指定类型的XDoc
|
void |
create(XDoc xdoc)
基于xdoc创建新xdoc
|
void |
destroy()
销毁
|
XDoc |
getXDoc()
获取当前XDoc
|
XDoc |
getXDoc(int index)
获取指定索引的XDoc
|
int |
getXDocCount()
得到打开的XDoc数量
|
static void |
main(java.lang.String[] args)
主程序
|
void |
open()
显示选择对话框,打开XDoc
|
void |
open(java.lang.String url)
读取指定url的xdoc,并打开
|
void |
open(java.lang.String url,
java.lang.String format)
读取指定url和格式的文件,并打开
|
void |
open(XDoc xdoc)
打开指定的XDoc
|
void |
print()
显示打印对话框
|
void |
print(java.lang.String printer)
直接打印当前XDoc到指定打印机
|
void |
save()
显示保存对话框,保存当前XDoc
|
void |
saveOption()
保存配置
|
void |
setFullVisible(boolean fullVisible)
设置全屏按钮是否显示
|
void |
setLafVisible(boolean lafVisible)
设置外观切换下拉框是否显示
|
void |
setUser(java.lang.String user)
设置用户
|
void |
setXDoc(XDoc xdoc)
用指定的xdoc替换当前的xdoc
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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
public static final java.lang.String VIEW_TYPE_TEXT
public static final java.lang.String VIEW_TYPE_TABLE
public static final java.lang.String VIEW_TYPE_PAGE
public static final java.lang.String VIEW_TYPE_WEB
public int getXDocCount()
public int activeIndex()
public void activeXDoc(int index)
index
- public XDoc getXDoc()
public XDoc getXDoc(int index)
index
- public void setXDoc(XDoc xdoc)
public void open()
public void open(XDoc xdoc)
public void open(java.lang.String url)
url
- public void open(java.lang.String url, java.lang.String format)
url
- format
- 格式public void create(java.lang.String viewType)
public void create()
public void create(XDoc xdoc)
public void save()
public void print()
public void print(java.lang.String printer)
printer
- 打印机名称public void close()
public void closeAll()
public void saveOption()
public void setLafVisible(boolean lafVisible)
lafVisible
- public void setFullVisible(boolean fullVisible)
fullVisible
- public void setUser(java.lang.String user)
user
- public void about()
public void destroy()
public static void main(java.lang.String[] args)
args
- 指定文件名可以直接打开