ix.iview
Class ActionFormPanel

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 ix.iface.ui.IFormPanel
                      extended by ix.iview.ActionFormPanel
All Implemented Interfaces:
FormModelListener, ConstructEditing, UndoEditing, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class ActionFormPanel
extends IFormPanel
implements ConstructEditing, UndoEditing

A panel containing form-style sub-panels for viewing/editing an object

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ix.iface.ui.IFormPanel
IFormPanel.FieldChooser
 
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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  AConstructFramePanel parent
           
 
Fields inherited from class ix.iface.ui.IFormPanel
displayBits, fieldRenderers, hideBits, listeners, model, nameBits, simpleFields
 
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
ActionFormPanel(AConstructFramePanel parent)
           
 
Method Summary
protected  java.lang.Object deRenderValue(java.lang.String field, java.lang.Object data)
          De-render values for: pattern (lisp.elementsFromString), nodes (parse if text, otherwise ignore because updates are immediate) orderings (return als LList)
 void displayFieldData(java.lang.String field)
          XXXX Loads the data of the given field into the panel.
 IXObject getConstruct()
          Gets the current construct.
 UIObject getUIConstruct()
          Gets the current UI construct.
 UIDomain getUIDomain()
          Gets the current UIDomain.
 boolean isSequenceSet()
           
 void loadFromObject()
          Saves the data from the panel into the current object.
protected  IXEditorPanel makeDisplayBit(java.lang.String field)
          make a special display bit for miniConstraints proper patterns enable variable checking in pattern and text versions of nodes and issues
protected  java.lang.Object renderValue(java.lang.String field, java.lang.Object value)
          Render values for: pattern (list to display), text nodes (write a line for each node)
 void saveToObject()
          Saves the data from the display panels into the model's object.
 void saveToObject(EditableObject object)
          Saves the display information from the display panels into the given object.
 void setConstruct(IXObject construct)
          Sets the current construct.
protected  void setRenderers()
          Sets the renderers to be added to the panel items (lists) of fiels.
 void setUIConstruct(UIObject uiObject)
          Sets the current UI construct.
 void setUIConstructOnly(UIObject uiObject)
          Sets the current UI construct without noting changes.
 java.lang.Object undoGetValue(java.lang.String field)
          Gets the given field to the given value in the editor.
 void undoSetValue(java.lang.String field, java.lang.Object value)
          Sets the given field to the given value in the editor.
 
Methods inherited from class ix.iface.ui.IFormPanel
actionPerformed, addFormActionListener, clear, clearBits, clearField, clearFields, displayModelData, editFields, ensurePanelBits, formModelChanged, getFieldBit, getFieldData, getModel, gotConstraint, hideBits, isListField, isSimpleField, saveFieldData, setFieldData, setHideBits, setModel, setModel, setRenderer, setSimpleField, unsetSimpleField, updateHideBits, updateNames
 
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, 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, 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
 

Field Detail

parent

AConstructFramePanel parent
Constructor Detail

ActionFormPanel

ActionFormPanel(AConstructFramePanel parent)
Method Detail

displayFieldData

public void displayFieldData(java.lang.String field)
Description copied from class: IFormPanel
XXXX Loads the data of the given field into the panel. Gets the value from the model, renders it, and sets the panel bit.

Overrides:
displayFieldData in class IFormPanel

setRenderers

protected void setRenderers()
Description copied from class: IFormPanel
Sets the renderers to be added to the panel items (lists) of fiels. To be overridden by sub-classes.

Overrides:
setRenderers in class IFormPanel

renderValue

protected java.lang.Object renderValue(java.lang.String field,
                                       java.lang.Object value)
Render values for: pattern (list to display), text nodes (write a line for each node)

Overrides:
renderValue in class IFormPanel

deRenderValue

protected java.lang.Object deRenderValue(java.lang.String field,
                                         java.lang.Object data)
De-render values for: pattern (lisp.elementsFromString), nodes (parse if text, otherwise ignore because updates are immediate) orderings (return als LList)

Overrides:
deRenderValue in class IFormPanel

makeDisplayBit

protected IXEditorPanel makeDisplayBit(java.lang.String field)
make a special display bit for miniConstraints proper patterns enable variable checking in pattern and text versions of nodes and issues

Overrides:
makeDisplayBit in class IFormPanel

isSequenceSet

public boolean isSequenceSet()
Returns:
the current setting of the sequence flag

undoSetValue

public void undoSetValue(java.lang.String field,
                         java.lang.Object value)
Sets the given field to the given value in the editor.

Specified by:
undoSetValue in interface UndoEditing

undoGetValue

public java.lang.Object undoGetValue(java.lang.String field)
Gets the given field to the given value in the editor.

Specified by:
undoGetValue in interface UndoEditing

getUIDomain

public UIDomain getUIDomain()
Gets the current UIDomain.

Specified by:
getUIDomain in interface ConstructEditing

getConstruct

public IXObject getConstruct()
Gets the current construct.

Specified by:
getConstruct in interface ConstructEditing

setConstruct

public void setConstruct(IXObject construct)
Sets the current construct.

Specified by:
setConstruct in interface ConstructEditing

getUIConstruct

public UIObject getUIConstruct()
Gets the current UI construct.

Specified by:
getUIConstruct in interface ConstructEditing

setUIConstruct

public void setUIConstruct(UIObject uiObject)
Description copied from interface: ConstructEditing
Sets the current UI construct. Remember to parent.fireConstructChanged(old, new)

Specified by:
setUIConstruct in interface ConstructEditing

setUIConstructOnly

public void setUIConstructOnly(UIObject uiObject)
Description copied from interface: ConstructEditing
Sets the current UI construct without noting changes. Remember to parent.fireConstructChanged(old, new)

Specified by:
setUIConstructOnly in interface ConstructEditing

loadFromObject

public void loadFromObject()
Description copied from interface: ConstructEditing
Saves the data from the panel into the current object.

Specified by:
loadFromObject in interface ConstructEditing

saveToObject

public void saveToObject(EditableObject object)
Description copied from class: IFormPanel
Saves the display information from the display panels into the given object.

Specified by:
saveToObject in interface ConstructEditing
Overrides:
saveToObject in class IFormPanel

saveToObject

public void saveToObject()
Description copied from class: IFormPanel
Saves the data from the display panels into the model's object.

Overrides:
saveToObject in class IFormPanel