public class JabRefFrame extends javax.swing.JFrame implements OutputPrinter
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
GroupSelector |
groupSelector |
javax.swing.JToggleButton |
groupToggle |
HelpDialog |
helpDiag |
javax.swing.JToggleButton |
highlightAll |
javax.swing.JToggleButton |
highlightAny |
protected java.util.List<java.lang.Object> |
openDatabaseOnlyActions |
javax.swing.JToggleButton |
previewToggle |
protected int |
previousTabCount |
javax.swing.JToggleButton |
searchToggle |
protected java.util.List<java.lang.Object> |
severalDatabasesOnlyActions |
SidePaneManager |
sidePaneManager |
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 |
---|
JabRefFrame() |
Modifier and Type | Method and Description |
---|---|
void |
about() |
int |
addBibEntries(java.util.List<BibtexEntry> bibentries,
java.lang.String filename,
boolean intoNew)
Adds the entries to the database, possibly checking for duplicates first.
|
void |
addImportedEntries(BasePanel panel,
java.util.List<BibtexEntry> entries,
java.lang.String filename,
boolean openInNew)
This method does the job of adding imported entries into the active
database, or into a new one.
|
void |
addParserResult(ParserResult pr,
boolean raisePanel) |
void |
addPluginMenuItem(javax.swing.JMenuItem item) |
void |
addTab(BasePanel bp,
java.io.File file,
boolean raisePanel) |
BasePanel |
addTab(BibtexDatabase db,
java.io.File file,
MetaData metaData,
java.lang.String encoding,
boolean raisePanel) |
BasePanel |
baseAt(int i)
Returns the indexed BasePanel.
|
int |
baseCount() |
BasePanel |
basePanel()
Returns the currently viewed BasePanel.
|
void |
block()
This method shows a wait cursor and blocks all input to the JFrame's contents.
|
void |
closeCurrentTab()
Signal closing of the current tab.
|
void |
closeCurrentTabNoWarning()
Close the current tab without giving any warning if the database has been changed.
|
FileHistory |
getFileHistory() |
SearchManager2 |
getSearchManager() |
javax.swing.JTabbedPane |
getTabbedPane() |
java.lang.String |
getTabTitle(javax.swing.JComponent comp) |
java.lang.String |
getTabTooltip(javax.swing.JComponent comp) |
protected void |
initActions() |
void |
output(java.lang.String s) |
void |
preferences() |
JabRefPreferences |
prefs() |
void |
quit() |
void |
removeCachedEntryEditors() |
static void |
setEnabled(java.util.List<java.lang.Object> list,
boolean enabled)
Takes a list of Object and calls the method setEnabled on them, depending on whether it is an Action or a Component.
|
void |
setPreviewActive(boolean enabled)
Set the preview active state for all BasePanel instances.
|
void |
setProgressBarIndeterminate(boolean value)
Sets the indeterminate status of the progress bar.
|
void |
setProgressBarMaximum(int value)
Sets the maximum value of the progress bar.
|
void |
setProgressBarValue(int value)
Sets the current value of the progress bar.
|
void |
setProgressBarVisible(boolean visible)
Set the visibility of the progress bar in the right end of the
status line at the bottom of the frame.
|
void |
setStatus(java.lang.String s) |
void |
setTabTitle(javax.swing.JComponent comp,
java.lang.String title,
java.lang.String toolTip) |
void |
setupAllTables()
This method causes all open BasePanels to set up their tables
anew.
|
void |
setUpImportMenus()
Refresh import menus.
|
void |
setWindowTitle() |
void |
showBaseAt(int i) |
void |
showBasePanel(BasePanel bp) |
void |
showIfMinimizedToSysTray() |
void |
showMessage(java.lang.Object message,
java.lang.String title,
int msgType) |
void |
showMessage(java.lang.String message) |
void |
stopShowingSearchResults() |
static javax.swing.JMenu |
subMenu(java.lang.String name) |
void |
unblock()
This method reverts the cursor to normal, and stops blocking input to the JFrame's contents.
|
protected void |
updateEnabledState()
Enable or Disable all actions based on the number of open tabs.
|
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, 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, 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 SidePaneManager sidePaneManager
public HelpDialog helpDiag
public javax.swing.JToggleButton groupToggle
public javax.swing.JToggleButton searchToggle
public javax.swing.JToggleButton previewToggle
public javax.swing.JToggleButton highlightAny
public javax.swing.JToggleButton highlightAll
public GroupSelector groupSelector
protected java.util.List<java.lang.Object> openDatabaseOnlyActions
protected java.util.List<java.lang.Object> severalDatabasesOnlyActions
protected int previousTabCount
public void setWindowTitle()
public void about()
public void preferences()
public JabRefPreferences prefs()
public void quit()
public BasePanel baseAt(int i)
i
- Index of basepublic void showBaseAt(int i)
public void showBasePanel(BasePanel bp)
public BasePanel basePanel()
public int baseCount()
public javax.swing.JTabbedPane getTabbedPane()
public java.lang.String getTabTitle(javax.swing.JComponent comp)
public java.lang.String getTabTooltip(javax.swing.JComponent comp)
public void setTabTitle(javax.swing.JComponent comp, java.lang.String title, java.lang.String toolTip)
public void setUpImportMenus()
public static javax.swing.JMenu subMenu(java.lang.String name)
public void addParserResult(ParserResult pr, boolean raisePanel)
public void addPluginMenuItem(javax.swing.JMenuItem item)
public void output(java.lang.String s)
public void stopShowingSearchResults()
protected void initActions()
public static void setEnabled(java.util.List<java.lang.Object> list, boolean enabled)
list
- List that should contain Actions and Components.enabled
- protected void updateEnabledState()
public void setupAllTables()
public BasePanel addTab(BibtexDatabase db, java.io.File file, MetaData metaData, java.lang.String encoding, boolean raisePanel)
public void addTab(BasePanel bp, java.io.File file, boolean raisePanel)
public void closeCurrentTab()
public void closeCurrentTabNoWarning()
public void addImportedEntries(BasePanel panel, java.util.List<BibtexEntry> entries, java.lang.String filename, boolean openInNew)
panel
- The BasePanel to add to.entries
- The entries to add.filename
- Name of the file where the import came from.openInNew
- Should the entries be imported into a new database?public int addBibEntries(java.util.List<BibtexEntry> bibentries, java.lang.String filename, boolean intoNew)
filename
- If non-null, a message is printed to the status line describing
how many entries were imported, and from which file. If null, the message will not
be printed.intoNew
- Determines if the entries will be put in a new database or in the current
one.public FileHistory getFileHistory()
public void setPreviewActive(boolean enabled)
enabled
- public void removeCachedEntryEditors()
public void block()
public void unblock()
public void setProgressBarVisible(boolean visible)
public void setProgressBarValue(int value)
public void setProgressBarIndeterminate(boolean value)
public void setProgressBarMaximum(int value)
public void showIfMinimizedToSysTray()
public void showMessage(java.lang.Object message, java.lang.String title, int msgType)
showMessage
in interface OutputPrinter
public void setStatus(java.lang.String s)
setStatus
in interface OutputPrinter
public void showMessage(java.lang.String message)
showMessage
in interface OutputPrinter
public SearchManager2 getSearchManager()