public class APrintNG extends APrintNGInternalFrame implements java.awt.event.ActionListener, APrintRepositoryListener, APrintPageFormat, APrintNGGeneralServices, java.awt.dnd.DropTargetListener
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static int |
NEED_RESTART |
static int |
TERMINATE |
prefixedNamePrefsStorage
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
APrintNG(APrintProperties properties) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptOrRejectDrag(java.awt.dnd.DropTargetDragEvent dtde) |
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addAPrintRepositoryListener(APrintRepositoryChangedListener listener) |
void |
addNewInternalFrame(APrintNGInternalFrame internalFrame)
Add a new Inner Internal Frame
|
protected boolean |
askForClose()
This method is called when the window is closing, by default, it is called when the window is
closing
|
protected javax.swing.JMenuItem |
createLanguageMenu(java.lang.String label,
java.util.Locale value) |
void |
dispose() |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde) |
void |
dragExit(java.awt.dnd.DropTargetEvent dte) |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde) |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde) |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde) |
protected EditableInstrumentManagerRepository2Adapter |
findEditableInstrumentManagerRepository(java.util.List<EditableInstrumentManagerRepository2Adapter> editableRepository) |
static java.awt.Image |
getAPrintApplicationIcon()
Get the aprint application icon
|
AsyncJobsManager |
getAsyncJobs()
Return the async job manager this permit to send processing without
blocking the GUI
|
BookIndexing |
getBookIndexing()
Return the book indexing object
|
IExtension[] |
getCurrentExtensions() |
protected java.lang.String |
getInternalFrameNameForPreferences()
This function get the internal name of the frame for preferences by default, take the name of
the current class
|
java.awt.print.PageFormat |
getLastPageFormat() |
java.lang.Object |
getOwnerForDialog()
Get the main windows reference for dialog boxes
|
IPrefsStorage |
getPrefsStorage(java.lang.String name)
Create or get a prefs storage by its name
|
APrintProperties |
getProperties()
Get aprint properties
|
Repository2 |
getRepository()
Get the instrument repository
|
int |
getTerminateState() |
java.lang.String |
getVersion()
Retourne la version de l'outil ...
|
protected void |
handleDropFileTarget(java.io.File file)
Handle file drop on the application
|
boolean |
hasInstrumentsInWebRepository()
test if there are instruments in the web repositories
|
protected void |
importInstrument() |
protected void |
importInstrumentToRepository(EditableInstrumentManager im,
org.apache.commons.vfs2.provider.AbstractFileObject f) |
APrintNGInternalFrame[] |
listInternalFrames()
Get all references of sub windows
|
void |
loadBookInNewFrame(org.apache.commons.vfs2.provider.AbstractFileObject result) |
void |
loadBookInNewFrame(java.io.File result) |
static void |
main(java.lang.String[] args) |
APrintNGVirtualBookFrame |
newVirtualBook(Instrument instrument)
create a new empty VirtualBook for a specified instrument
|
APrintNGVirtualBookFrame |
newVirtualBook(VirtualBook virtualBook,
org.apache.commons.vfs2.provider.AbstractFileObject virtualBookFile,
Instrument instrument,
IssueCollection collection) |
APrintNGVirtualBookFrame |
newVirtualBook(VirtualBook virtualBook,
Instrument instrument)
Create a new Window for looking at the virtualbook and working with it
|
APrintNGVirtualBookFrame |
newVirtualBook(VirtualBook virtualBook,
Instrument instrument,
IssueCollection collection)
Create a new Window for looking at the virtualbook and working with it
|
APrintGroovyInnerConsole |
openGroovyScriptConsole() |
APrintGroovyInnerConsole |
openGroovyScriptConsole(java.lang.ClassLoader loaderForScripts) |
APrintNGModelFrame |
openModelEditor() |
void |
relaunch() |
void |
relaunchWithMessageBox() |
void |
removeAPrintRepositoryListener(APrintRepositoryChangedListener listener) |
void |
setLastPageFormat(java.awt.print.PageFormat pageformet) |
void |
setTerminateState(int terminate_state) |
void |
showInstrumentEditor() |
void |
synchronizeWebRepositories() |
protected void |
updateFrameTitle() |
clearDirty, infiniteChangeText, infiniteEndWait, infiniteStartWait, infiniteStartWait, initializeComponents, initPrefsStorage, isDirty, isDisposed, saveDimensionPreferences, setupIcon, toggleDirty
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int TERMINATE
public static final int NEED_RESTART
public APrintNG(APrintProperties properties) throws java.lang.Exception, RepositoryException
java.lang.Exception
RepositoryException
protected void updateFrameTitle()
protected boolean askForClose()
APrintNGInternalFrame
askForClose
in class APrintNGInternalFrame
protected java.lang.String getInternalFrameNameForPreferences()
APrintNGInternalFrame
getInternalFrameNameForPreferences
in class APrintNGInternalFrame
public static java.awt.Image getAPrintApplicationIcon()
protected javax.swing.JMenuItem createLanguageMenu(java.lang.String label, java.util.Locale value)
public void synchronizeWebRepositories()
protected void importInstrumentToRepository(EditableInstrumentManager im, org.apache.commons.vfs2.provider.AbstractFileObject f) throws java.io.FileNotFoundException, java.lang.Exception, java.io.IOException
im
- f
- java.io.FileNotFoundException
java.lang.Exception
java.io.IOException
protected EditableInstrumentManagerRepository2Adapter findEditableInstrumentManagerRepository(java.util.List<EditableInstrumentManagerRepository2Adapter> editableRepository)
editableRepository
- public void showInstrumentEditor() throws java.lang.Exception
java.lang.Exception
public java.lang.String getVersion()
getVersion
in interface APrintNGGeneralServices
public void setTerminateState(int terminate_state)
public int getTerminateState()
public void relaunch()
public void dispose()
dispose
in class APrintNGInternalFrame
public void relaunchWithMessageBox()
public boolean hasInstrumentsInWebRepository()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void loadBookInNewFrame(org.apache.commons.vfs2.provider.AbstractFileObject result) throws java.lang.Exception, java.io.FileNotFoundException
java.lang.Exception
java.io.FileNotFoundException
public void loadBookInNewFrame(java.io.File result) throws java.lang.Exception, java.io.FileNotFoundException
java.lang.Exception
java.io.FileNotFoundException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void addAPrintRepositoryListener(APrintRepositoryChangedListener listener)
addAPrintRepositoryListener
in interface APrintRepositoryListener
public void removeAPrintRepositoryListener(APrintRepositoryChangedListener listener)
removeAPrintRepositoryListener
in interface APrintRepositoryListener
public java.awt.print.PageFormat getLastPageFormat()
getLastPageFormat
in interface APrintPageFormat
public void setLastPageFormat(java.awt.print.PageFormat pageformet)
setLastPageFormat
in interface APrintPageFormat
public APrintNGVirtualBookFrame newVirtualBook(VirtualBook virtualBook, org.apache.commons.vfs2.provider.AbstractFileObject virtualBookFile, Instrument instrument, IssueCollection collection) throws java.lang.Exception
java.lang.Exception
public APrintNGVirtualBookFrame newVirtualBook(VirtualBook virtualBook, Instrument instrument, IssueCollection collection) throws java.lang.Exception
APrintNGGeneralServices
newVirtualBook
in interface APrintNGGeneralServices
java.lang.Exception
public APrintNGVirtualBookFrame newVirtualBook(VirtualBook virtualBook, Instrument instrument) throws java.lang.Exception
APrintNGGeneralServices
newVirtualBook
in interface APrintNGGeneralServices
java.lang.Exception
public APrintNGVirtualBookFrame newVirtualBook(Instrument instrument) throws java.lang.Exception
APrintNGGeneralServices
newVirtualBook
in interface APrintNGGeneralServices
java.lang.Exception
public Repository2 getRepository()
APrintNGGeneralServices
getRepository
in interface APrintNGGeneralServices
public java.lang.Object getOwnerForDialog()
APrintNGGeneralServices
getOwnerForDialog
in interface APrintNGGeneralServices
public APrintProperties getProperties()
public BookIndexing getBookIndexing()
getBookIndexing
in interface APrintNGGeneralServices
public void addNewInternalFrame(APrintNGInternalFrame internalFrame)
APrintNGGeneralServices
addNewInternalFrame
in interface APrintNGGeneralServices
public APrintNGInternalFrame[] listInternalFrames()
APrintNGGeneralServices
listInternalFrames
in interface APrintNGGeneralServices
public AsyncJobsManager getAsyncJobs()
APrintNGGeneralServices
getAsyncJobs
in interface APrintNGGeneralServices
protected boolean acceptOrRejectDrag(java.awt.dnd.DropTargetDragEvent dtde)
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dte)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop
in interface java.awt.dnd.DropTargetListener
protected void handleDropFileTarget(java.io.File file) throws java.lang.Exception
file
- java.lang.Exception
public APrintGroovyInnerConsole openGroovyScriptConsole(java.lang.ClassLoader loaderForScripts) throws java.lang.Exception
java.lang.Exception
public APrintGroovyInnerConsole openGroovyScriptConsole() throws java.lang.Exception
java.lang.Exception
public APrintNGModelFrame openModelEditor() throws java.lang.Exception
java.lang.Exception
protected void importInstrument()
public IPrefsStorage getPrefsStorage(java.lang.String name)
APrintNGGeneralServices
getPrefsStorage
in interface APrintNGGeneralServices
public IExtension[] getCurrentExtensions()