|
Ontimize Document Management 0.032EN | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ontimize.dms.client.gui.viewer.DefaultViewer
public class DefaultViewer
Shows a preview of a given document.
New: Only load a thumbnail of the document.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected java.awt.CardLayout |
clPreview
|
static java.lang.String |
CONF_FILE
|
static java.lang.String |
CONF_PROPERTY
|
static java.lang.String |
DEFAULT_VIEWER
|
protected boolean |
enabled
|
protected boolean |
loaded
|
protected javax.swing.JPopupMenu |
menu
|
protected javax.swing.JCheckBoxMenuItem |
menuItem
|
protected static java.lang.String |
MSG_LOADING_CLASS
|
protected java.awt.event.MouseListener |
popupListener
|
protected java.util.Map |
previewers
|
protected static java.lang.String |
TAG_VIEWER_ENABLE
|
static java.lang.String |
THUMBNAIL_VIEWER
|
protected javax.swing.JPanel |
viewer
|
static java.lang.String |
VIEWER_ENABLED_PROPERTY
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DefaultViewer()
|
|
| Method Summary | |
|---|---|
void |
addComponentListener(java.awt.event.ComponentListener l)
|
void |
addMouseListener(java.awt.event.MouseListener l)
|
void |
clear()
|
protected java.util.Map |
createContext(RefreshEvent event)
Creates the context for the current component. |
protected java.util.Map |
createModel(java.util.Map data)
|
protected javax.swing.JPopupMenu |
createPopupMenu()
|
protected void |
doRemoveMouseListener(java.awt.event.MouseListener l)
|
javax.swing.JComponent |
getAccessibleComponent()
|
java.util.Vector |
getTextsToTranslate()
|
boolean |
isEditable()
|
boolean |
isEnabled()
|
protected static java.util.Map |
load(java.lang.String configuration)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
boolean |
refresh(java.util.Map data)
|
boolean |
refresh(RefreshEvent event)
|
void |
removeComponentListener(java.awt.event.ComponentListener l)
|
void |
removeMouseListener(java.awt.event.MouseListener l)
|
void |
setBackground(java.awt.Color bg)
|
void |
setComponentLocale(java.util.Locale l)
|
void |
setEditable(boolean editable)
|
void |
setEnabled(boolean enabled)
|
void |
setPreferredSize(java.awt.Dimension preferred)
|
void |
setResourceBundle(java.util.ResourceBundle rb)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, 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, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, 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, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ontimize.dms.client.gui.viewer.Viewer |
|---|
getBackground, getPreferredSize, setMinimumSize |
| Methods inherited from interface com.ontimize.dms.client.gui.InnerComponent |
|---|
isVisible, setVisible |
| Field Detail |
|---|
public static final java.lang.String CONF_PROPERTY
public static final java.lang.String CONF_FILE
public static final java.lang.String DEFAULT_VIEWER
public static final java.lang.String THUMBNAIL_VIEWER
public static final java.lang.String VIEWER_ENABLED_PROPERTY
protected static final java.lang.String MSG_LOADING_CLASS
protected static final java.lang.String TAG_VIEWER_ENABLE
protected java.util.Map previewers
protected java.awt.CardLayout clPreview
protected javax.swing.JPanel viewer
protected javax.swing.JPopupMenu menu
protected javax.swing.JCheckBoxMenuItem menuItem
protected java.awt.event.MouseListener popupListener
protected boolean enabled
protected boolean loaded
| Constructor Detail |
|---|
public DefaultViewer()
| Method Detail |
|---|
protected static java.util.Map load(java.lang.String configuration)
protected javax.swing.JPopupMenu createPopupMenu()
public boolean refresh(RefreshEvent event)
refresh in interface IRefreshableprotected java.util.Map createContext(RefreshEvent event)
Creates the context for the current component.
Overwrite the event context.
event -
protected java.util.Map createModel(java.util.Map data)
public boolean refresh(java.util.Map data)
public void clear()
clear in interface IRefreshablepublic javax.swing.JComponent getAccessibleComponent()
getAccessibleComponent in interface InnerComponentpublic boolean isEnabled()
isEnabled in interface InnerComponentisEnabled in class java.awt.Componentpublic boolean isEditable()
isEditable in interface InnerComponentpublic void setEnabled(boolean enabled)
setEnabled in interface InnerComponentsetEnabled in class javax.swing.JComponentpublic void setEditable(boolean editable)
setEditable in interface InnerComponentpublic void setBackground(java.awt.Color bg)
setBackground in interface ViewersetBackground in class javax.swing.JComponentpublic void setPreferredSize(java.awt.Dimension preferred)
setPreferredSize in interface ViewersetPreferredSize in class javax.swing.JComponentpublic void addMouseListener(java.awt.event.MouseListener l)
addMouseListener in interface VieweraddMouseListener in class java.awt.Componentpublic void removeMouseListener(java.awt.event.MouseListener l)
removeMouseListener in interface ViewerremoveMouseListener in class java.awt.Componentprotected void doRemoveMouseListener(java.awt.event.MouseListener l)
public void addComponentListener(java.awt.event.ComponentListener l)
addComponentListener in interface VieweraddComponentListener in class java.awt.Componentpublic void removeComponentListener(java.awt.event.ComponentListener l)
removeComponentListener in interface ViewerremoveComponentListener in class java.awt.Componentpublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpublic java.util.Vector getTextsToTranslate()
public void setComponentLocale(java.util.Locale l)
public void setResourceBundle(java.util.ResourceBundle rb)
|
Ontimize Document Management | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||