Class JAlbumFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
net.jalbum.component.JRememberedFrame
se.datadosen.jalbum.EasyJFrame
se.datadosen.jalbum.JAlbumFrame
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,RootPaneContainer,WindowConstants,JAlbumWindow
Main JAlbum user interface
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassNested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanPropertyTell whether a jAlbum project is loaded (open) or not -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BeanBinderfinal JAlbumContextstatic final Fontstatic final Fontstatic final Fontstatic final Fontstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Fontfinal UndoHandlerfinal WaitCursorFields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Frame
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_CURSORFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the list of files to the current album projectvoidaddJAlbumListener(JAlbumListener listener) static voidcenterRelativeTo(Component comp, Component ref) booleancheckProjectSettings(ProjectSettings projectSettings) booleanvoidvoiddoExit()voidMake the user interface reflect the settings of the JAlbum engine (AlbumBean) Use with caution as users could have their own UI settings overwritten by this call.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidAdjust user interface so that graphical elements are correctly disabledShortcut to albumManager's getCurrentProjectgetRoot()For internal use onlybooleanvoidvoidinitProject(File inputDir) voidinitView()booleanbooleanbooleanIs the skin user interface showing? Contract with skin developersbooleanloadProject(File projectFile) booleanCreate a new empty project and open the new project dialogbooleannewProject(File projectFile) voidopenInBrowser(String urlString) voidopenInBrowser(String urlString, Boolean useInternal) voidopenInBrowser(URL url, Boolean useInternal) Main clever entry point for previewsvoidpack()Skins sometimes call pack() on the main Window.voidpackThis()Skins sometimes call pack() on the main Window.prepareServerBasedPreview(File indexFile) Ensure that indexFile can be served using embedded web serverprotected voidOverridden so we can ask before exiting.javafx.beans.property.ReadOnlyBooleanPropertyTell whether a jAlbum project is loaded (open) or notvoidvoidremoveJAlbumListener(JAlbumListener listener) booleanrenameImageDirectory(String newImageDirectoryName) booleanrenameProjectDirectory(String newName) booleansaveProject(File projectFile) voidSearch for jalbum project file in image directory and load project if foundvoidsetExitOnClose(boolean exitOnClose) voidInstalls skin's custom UI as a jAlbum settings panel This call is usually put last in an onload.bsh file of a skin Since v8.4, the installation of the UI is guaranteed to run on the event dispatch thread in order to avoid deadlocksvoidsetTitle()voidvoidshowNotification(JNotification notification) Display a non-modal notification message in the bottom of jAlbum's album list The message will be revealed using a roll-up effect.voidskinUI2Engine(AlbumBean engine) For internal use only!voidSynchronize bean with user interface Made public from v5.2voidMethods inherited from class se.datadosen.jalbum.EasyJFrame
messageBox, messageBox, messageBox, messageBox, messageBox, messageBox, messageBox, messageBox, readInt, readInt, readInt, readInt, readString, readString, readString, readString, titleMethods inherited from class net.jalbum.component.JRememberedFrame
onExit, setVisibleMethods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, 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, 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, show, toBack, toFrontMethods inherited from class java.awt.Container
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, validateTreeMethods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Property Details
-
projectLoaded
public javafx.beans.property.ReadOnlyBooleanProperty projectLoadedPropertyTell whether a jAlbum project is loaded (open) or not- Since:
- 13.6
- See Also:
-
-
Field Details
-
context
-
SKIN_LOADED_PROPERTY
- See Also:
-
ROOT_FOLDER_PROPERTY
- See Also:
-
PROJECT_LOADING_PROPERTY
- See Also:
-
PROJECT_LOADED_PROPERTY
- See Also:
-
SETTINGS_PROPERTY
- See Also:
-
TITLE_FONT
-
HEADER_FONT
-
H1_FONT
-
H2_FONT
-
H3_FONT
-
binder
-
preferencesWindow
-
undoHandler
-
actions
-
mainSettingsPanel
-
progressSpinner
-
progressManager
-
albumExplorer
-
toolBars
-
frameMenus
-
settingsWindow
-
progressDialog
-
statusBar
-
waitCursor
-
engine
-
projectChooser
-
-
Constructor Details
-
JAlbumFrame
-
-
Method Details
-
projectLoadedProperty
public javafx.beans.property.ReadOnlyBooleanProperty projectLoadedProperty()Tell whether a jAlbum project is loaded (open) or not- Returns:
- Since:
- 13.6
-
pack
public void pack()Skins sometimes call pack() on the main Window. This was ok prior to v7, but should now be delegated to the album settings window To really pack this JFrame, use packThis() instead.- Specified by:
packin interfaceJAlbumWindow- Overrides:
packin classWindow- Since:
- 7.0
-
packThis
public void packThis()Skins sometimes call pack() on the main Window. This was ok prior to v7, but should now be delegated to the album settings window To really pack this JFrame, use packThis() instead.- Since:
- 7.0
-
showNotification
Display a non-modal notification message in the bottom of jAlbum's album list The message will be revealed using a roll-up effect.- Parameters:
notification-- Since:
- 8.9
-
dismissNotifications
public void dismissNotifications() -
setTitle
public void setTitle() -
getCleanProjectSettings
-
checkProjectSettings
- Throws:
Exception
-
removeJAlbumListener
-
addJAlbumListener
- Specified by:
addJAlbumListenerin interfaceJAlbumWindow
-
fireSkinUIDisplayed
-
fireSkinUIHidden
-
fireStyleChanged
-
fireSkinChanged
-
fireAlbumCreationStarted
-
fireAlbumCreationFinished
-
initConsole
public void initConsole() -
initProject
- Parameters:
inputDir-- Since:
- 7.0
-
doExit
public void doExit() -
processWindowEvent
Overridden so we can ask before exiting.- Overrides:
processWindowEventin classJFrame- Parameters:
e-
-
isSkinUISelected
public boolean isSkinUISelected()Is the skin user interface showing? Contract with skin developers- Returns:
-
setSkinUI
Installs skin's custom UI as a jAlbum settings panel This call is usually put last in an onload.bsh file of a skin Since v8.4, the installation of the UI is guaranteed to run on the event dispatch thread in order to avoid deadlocks- Specified by:
setSkinUIin interfaceJAlbumWindow- Parameters:
ui-
-
reloadSkin
public void reloadSkin() -
newProject
public boolean newProject()Create a new empty project and open the new project dialog- Returns:
- true if project was actually created and not canceled
-
newProject
-
closeProject
public boolean closeProject() -
scanImageDirectory
public void scanImageDirectory()Search for jalbum project file in image directory and load project if found -
renameProjectDirectory
- Throws:
IOException
-
renameImageDirectory
- Throws:
IOException
-
loadProject
-
isLoadingProject
public boolean isLoadingProject() -
getCurrentProject
Shortcut to albumManager's getCurrentProject- Returns:
- Since:
- 25
-
saveProject
-
getProjectName
-
getProjectDir
-
getProjectSettings
-
engine2UI
public void engine2UI()Make the user interface reflect the settings of the JAlbum engine (AlbumBean) Use with caution as users could have their own UI settings overwritten by this call. To be safe, only call this method shortly after calling ui2Engine- Since:
- 8.2 (made public)
- See Also:
-
ui2Engine
Synchronize bean with user interface Made public from v5.2- Specified by:
ui2Enginein interfaceJAlbumWindow- Throws:
BeanBinderException
-
skinUI2Engine
-
getSkinUIVariables
-
ui2Engine
- Throws:
BeanBinderException
-
fixUIdisabling
public void fixUIdisabling()Adjust user interface so that graphical elements are correctly disabled -
getRoot
-
initView
public void initView() -
show
-
centerRelativeTo
-
getEngine
-
getNotificationManager
-
getSkinUI
- Specified by:
getSkinUIin interfaceJAlbumWindow
-
isExitOnClose
public boolean isExitOnClose() -
setExitOnClose
public void setExitOnClose(boolean exitOnClose) -
addFiles
-
openInBrowser
-
openInBrowser
-
openInBrowser
-
getIndexFile
-
indexFileExists
public boolean indexFileExists() -
prepareServerBasedPreview
-