org.archiviststoolkit.editor
Class ArchDescriptionFields

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.archiviststoolkit.mydomain.DomainEditorFields
                      extended by org.archiviststoolkit.editor.ArchDescriptionFields
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, NameEnabledEditor, SubjectEnabledEditorFields
Direct Known Subclasses:
AccessionFields, DigitalObjectFields, ResourceComponentsFields, ResourceFields

public abstract class ArchDescriptionFields
extends DomainEditorFields
implements SubjectEnabledEditorFields, NameEnabledEditor

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String ADD_AFTER_SELECTION
           
static java.lang.String ADD_AT_BEGINNING
           
static java.lang.String ADD_AT_END
           
static java.lang.String ADD_BEFORE_SELECTION
           
protected  ArchDescriptionInstances currentInstance
           
protected  DomainObject currentRepeatingData
           
protected  java.lang.String defaultInstanceType
           
protected  ArchDescriptionInstancesEditor dialogInstances
           
protected  DomainEditor dialogRepeatingData
           
(package private)  java.awt.event.ActionListener menuListenerAddAfterSelection
           
(package private)  java.awt.event.ActionListener menuListenerAddAtBegining
           
(package private)  java.awt.event.ActionListener menuListenerAddAtEnd
           
(package private)  java.awt.event.ActionListener menuListenerAddBeforeSelection
           
(package private)  java.awt.event.ActionListener menuListenerDelete
           
protected  int selectedRowInstances
           
protected  int selectedRowRepeatingData
           
 
Fields inherited from class org.archiviststoolkit.mydomain.DomainEditorFields
customFormat, detailsModel, fieldsToBind, inSetModel, undoManager
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ArchDescriptionFields()
           
 
Method Summary
protected  void addDeaccessionsActionPerformed(DomainSortableTable deaccessionsTable)
           
protected  void addInstance()
           
protected  void addNameRelationship()
           
protected  void addNoteEtc(java.lang.String where, NotesEtcTypes noteEtcType)
           
protected  void addNoteEtcComboBoxAction()
           
protected  void addRepeatingData(java.lang.Class repeatingDataClass, NotesEtcTypes noteType, java.lang.String whereString)
           
protected  void addSubjectRelationship()
           
protected  void editNameRelationshipActionPerformed()
           
 javax.swing.JButton getAddInstanceButton()
           
abstract  javax.swing.JButton getAddNameRelationshipButton()
           
 javax.swing.JComboBox getAddNoteEtcComboBox()
           
 javax.swing.JButton getAddRepeatingDataButton()
           
abstract  javax.swing.JButton getAddSubjectRelationshipButton()
           
 javax.swing.JButton getChangeRepositoryButton()
           
 DomainSortableTable getInstancesTable()
           
abstract  DomainSortableTable getNamesTable()
           
 DomainSortedTable getNotesTable()
           
 javax.swing.JButton getRemoveInstanceButton()
           
abstract  javax.swing.JButton getRemoveNameRelationshipButton()
           
 javax.swing.JButton getRemoveRepeatingDataButton()
           
abstract  javax.swing.JButton getRemoveSubjectRelationshipButton()
           
 DomainSortedTable getRepeatingDataTable()
           
abstract  DomainSortableTable getSubjectsTable()
           
protected  void handleInstanceTableMouseClick(java.awt.event.MouseEvent e)
           
protected  void handleNamesTableMouseClick(java.awt.event.MouseEvent e)
           
protected  void initAccess()
           
protected  void initDigitalObjectNotes()
           
protected  void initMoreStuff(java.util.Vector values)
           
protected  void initNotesEtc()
           
protected  void removeDeaccessionActionPerformed(DomainSortableTable deaccessionsTable)
           
protected  void removeNotesEtc()
           
 void setModel(DomainObject model, InfiniteProgressPanel progressPanel)
          Set the domain model for this editor.
protected  void setOtherLevelEnabledDisabled(javax.swing.JComboBox levelComboBox, javax.swing.JLabel otherLevelLable, javax.swing.JTextField otherLevelTextField)
           
 
Methods inherited from class org.archiviststoolkit.mydomain.DomainEditorFields
acceptEdit, addRelatedObject, addRelatedObject, addRelatedTableRecord, cancelEdit, convertComboBoxToNonEnterableTextField, editRelatedRecord, editRelatedRecord, getInitialFocusComponent, getModel, getParentEditor, getRedoButton, getUndoButton, handleRedoButtonAction, handleTableMouseClick, handleTableMouseClick, handleUndoButtonAction, initUndo, removeRelatedTableRow, removeRelatedTableRow, setBean, setFormToReadOnly, setParentEditor, updateRelatedTable, updateUndoButtons
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, 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, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, isEnabled, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.archiviststoolkit.editor.SubjectEnabledEditorFields
getModel
 
Methods inherited from interface org.archiviststoolkit.editor.NameEnabledEditor
getModel
 

Field Detail

ADD_AT_BEGINNING

public static final java.lang.String ADD_AT_BEGINNING
See Also:
Constant Field Values

ADD_BEFORE_SELECTION

public static final java.lang.String ADD_BEFORE_SELECTION
See Also:
Constant Field Values

ADD_AFTER_SELECTION

public static final java.lang.String ADD_AFTER_SELECTION
See Also:
Constant Field Values

ADD_AT_END

public static final java.lang.String ADD_AT_END
See Also:
Constant Field Values

dialogRepeatingData

protected DomainEditor dialogRepeatingData

currentRepeatingData

protected DomainObject currentRepeatingData

selectedRowRepeatingData

protected int selectedRowRepeatingData

dialogInstances

protected ArchDescriptionInstancesEditor dialogInstances

currentInstance

protected ArchDescriptionInstances currentInstance

selectedRowInstances

protected int selectedRowInstances

defaultInstanceType

protected java.lang.String defaultInstanceType

menuListenerAddAtBegining

java.awt.event.ActionListener menuListenerAddAtBegining

menuListenerAddBeforeSelection

java.awt.event.ActionListener menuListenerAddBeforeSelection

menuListenerAddAfterSelection

java.awt.event.ActionListener menuListenerAddAfterSelection

menuListenerAddAtEnd

java.awt.event.ActionListener menuListenerAddAtEnd

menuListenerDelete

java.awt.event.ActionListener menuListenerDelete
Constructor Detail

ArchDescriptionFields

public ArchDescriptionFields()
Method Detail

getNotesTable

public DomainSortedTable getNotesTable()

getInstancesTable

public DomainSortableTable getInstancesTable()

getAddInstanceButton

public javax.swing.JButton getAddInstanceButton()

getRemoveInstanceButton

public javax.swing.JButton getRemoveInstanceButton()

getRepeatingDataTable

public DomainSortedTable getRepeatingDataTable()

getAddNoteEtcComboBox

public javax.swing.JComboBox getAddNoteEtcComboBox()

getChangeRepositoryButton

public javax.swing.JButton getChangeRepositoryButton()

getAddRepeatingDataButton

public javax.swing.JButton getAddRepeatingDataButton()

getRemoveRepeatingDataButton

public javax.swing.JButton getRemoveRepeatingDataButton()

getSubjectsTable

public abstract DomainSortableTable getSubjectsTable()
Specified by:
getSubjectsTable in interface SubjectEnabledEditorFields

getAddSubjectRelationshipButton

public abstract javax.swing.JButton getAddSubjectRelationshipButton()

getRemoveNameRelationshipButton

public abstract javax.swing.JButton getRemoveNameRelationshipButton()

getNamesTable

public abstract DomainSortableTable getNamesTable()
Specified by:
getNamesTable in interface NameEnabledEditor

getAddNameRelationshipButton

public abstract javax.swing.JButton getAddNameRelationshipButton()

getRemoveSubjectRelationshipButton

public abstract javax.swing.JButton getRemoveSubjectRelationshipButton()

setModel

public void setModel(DomainObject model,
                     InfiniteProgressPanel progressPanel)
Set the domain model for this editor.

Overrides:
setModel in class DomainEditorFields
Parameters:
model - the model

addSubjectRelationship

protected void addSubjectRelationship()

addNameRelationship

protected void addNameRelationship()

addInstance

protected void addInstance()

removeNotesEtc

protected void removeNotesEtc()

addRepeatingData

protected void addRepeatingData(java.lang.Class repeatingDataClass,
                                NotesEtcTypes noteType,
                                java.lang.String whereString)
                         throws UnsupportedRepeatingDataTypeException
Throws:
UnsupportedRepeatingDataTypeException

initDigitalObjectNotes

protected void initDigitalObjectNotes()

initNotesEtc

protected void initNotesEtc()

addNoteEtc

protected void addNoteEtc(java.lang.String where,
                          NotesEtcTypes noteEtcType)

initAccess

protected void initAccess()

initMoreStuff

protected void initMoreStuff(java.util.Vector values)

addDeaccessionsActionPerformed

protected void addDeaccessionsActionPerformed(DomainSortableTable deaccessionsTable)

removeDeaccessionActionPerformed

protected void removeDeaccessionActionPerformed(DomainSortableTable deaccessionsTable)

addNoteEtcComboBoxAction

protected void addNoteEtcComboBoxAction()

setOtherLevelEnabledDisabled

protected void setOtherLevelEnabledDisabled(javax.swing.JComboBox levelComboBox,
                                            javax.swing.JLabel otherLevelLable,
                                            javax.swing.JTextField otherLevelTextField)

handleInstanceTableMouseClick

protected void handleInstanceTableMouseClick(java.awt.event.MouseEvent e)

editNameRelationshipActionPerformed

protected void editNameRelationshipActionPerformed()

handleNamesTableMouseClick

protected void handleNamesTableMouseClick(java.awt.event.MouseEvent e)