public class EntryEditor extends javax.swing.JPanel implements java.beans.VetoableChangeListener, EntryContainer
Modifier and Type | Class and Description |
---|---|
class |
EntryEditor.StoreFieldAction |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
net.sf.jabref.EntryEditor.AutoSetFileAction |
autoLink |
net.sf.jabref.EntryEditor.GenerateKeyAction |
generateKeyAction |
EntryEditor.StoreFieldAction |
storeFieldAction |
javax.swing.AbstractAction |
writeXmp |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
EntryEditor(JabRefFrame frame_,
BasePanel panel_,
BibtexEntry entry_) |
Modifier and Type | Method and Description |
---|---|
BibtexDatabase |
getDatabase() |
BibtexEntry |
getEntry() |
javax.swing.JComponent |
getExtra(java.lang.String string,
FieldEditor ed)
getExtra checks the field name against BibtexFields.getFieldExtras(name).
|
BibtexEntryType |
getType() |
int |
getVisiblePanel()
Returns the index of the active (visible) panel.
|
java.lang.String |
getVisiblePanelName()
Returns the name of the currently selected component.
|
boolean |
isEnabled()
Reports the enabled status of the editor, as set by setEnabled()
|
boolean |
lastSourceAccepted()
Returns false if the contents of the source panel has not been validated,
true othervise.
|
void |
rebuildPanels()
Rebuild the field tabs.
|
void |
requestFocus() |
void |
setEnabled(boolean enabled)
Sets the enabled status of all text fields of the entry editor.
|
void |
setField(java.lang.String fieldName,
java.lang.String newFieldData) |
void |
setMovingToDifferentEntry() |
void |
setupJTextComponent(javax.swing.text.JTextComponent ta)
NOTE: This method is only used for the source panel, not for the
other tabs.
|
void |
setVisiblePanel(int i)
Sets the panel with the given index visible.
|
void |
setVisiblePanel(java.lang.String name) |
void |
storeCurrentEdit()
Makes sure the current edit is stored.
|
boolean |
storeSource(boolean showError) |
void |
switchTo(BibtexEntry be)
Updates this editor to show the given entry, regardless of type
correspondence.
|
void |
updateAllContentSelectors() |
void |
updateAllFields()
Sets all the text areas according to the shown entry.
|
void |
updateField(java.lang.Object source) |
void |
updateSource() |
void |
validateAllFields()
Removes the "invalid field" color from all text areas.
|
void |
vetoableChange(java.beans.PropertyChangeEvent e)
Update the JTextArea when a field has changed.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public EntryEditor.StoreFieldAction storeFieldAction
public net.sf.jabref.EntryEditor.GenerateKeyAction generateKeyAction
public net.sf.jabref.EntryEditor.AutoSetFileAction autoLink
public javax.swing.AbstractAction writeXmp
public EntryEditor(JabRefFrame frame_, BasePanel panel_, BibtexEntry entry_)
public BibtexEntryType getType()
public BibtexEntry getEntry()
getEntry
in interface EntryContainer
public BibtexDatabase getDatabase()
public void rebuildPanels()
public javax.swing.JComponent getExtra(java.lang.String string, FieldEditor ed)
string
- Field namepublic void updateSource()
public void setupJTextComponent(javax.swing.text.JTextComponent ta)
public void requestFocus()
requestFocus
in class javax.swing.JComponent
public boolean isEnabled()
isEnabled
in class java.awt.Component
public void setEnabled(boolean enabled)
setEnabled
in class javax.swing.JComponent
public void storeCurrentEdit()
public int getVisiblePanel()
int
valuepublic java.lang.String getVisiblePanelName()
public void setVisiblePanel(int i)
i
- an int
valuepublic void setVisiblePanel(java.lang.String name)
public void switchTo(BibtexEntry be)
be
- a BibtexEntry
valuepublic boolean lastSourceAccepted()
public boolean storeSource(boolean showError)
public void setField(java.lang.String fieldName, java.lang.String newFieldData)
public void updateAllFields()
public void validateAllFields()
public void updateAllContentSelectors()
public void vetoableChange(java.beans.PropertyChangeEvent e)
vetoableChange
in interface java.beans.VetoableChangeListener
VetoableChangeListener.vetoableChange(java.beans.PropertyChangeEvent)
public void updateField(java.lang.Object source)
public void setMovingToDifferentEntry()