public class APrintNG extends APrintNGInternalFrame implements java.awt.event.ActionListener, APrintRepositoryListener, APrintPageFormat, APrintNGGeneralServices, java.awt.dnd.DropTargetListener
javax.swing.JFrame.AccessibleJFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
static int |
NEED_RESTART |
static int |
TERMINATE |
prefixedNamePrefsStorageaccessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_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_CURSORBOTTOM_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, toggleDirtyaddImpl, 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, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, 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, toFrontadd, 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, validateTreeaction, 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, transferFocusUpCyclepublic static final int TERMINATE
public static final int NEED_RESTART
public APrintNG(APrintProperties properties) throws java.lang.Exception, RepositoryException
java.lang.ExceptionRepositoryExceptionprotected void updateFrameTitle()
protected boolean askForClose()
APrintNGInternalFrameaskForClose in class APrintNGInternalFrameprotected java.lang.String getInternalFrameNameForPreferences()
APrintNGInternalFramegetInternalFrameNameForPreferences in class APrintNGInternalFramepublic 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.FileNotFoundExceptionjava.lang.Exceptionjava.io.IOExceptionprotected EditableInstrumentManagerRepository2Adapter findEditableInstrumentManagerRepository(java.util.List<EditableInstrumentManagerRepository2Adapter> editableRepository)
editableRepository - public void showInstrumentEditor()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getVersion()
getVersion in interface APrintNGGeneralServicespublic void setTerminateState(int terminate_state)
public int getTerminateState()
public void relaunch()
public void dispose()
dispose in class APrintNGInternalFramepublic void relaunchWithMessageBox()
public boolean hasInstrumentsInWebRepository()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void loadBookInNewFrame(org.apache.commons.vfs2.provider.AbstractFileObject result)
throws java.lang.Exception,
java.io.FileNotFoundException
java.lang.Exceptionjava.io.FileNotFoundExceptionpublic void loadBookInNewFrame(java.io.File result)
throws java.lang.Exception,
java.io.FileNotFoundException
java.lang.Exceptionjava.io.FileNotFoundExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic void addAPrintRepositoryListener(APrintRepositoryChangedListener listener)
addAPrintRepositoryListener in interface APrintRepositoryListenerpublic void removeAPrintRepositoryListener(APrintRepositoryChangedListener listener)
removeAPrintRepositoryListener in interface APrintRepositoryListenerpublic java.awt.print.PageFormat getLastPageFormat()
getLastPageFormat in interface APrintPageFormatpublic void setLastPageFormat(java.awt.print.PageFormat pageformet)
setLastPageFormat in interface APrintPageFormatpublic APrintNGVirtualBookFrame newVirtualBook(VirtualBook virtualBook, org.apache.commons.vfs2.provider.AbstractFileObject virtualBookFile, Instrument instrument, IssueCollection collection) throws java.lang.Exception
java.lang.Exceptionpublic APrintNGVirtualBookFrame newVirtualBook(VirtualBook virtualBook, Instrument instrument, IssueCollection collection) throws java.lang.Exception
APrintNGGeneralServicesnewVirtualBook in interface APrintNGGeneralServicesjava.lang.Exceptionpublic APrintNGVirtualBookFrame newVirtualBook(VirtualBook virtualBook, Instrument instrument) throws java.lang.Exception
APrintNGGeneralServicesnewVirtualBook in interface APrintNGGeneralServicesjava.lang.Exceptionpublic APrintNGVirtualBookFrame newVirtualBook(Instrument instrument) throws java.lang.Exception
APrintNGGeneralServicesnewVirtualBook in interface APrintNGGeneralServicesjava.lang.Exceptionpublic Repository2 getRepository()
APrintNGGeneralServicesgetRepository in interface APrintNGGeneralServicespublic java.lang.Object getOwnerForDialog()
APrintNGGeneralServicesgetOwnerForDialog in interface APrintNGGeneralServicespublic APrintProperties getProperties()
public BookIndexing getBookIndexing()
getBookIndexing in interface APrintNGGeneralServicespublic void addNewInternalFrame(APrintNGInternalFrame internalFrame)
APrintNGGeneralServicesaddNewInternalFrame in interface APrintNGGeneralServicespublic APrintNGInternalFrame[] listInternalFrames()
APrintNGGeneralServiceslistInternalFrames in interface APrintNGGeneralServicespublic AsyncJobsManager getAsyncJobs()
APrintNGGeneralServicesgetAsyncJobs in interface APrintNGGeneralServicesprotected boolean acceptOrRejectDrag(java.awt.dnd.DropTargetDragEvent dtde)
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter in interface java.awt.dnd.DropTargetListenerpublic void dragExit(java.awt.dnd.DropTargetEvent dte)
dragExit in interface java.awt.dnd.DropTargetListenerpublic void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver in interface java.awt.dnd.DropTargetListenerpublic void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged in interface java.awt.dnd.DropTargetListenerpublic void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop in interface java.awt.dnd.DropTargetListenerprotected void handleDropFileTarget(java.io.File file)
throws java.lang.Exception
file - java.lang.Exceptionpublic APrintGroovyInnerConsole openGroovyScriptConsole(java.lang.ClassLoader loaderForScripts) throws java.lang.Exception
java.lang.Exceptionpublic APrintGroovyInnerConsole openGroovyScriptConsole() throws java.lang.Exception
java.lang.Exceptionpublic APrintNGModelFrame openModelEditor() throws java.lang.Exception
java.lang.Exceptionprotected void importInstrument()
public IPrefsStorage getPrefsStorage(java.lang.String name)
APrintNGGeneralServicesgetPrefsStorage in interface APrintNGGeneralServicespublic IExtension[] getCurrentExtensions()