Class NewRecordPanel

A JPanel that allows the user to create a new record.

Synopsis

 public final class NewRecordPanel extends JPanel
    implements RecordReceiver {
  public NewRecordPanel(MetaSchemeTableModel model,
                        UIConfig config);

  public FocusTraversalPolicy getPolicy();
  public MetaRecord createMetaRecord();
  public MetaSchemeTableModel getTableModel();
  public void addDocumentListener(DocumentListener documentListener);
  public void receiveMetaRecord(MetaRecord metaRecord,
                                MetaScheme outerScheme);

  public void receiveRecord(Record r);
}

Methods inherited from javax.swing.JPanel: getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI

Methods inherited from javax.swing.JComponent: addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputVerifier, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update

Methods inherited from java.awt.Container: add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, getComponent, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree

Methods inherited from java.awt.Component: action, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, coalesceEvents, createImage, createVolatileImage, disableEvents, dispatchEvent, enableEvents, enableInputMethods, getBackground, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, 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, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setName, setSize, show, size, toString, transferFocus, transferFocusUpCycle

Methods inherited from java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait

Inheritance Path. java.lang.Object-> java.awt.Component-> java.awt.Container-> javax.swing.JComponent-> javax.swing.JPanel-> org.kaiwitte.workbench.ui.view.NewRecordPanel

NewRecordPanel(MetaSchemeTableModel, UIConfig)

Synopsis: public NewRecordPanel(org.kaiwitte.workbench.ui.model.MetaSchemeT\
ableModel model,

                                org.kaiwitte.workbench.ui.UIConfig config);

Parameters

model

the MetaSchemeTableModel that defines the number and type of the editing fields.

config

the UIConfig

Creates a new instance.

addDocumentListener(DocumentListener)

Synopsis: public void addDocumentListener(javax.swing.event.DocumentListene\
r documentListener);

Parameters

documentListener

a DocumentListener to be added

Adds a DocumentListener to all visible text fields.

createMetaRecord()

Synopsis: public MetaRecord createMetaRecord();

Parameters

return

the new MetaRecord

Creates and returns the MetaRecord that results from the changes made in this dialog.

getPolicy()

Synopsis: public FocusTraversalPolicy getPolicy();

Parameters

return

the FocusTraversalPolicy

Returns the FocusTraversalPolicy that is optimised for navigating in this panel

getTableModel()

Synopsis: public MetaSchemeTableModel getTableModel();

Parameters

return

the MetaSchemeTableModel

Returns the MetaSchemeTableModel.

receiveMetaRecord(MetaRecord, MetaScheme)

Synopsis: public void receiveMetaRecord(org.kaiwitte.workbench.data.MetaRec\
ord metaRecord,

                                        org.kaiwitte.workbench.data.MetaSch\
eme outerScheme);

Parameters

metaRecord

the new values

outerScheme

the MetaScheme of the provided MetaRecord

Sends a MetaRecord to this panel. Its content is displayed in the panel. Used for quicksearch-and-insert-features.

receiveRecord(Record)

Synopsis: public void receiveRecord(org.kaiwitte.workbench.data.Record r);

Specified by: Method receiveRecord in interface RecordReceiver

Parameters

r

the new values

Sends a Record to this panel. Its content is displayed in the panel. Used for quicksearch-and-insert-features.