|
||||||||||
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
org.pdfsam.guiclient.commons.panels.JVisualPdfPageSelectionPanel
public class JVisualPdfPageSelectionPanel
Customizable panel for a visual page selection
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 | |
---|---|
static int |
DND_SUPPORT_FILES
|
static int |
DND_SUPPORT_FILES_AND_JAVAOBJECTS
|
static int |
DND_SUPPORT_JAVAOBJECTS
|
static int |
DND_SUPPORT_NONE
|
static int |
HORIZONTAL_ORIENTATION
|
static int |
MULTIPLE_INTERVAL_SELECTION
|
static java.lang.String |
OUTPUT_PATH_PROPERTY
|
static int |
SINGLE_INTERVAL_SELECTION
|
static int |
SINGLE_SELECTION
|
static int |
STYLE_TOP_PANEL_FULL
|
static int |
STYLE_TOP_PANEL_HIDE
|
static int |
STYLE_TOP_PANEL_MEDIUM
|
static int |
STYLE_TOP_PANEL_MINIMAL
|
static int |
VERTICAL_ORIENTATION
|
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 | |
---|---|
JVisualPdfPageSelectionPanel()
default constructor |
|
JVisualPdfPageSelectionPanel(int orientation)
draw deleted items default value (true) show button panel default value (true) |
|
JVisualPdfPageSelectionPanel(int orientation,
boolean drawDeletedItems,
boolean showButtonPanel)
|
|
JVisualPdfPageSelectionPanel(int orientation,
boolean drawDeletedItems,
boolean showButtonPanel,
boolean showContextMenu,
int topPanelStyle)
|
|
JVisualPdfPageSelectionPanel(int orientation,
boolean drawDeletedItems,
boolean showButtonPanel,
boolean showContextMenu,
int topPanelStyle,
int dndSupport,
int selectionType)
|
Method Summary | |
---|---|
void |
addMenuItem(javax.swing.JMenuItem item)
Adds a item to the popup menu |
void |
addToTopPanel(java.awt.Component c)
Add a component on the left of the top panel |
void |
appendElements(java.util.Collection<VisualPageListItem> c)
|
void |
disableSetOutputPathMenuItem()
remove the set ouput path menu item |
void |
enableSetOutputPathMenuItem()
enables the set output path menu item |
javax.swing.JButton |
getClearButton()
|
int |
getDndSupport()
|
javax.swing.JButton |
getLoadFileButton()
|
javax.swing.JButton |
getMoveDownButton()
|
javax.swing.JButton |
getMoveUpButton()
|
int |
getOrientation()
|
PdfThumbnailsLoader |
getPdfLoader()
|
javax.swing.JButton |
getRemoveButton()
|
javax.swing.JButton |
getReverseButton()
|
javax.swing.JButton |
getRotateAntiButton()
|
javax.swing.JButton |
getRotateButton()
|
java.lang.String |
getRotatedElementsString()
|
VisualPageListItem[] |
getSelectedElements()
|
java.io.File |
getSelectedPdfDocument()
|
java.lang.String |
getSelectedPdfDocumentPassword()
|
JVisualSelectionList |
getThumbnailList()
|
javax.swing.JPanel |
getTopPanel()
|
javax.swing.JButton |
getUndeleteButton()
|
java.util.List<java.lang.String> |
getValidConsoleParameters()
A of String List that can be used as input for the console. |
javax.swing.JButton |
getZoomInButton()
|
javax.swing.JButton |
getZoomOutButton()
|
boolean |
hasValidElements()
|
boolean |
isDrawDeletedItems()
|
boolean |
isWrap()
|
void |
prependElements(java.util.Collection<VisualPageListItem> c)
|
void |
resetPanel()
reset the panel |
void |
setDocumentProperties(DocumentInfo documetnInfo)
Set the document properties to be shown as a tooltip of the documentProperties JLabel |
void |
setDocumentPropertiesVisible(boolean visible)
Set the visible the label that shows document properties |
void |
setDrawDeletedItems(boolean drawDeletedItems)
|
void |
setSelectedPdfDocument(java.io.File selectedPdfDocument)
|
void |
setSelectedPdfDocumentPassword(java.lang.String selectedPdfDocumentPassword)
|
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, 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 |
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, 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, hide, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HORIZONTAL_ORIENTATION
public static final int VERTICAL_ORIENTATION
public static final int SINGLE_INTERVAL_SELECTION
public static final int MULTIPLE_INTERVAL_SELECTION
public static final int SINGLE_SELECTION
public static final int STYLE_TOP_PANEL_HIDE
public static final int STYLE_TOP_PANEL_MINIMAL
public static final int STYLE_TOP_PANEL_MEDIUM
public static final int STYLE_TOP_PANEL_FULL
public static final int DND_SUPPORT_NONE
public static final int DND_SUPPORT_FILES
public static final int DND_SUPPORT_JAVAOBJECTS
public static final int DND_SUPPORT_FILES_AND_JAVAOBJECTS
public static final java.lang.String OUTPUT_PATH_PROPERTY
Constructor Detail |
---|
public JVisualPdfPageSelectionPanel()
public JVisualPdfPageSelectionPanel(int orientation)
orientation
- panel orientationpublic JVisualPdfPageSelectionPanel(int orientation, boolean drawDeletedItems, boolean showButtonPanel)
orientation
- panel orientationdrawDeletedItems
- if true deleted items appear with a red cross overshowButtonPanel
- true=shows button panelpublic JVisualPdfPageSelectionPanel(int orientation, boolean drawDeletedItems, boolean showButtonPanel, boolean showContextMenu, int topPanelStyle)
orientation
- panel orientationdrawDeletedItems
- if true deleted items appear with a red cross overshowButtonPanel
- true=shows button panelshowContextMenu
- topPanelStyle
- public JVisualPdfPageSelectionPanel(int orientation, boolean drawDeletedItems, boolean showButtonPanel, boolean showContextMenu, int topPanelStyle, int dndSupport, int selectionType)
orientation
- panel orientationdrawDeletedItems
- if true deleted items appear with a red cross overshowButtonPanel
- true=shows button panelshowContextMenu
- topPanelStyle
- top panel styleselectionType
- selection typeMethod Detail |
---|
public void resetPanel()
public void setDocumentPropertiesVisible(boolean visible)
visible
- public void setDocumentProperties(DocumentInfo documetnInfo)
documetnInfo
- bean containing document informationspublic int getOrientation()
public java.io.File getSelectedPdfDocument()
public boolean isWrap()
public JVisualSelectionList getThumbnailList()
public void setSelectedPdfDocument(java.io.File selectedPdfDocument)
selectedPdfDocument
- the selectedPdfDocument to setpublic int getDndSupport()
public boolean isDrawDeletedItems()
public void setDrawDeletedItems(boolean drawDeletedItems)
drawDeletedItems
- the drawDeletedItems to setpublic PdfThumbnailsLoader getPdfLoader()
public javax.swing.JPanel getTopPanel()
public java.util.List<java.lang.String> getValidConsoleParameters()
public boolean hasValidElements()
public java.lang.String getRotatedElementsString()
public void addToTopPanel(java.awt.Component c)
c
- public VisualPageListItem[] getSelectedElements()
public void appendElements(java.util.Collection<VisualPageListItem> c)
c
- VisualListModel.appendAllElements(Collection)
public void prependElements(java.util.Collection<VisualPageListItem> c)
c
- VisualListModel.prependAllElements(Collection)
public void addMenuItem(javax.swing.JMenuItem item)
item
- public void enableSetOutputPathMenuItem()
public void disableSetOutputPathMenuItem()
public java.lang.String getSelectedPdfDocumentPassword()
public void setSelectedPdfDocumentPassword(java.lang.String selectedPdfDocumentPassword)
selectedPdfDocumentPassword
- the selectedPdfDocumentPassword to setpublic javax.swing.JButton getClearButton()
public javax.swing.JButton getZoomInButton()
public javax.swing.JButton getZoomOutButton()
public javax.swing.JButton getUndeleteButton()
public javax.swing.JButton getRemoveButton()
public javax.swing.JButton getMoveUpButton()
public javax.swing.JButton getMoveDownButton()
public javax.swing.JButton getRotateButton()
public javax.swing.JButton getRotateAntiButton()
public javax.swing.JButton getLoadFileButton()
public javax.swing.JButton getReverseButton()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |