public class Application
extends java.lang.Object
MenuBar
and Toolbar
. There is only one Application
's instance which is retrieved through the getInstance()
method.Modifier and Type | Method and Description |
---|---|
void |
addCatalogListener(CatalogListener<Application> listener)
Add a listener that gets called whenever a catalog is opened or closed.
|
void |
addCollectionWindowListener(CollectionWindowListener<Application> listener)
Add a listener that gets called whenever a collection window is opened, is about to close or was brought to front.
|
void |
addContextMenuListener(ContextMenuListener<Application> listener)
Add a listener that gets called whenever a catalog is opened or closed.
|
void |
addSelectionListener(SelectionListener<Application> listener)
Add a listener that gets called whenever the selection of items (records, categories, sub-table items) changed.
|
int |
getApplicationType()
Returns the product ID of the running application.
|
CollectionWindow |
getCollectionWindow(int id)
Return a specific collection window
|
java.util.Set<java.lang.Integer> |
getCollectionWindowIDs()
Return the IDs of all collection windows currently open.
|
CollectionWindow |
getCurrentCollectionWindow()
Return the collection window that is currently in front.
|
int |
getCurrentCollectionWindowID()
Return the ID of the collection window that is currently in front.
|
static Application |
getInstance()
Returns the global application instance.
|
MenuBar |
getMenuBar()
Returns the application's menu bar.
|
java.lang.Object |
getParent()
Returns the parent object for this object.
|
Toolbar |
getToolbar()
Returns the application's toolbar.
|
CollectionWindow |
newCollectionWindow(MultiRecordItemCollection multiRecordItemCollection)
Creates a new collection window from the given collection.
|
void |
printOrPreviewPrintSet(java.lang.String printSet,
boolean preview,
boolean selectionOnly)
For internal use only.
|
void |
quit()
Quits the application.
|
void |
removeCatalogListener(CatalogListener<Application> listener)
Remove a listener previously added using
addCatalogListener(com.canto.cumulus.ui.events.CatalogListener) . |
void |
removeCollectionWindowListener(CollectionWindowListener<Application> listener)
Remove a listener previously added using
addCollectionWindowListener(com.canto.cumulus.ui.events.CollectionWindowListener) |
void |
removeContextMenuListener(ContextMenuListener<Application> listener)
Remove a listener previously added using
addContextMenuListener(com.canto.cumulus.ui.events.ContextMenuListener) . |
void |
removeSelectionListener(SelectionListener<Application> listener)
Remove a listener previously added using
addSelectionListener(com.canto.cumulus.ui.events.SelectionListener) . |
void |
setFrontWindow(java.lang.String windowTitle)
Sets the window with the given title to front.
|
void |
setModal(boolean modal)
Sets whether the application should be modal.
|
void |
showCatalogLimitReachedDialog()
Shows the limit reached dialog.
|
void |
showHelp(java.lang.String topic)
Opens the Cumulus Help Window to shows a specific online help page topic.
|
void |
showHelp(java.lang.String helpSystem,
java.lang.String topic)
Opens the Cumulus Help Window to shows a specific online help page topic.
|
public static final int MENU_MID_FILE_MENU
public static final int MENUITEM_ID_FILE_NEW
public static final int MENUITEM_ID_FILE_OPEN_DIRECT
public static final int MENUITEM_ID_FILE_OPEN_REMOTE
public static final int MENUITEM_ID_FILE_QUIT
public static final int MENUITEM_ID_FILE_CLOSE
public static final int MENUITEM_ID_FILE_SAVE
public static final int MENUITEM_ID_FILE_CATALOG_FILES
public static final int MENUITEM_ID_FILE_UPDATE
public static final int MENUITEM_ID_FILE_CHECK_FILE_REFS
public static final int MENUITEM_ID_FILE_SUB_IMPORT
public static final int MENUITEM_ID_FILE_SUB_EXPORT
public static final int MENUITEM_ID_FILE_ADMINISTRATION
public static final int MENU_MID_EDIT_MENU
public static final int MENUITEM_ID_EDIT_UNDO
public static final int MENUITEM_ID_EDIT_CUT
public static final int MENUITEM_ID_EDIT_COPY
public static final int MENUITEM_ID_EDIT_PASTE
public static final int MENUITEM_ID_EDIT_CLEAR
public static final int MENUITEM_ID_EDIT_SELECT_ALL
public static final int MENUITEM_ID_EDIT_DESELECT_ALL
public static final int MENUITEM_ID_EDIT_SUB_ROTATE_THUMB
public static final int MENUITEM_ID_EDIT_OPTIMIZE_THUMB
public static final int MENUITEM_ID_PREFERENCES
public static final int MENU_MID_VIEW_MENU
public static final int MENUITEM_ID_VIEW_PALETTE_VIEW
public static final int MENUITEM_ID_VIEW_VIEW_TOOLBAR
public static final int MENUITEM_ID_VIEW_VIEW_STATUSBAR
public static final int MENUITEM_ID_VIEW_CATEGORIES
public static final int MENUITEM_ID_VIEW_RECORDS
public static final int MENUITEM_ID_VIEW_DETAILS
public static final int MENUITEM_ID_VIEW_THUMBNAILS
public static final int MENUITEM_ID_VIEW_PREVIEW
public static final int MENUITEM_ID_VIEW_INFO
public static final int MENUITEM_ID_VIEW_LARGE_THUMBNAILS
public static final int MENUITEM_ID_VIEW_MEDIUM_THUMBNAILS
public static final int MENUITEM_ID_VIEW_SMALL_THUMBNAILS
public static final int MENUITEM_ID_VIEW_CUSTOMIZE
public static final int MENUITEM_ID_VIEW_SUB_SORT_BY
public static final int MENUITEM_ID_VIEW_SUB_SORT_ORDER
public static final int MENUITEM_ID_VIEW_REFRESH
public static final int MENUITEM_ID_VIEW_PAGE_FIRST
public static final int MENUITEM_ID_VIEW_PAGE_PREVIOUS
public static final int MENUITEM_ID_VIEW_PAGE_NEXT
public static final int MENUITEM_ID_VIEW_PAGE_LAST
public static final int MENUITEM_ID_VIEW_ZOOM_IN
public static final int MENUITEM_ID_VIEW_ZOOM_OUT
public static final int MENU_MID_ADMINISTRATION_MENU
public static final int MENUITEM_ID_ADMINISTRATION_BACKUP
public static final int MENUITEM_ID_ADMINISTRATION_SAVE_AS
public static final int MENUITEM_ID_ADMINISTRATION_SET_DEFAULT
public static final int MENUITEM_ID_ADMINISTRATION_RESTORE_DEFAULTS
public static final int MENUITEM_ID_ADMINISTRATION_EMPTY_COPY
public static final int MENUITEM_ID_ADMINISTRATION_COMPRESS
public static final int MENUITEM_ID_ADMINISTRATION_REPAIR
public static final int MENUITEM_ID_ADMINISTRATION_RECOVER_DELETED_RECS
public static final int MENUITEM_ID_ADMINISTRATION_CONVERT_WPP_ICP_30_TRIGGERS
public static final int MENU_MID_FIND_MENU
public static final int MENUITEM_ID_FIND_NEW_COLLECTION
public static final int MENUITEM_ID_FIND_OPEN_COLLECTION
public static final int MENUITEM_ID_FIND_SAVE_COLLECTION
public static final int MENUITEM_ID_FIND_SAVE_COLLECTION_AS
public static final int MENUITEM_ID_FIND_REMOVE_CATALOG
public static final int MENUITEM_ID_FIND_SLIDE_SHOW
public static final int MENUITEM_ID_FIND_CATEGORIES_FIND
public static final int MENUITEM_ID_FIND_FIND_ALL_CATEGORIES
public static final int MENUITEM_ID_FIND_REMOVE_CAT_FROM_COLL
public static final int MENUITEM_ID_FIND_FIND
public static final int MENUITEM_ID_FIND_FIND_ALL
public static final int MENUITEM_ID_FIND_REMOVE_FROM_COLLECTION
public static final int MENUITEM_ID_FIND_INSERT_CONDITION
public static final int MENUITEM_ID_FIND_APPEND_CONDITION
public static final int MENUITEM_ID_FIND_DELETE_CONDITION
public static final int MENUITEM_ID_FIND_DELETE_ALL
public static final int MENU_MID_CATEGORIES_MENU
public static final int MENU_MID_METADATA_MENU
public static final int MENUITEM_ID_CATEGORIES_PROPERTIES
public static final int MENUITEM_ID_CATEGORIES_NEW_SUB
public static final int MENUITEM_ID_CATEGORIES_MAKE_ALIAS
public static final int MENUITEM_ID_CATEGORIES_SHOW_ORIGINAL
public static final int MENUITEM_ID_CATEGORIES_SHOW_RELATED
public static final int MENUITEM_ID_CATEGORIES_SHOW_CONTAINING
public static final int MENUITEM_ID_CATEGORIES_FIND_MATCHING_RECS
public static final int MENUITEM_ID_CATEGORIES_SAVE_MATCHING_ASSETS
public static final int MENUITEM_ID_CATEGORIES_EXPAND
public static final int MENUITEM_ID_CATEGORIES_EXPAND_ALL
public static final int MENUITEM_ID_CATEGORIES_COLLAPSE
public static final int MENUITEM_ID_CATEGORIES_COLLAPSE_ALL
public static final int MENUITEM_ID_CATEGORIES_SYNCRONIZE_NOW
public static final int MENU_MID_RECORD_MENU
public static final int MENUITEM_ID_RECORD_INFORMATION
public static final int MENUITEM_ID_RECORD_PREVIEW
public static final int MENUITEM_ID_RECORD_REVEAL_FILE
public static final int MENUITEM_ID_RECORD_OPEN_FILE
public static final int MENUITEM_ID_RECORD_PRINT_FILE
public static final int MENUITEM_ID_RECORD_COPY_FILE
public static final int MENUITEM_ID_RECORD_MOVE_FILE
public static final int MENUITEM_ID_RECORD_MAIL_TO
public static final int MENUITEM_ID_RECORD_CONVERT_TO
public static final int MENUITEM_ID_RECORD_CHECKOUT
public static final int MENUITEM_ID_RECORD_UNDO_CHECKOUT
public static final int MENUITEM_ID_RECORD_CHECKIN
public static final int MENUITEM_ID_RECORD_HISTORY
public static final int MENUITEM_ID_RECORD_NEW_EMPTY_RECORD
public static final int MENU_MID_WINDOW_MENU
public static final int MENU_MID_UPDATE_MENU
public static final int MENUITEM_ID_UPDATE_WHEN_CHANGED
public static final int MENUITEM_ID_UPDATE_ALWAYS
public static final int MENUITEM_ID_NEW_COLLECTION_MENU
public static final int MENUITEM_ID_NEW_COLLECTION_FROM_SELECTION
public static final int MENUITEM_ID_NEW_COLLECTION_EMPTY
public static final int MENU_MID_SORT_BY_MENU
public static final int MENU_MID_SORT_DIRECTION_MENU
public static final int MENUITEM_ID_SORT_ASCENDING
public static final int MENUITEM_ID_SORT_DESCENDING
public static final int MENU_MID_ROTATE_MENU
public static final int MENUITEM_ID_ROTATE_RIGHT
public static final int MENUITEM_ID_ROTATE_LEFT
public static final int MENUITEM_ID_ROTATE180
public static final int MENU_MID_EXPORT_MENU
public static final int MENUITEM_ID_EXPORT_SELECTED_RECORDS
public static final int MENUITEM_ID_EXPORT_ALL_RECORDS
public static final int MENUITEM_ID_EXPORT_SELECTED_CATEGORIES
public static final int MENUITEM_ID_EXPORT_ALL_CATEGORIES
public static final int MENU_MID_IMPORT_MENU
public static final int MENUITEM_ID_IMPORT_RECORDS
public static final int MENUITEM_ID_IMPORT_CATEGORIES
public static final int MENU_MID_COLLECTION_NEW_MENU
public static final int MENUITEM_ID_VIEW_FIRST
public static final int MENUITEM_ID_VIEW_PREVIOUS
public static final int MENUITEM_ID_VIEW_NEXT
public static final int MENUITEM_ID_VIEW_LAST
public static final int MENU_MID_HELP_MENU
public static final int MENUITEM_ID_HELP
public static final int MENUITEM_ID_ABOUT
public static final int MENUITEM_ID_LICENSE
public static final int TEXT_ID_QUICKSEARCH
public static final int BUTTON_ID_QUICKSEARCH
public static final int APP_TYPE_UNKNOWN
public static final int APP_TYPE_SINGLE_USER
public static final int APP_TYPE_CLIENT
public static final int APP_TYPE_VIEWER
public static final int APP_TYPE_CROSS_CLIENT
public static final java.lang.String HELP_SYSTEM_CUMULUS
public static Application getInstance()
null
if called outside of the Cumulus application.public void quit()
public java.lang.Object getParent()
null
since the application is the root object.public MenuBar getMenuBar()
public Toolbar getToolbar()
public java.util.Set<java.lang.Integer> getCollectionWindowIDs()
getCollectionWindow(int)
public CollectionWindow getCurrentCollectionWindow()
public int getCurrentCollectionWindowID()
getCollectionWindow(int)
public CollectionWindow getCollectionWindow(int id)
id
- The ID of the collection window to getpublic CollectionWindow newCollectionWindow(MultiRecordItemCollection multiRecordItemCollection)
multiRecordItemCollection
- the MultiRecordItemCollection that should be displayed in the window.public int getApplicationType()
public void showHelp(java.lang.String topic)
Application.getInstance().showHelp("d_license");
topic
- the topic to show. Topic names are subject to changes.public void showHelp(java.lang.String helpSystem, java.lang.String topic)
Application.getInstance().showHelp(Application.HELP_SYSTEM_CUMULUS, "d_license");
helpSystem
- the help system to usetopic
- the topic to show. Topic names are subject to changes.public void setModal(boolean modal)
modal
- true
if the application should be modal; false
otherwise.public void setFrontWindow(java.lang.String windowTitle)
windowTitle
- title of the window to set to front.public void printOrPreviewPrintSet(java.lang.String printSet, boolean preview, boolean selectionOnly)
public void showCatalogLimitReachedDialog()
public void addCatalogListener(CatalogListener<Application> listener)
listener
- The listener to call.removeCatalogListener(com.canto.cumulus.ui.events.CatalogListener)
public void removeCatalogListener(CatalogListener<Application> listener)
addCatalogListener(com.canto.cumulus.ui.events.CatalogListener)
.listener
- The listener to remove.public void addContextMenuListener(ContextMenuListener<Application> listener)
listener
- The listener to call.removeContextMenuListener(com.canto.cumulus.ui.events.ContextMenuListener)
public void removeContextMenuListener(ContextMenuListener<Application> listener)
addContextMenuListener(com.canto.cumulus.ui.events.ContextMenuListener)
.listener
- The listener to remove.public void addCollectionWindowListener(CollectionWindowListener<Application> listener)
listener
- The listener to call.removeCollectionWindowListener(com.canto.cumulus.ui.events.CollectionWindowListener)
public void removeCollectionWindowListener(CollectionWindowListener<Application> listener)
addCollectionWindowListener(com.canto.cumulus.ui.events.CollectionWindowListener)
listener
- The listener to remove.public void addSelectionListener(SelectionListener<Application> listener)
listener
- The listener to call.removeCatalogListener(com.canto.cumulus.ui.events.CatalogListener)
public void removeSelectionListener(SelectionListener<Application> listener)
addSelectionListener(com.canto.cumulus.ui.events.SelectionListener)
.listener
- The listener to remove.www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.