com.jaxfront.swing.ui.visualizers
Class SimpleTypeListView

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 com.jaxfront.swing.ui.visualizers.AbstractView
                      extended by com.jaxfront.swing.ui.visualizers.AbstractListTypeView
                          extended by com.jaxfront.swing.ui.visualizers.SimpleTypeListView
All Implemented Interfaces:
DOMChangeListener, ComplexVisualizer, ListVisualizer, TabbableView, Visualizer, java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.MouseListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.AncestorListener, javax.swing.event.ChangeListener, javax.swing.event.ListSelectionListener, javax.swing.event.PopupMenuListener

public class SimpleTypeListView
extends AbstractListTypeView
implements java.awt.event.ActionListener

This is the default visualizer for elements defined in the XSD Schema specification . as a sequence. The view takes care about the defined cardinalities and all other specifications from the XSD Schema.

Version:
1.4.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class com.jaxfront.swing.ui.visualizers.AbstractListTypeView
ADD_ACTION_NAME, COPY_ACTION_NAME, COPY_CONTENT_ACTION_NAME, DELETE_ACTION_NAME, EDIT_ACTION_NAME, MOVE_DOWN_ACTION_NAME, MOVE_UP_ACTION_NAME, PASTE_CONTENT_ACTION_NAME
 
Fields inherited from class com.jaxfront.swing.ui.visualizers.AbstractView
FILL, FILL_NO_GROW, HEADER_HEIGHT_OFFSET, PROPERTY_USER_CHANGED_SERIALIZE
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
SimpleTypeListView(SimpleTypeList type)
           
SimpleTypeListView(SimpleTypeList type, Type context)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Manages action events on this visualizer.
 Type doAddAction(boolean holdCTRL)
          Add new Item
 java.util.List doDeleteAction()
          Delete new Item
 void domChanged(DOMChangeEvent event)
          Respond method for a DOM state changed (DOMChangeEvent).
 javax.swing.text.JTextComponent getComboBoxEditorTextComponent()
           
 boolean isUsingComboView()
           
 void release()
          Releases allocated resources for this visualizer.
 void setEnabled(boolean enabled)
          Enabled the components if the parameter is true
 
Methods inherited from class com.jaxfront.swing.ui.visualizers.AbstractListTypeView
addAddListener, addCopyListener, addDeleteListener, addEditListener, addMoveDownListener, addMoveUpListener, addTab, addTab, ancestorAdded, ancestorMoved, ancestorRemoved, canModifyList, delete, doCopyAction, doMoveDownAction, doMoveUpAction, fireButtonListeners, focusLost, getButtonListeners, getDataTable, getEditDialog, getEditDialog, getListModel, getLowerButtonPanel, getPopUpListener, getSelectedTabType, getSelectedTabVisualizer, getSelectedType, getSelectedTypes, getUpperButtonPanel, getUserActions, handleButtonEnabling, isDialogEditMode, itemStateChanged, markError, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, populateModel, populateView, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, postInitialization, propertyChange, removeAddListener, removeButtonPanel, removeCopyListener, removeDeleteListener, removeMoveDownListener, removeMoveUpListener, removeTab, resetError, resetView, selectTab, selectType, selectType, setAddActionEnabled, setApplicationRequired, setBorder, setChoosenKeyContextValue, setChoosenKeyValue, setCopyActionEnabled, setCopyContentActionEnabled, setDeleteActionEnabled, setDialogLcation, setDialogSize, setEditable, setEditActionEnabled, setLabelColor, setMoveDownActionEnabled, setMoveUpActionEnabled, setPasteContentActionEnabled, setRequired, setVisible, showLabel, showModel, showTab, showUpDownButtons, stateChanged, stopCellEditing, valueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class com.jaxfront.swing.ui.visualizers.AbstractView
addNewChild, addTreeNode, createTabActionIcon, doUserSerialization, focusComponent, focusFirstComponent, focusGained, getBorderPanel, getChoiceComboBox, getColumnSpecLabelAndComponent, getContext, getDefaultBackgroundColor, getDOM, getEditorComponent, getEditorComponentPanel, getFirstFocusableComponent, getHintTextLabel, getImplementation, getLabel, getLabelPanel, getLabelPanel, getLabelText, getModel, getPercentageColumnSpecComponent, getRowSpec, getRowSpecArray, getRowSpecDefaultComponentHeight, getStyle, getTableLabelComponent, getVisualizerPanel, isRunningInDialog, isViewReleased, jumpTo, removeHint, removeLabel, removeMessage, removeTreeNode, scrollToView, setCodeSetValues, setEditorComponent, setEnabled, setFirstFocusableComponent, setLabelText, setModel, setSerializable, setTableLableComponent, setTreeIcon, setUserSerializable, setValues, setVisibleAndSerializable, showHint, showMessage, uiAction, useUserModifiedSerialization
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jaxfront.core.ui.Visualizer
getContext, getImplementation, getLabelText, getModel, isViewReleased, jumpTo, removeLabel, setLabelText, setModel
 

Constructor Detail

SimpleTypeListView

public SimpleTypeListView(SimpleTypeList type)

SimpleTypeListView

public SimpleTypeListView(SimpleTypeList type,
                          Type context)
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Enabled the components if the parameter is true

Specified by:
setEnabled in interface Visualizer
Overrides:
setEnabled in class AbstractListTypeView
Parameters:
enabled - enable/disable this visualizer
See Also:
Component.isEnabled()

doAddAction

public Type doAddAction(boolean holdCTRL)
Add new Item

Overrides:
doAddAction in class AbstractListTypeView

getComboBoxEditorTextComponent

public javax.swing.text.JTextComponent getComboBoxEditorTextComponent()

doDeleteAction

public java.util.List doDeleteAction()
Delete new Item

Overrides:
doDeleteAction in class AbstractListTypeView

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from class: AbstractListTypeView
Manages action events on this visualizer.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AbstractListTypeView
Parameters:
e - an ActionEvent
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

isUsingComboView

public boolean isUsingComboView()

release

public void release()
Description copied from interface: Visualizer
Releases allocated resources for this visualizer.

Specified by:
release in interface Visualizer
Overrides:
release in class AbstractListTypeView
See Also:
Visualizer.release()

domChanged

public void domChanged(DOMChangeEvent event)
Description copied from interface: DOMChangeListener
Respond method for a DOM state changed (DOMChangeEvent).

Specified by:
domChanged in interface DOMChangeListener
Overrides:
domChanged in class AbstractListTypeView
Parameters:
event - occured DOMChangeEvent