com.jaxfront.swing.ui.beans
Class AbstractListVisualizer

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.beans.AbstractListVisualizer
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 abstract class AbstractListVisualizer
extends AbstractListTypeView
implements ListVisualizer

This class is a template to write its own list visualizer component.

Version:
1.60
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
AbstractListVisualizer(Type type)
          Construct a list visualizer based on a certain list type.
 
Method Summary
abstract  void addTab(Type type)
          Add a tab for the passed type.
abstract  JAXDataTable getDataTable()
          Returns the internal representation fo the data table.
abstract  javax.swing.JDialog getEditDialog(Type selectedType)
          Returns the edit dialog for a given type.
abstract  javax.swing.JDialog getEditDialog(Type selectedType, boolean isAdding)
          Returns the edit dialog for a given type.
abstract  Visualizer getSelectedTabVisualizer()
          Returns the selected tab visualizer or null if none.
abstract  Type getSelectedType()
          Gets the selected type of the underlying list type.
abstract  java.util.Vector getSelectedTypes()
          Gets the selected types of the underlying list type.
abstract  void removeButtonPanel()
          Removes the button panel from this visualizer.
abstract  void removeTab(Type type)
          Remove the tab for the passed type.
abstract  void selectTab(Type type)
          Selects the tab for the passed type.
abstract  void showUpDownButtons(boolean showUpDownButtons)
          Sets the visibility of the up/down buttons for a list view.
 
Methods inherited from class com.jaxfront.swing.ui.visualizers.AbstractListTypeView
actionPerformed, addAddListener, addCopyListener, addDeleteListener, addEditListener, addMoveDownListener, addMoveUpListener, addTab, ancestorAdded, ancestorMoved, ancestorRemoved, canModifyList, delete, doAddAction, doCopyAction, doDeleteAction, domChanged, doMoveDownAction, doMoveUpAction, fireButtonListeners, focusLost, getButtonListeners, getListModel, getLowerButtonPanel, getPopUpListener, getSelectedTabType, getUpperButtonPanel, getUserActions, handleButtonEnabling, isDialogEditMode, itemStateChanged, markError, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, populateModel, populateView, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, postInitialization, propertyChange, release, removeAddListener, removeCopyListener, removeDeleteListener, removeMoveDownListener, removeMoveUpListener, resetError, resetView, selectType, selectType, setAddActionEnabled, setApplicationRequired, setBorder, setChoosenKeyContextValue, setChoosenKeyValue, setCopyActionEnabled, setCopyContentActionEnabled, setDeleteActionEnabled, setDialogLcation, setDialogSize, setEditable, setEditActionEnabled, setEnabled, setLabelColor, setMoveDownActionEnabled, setMoveUpActionEnabled, setPasteContentActionEnabled, setRequired, setVisible, showLabel, showModel, showTab, 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.ListVisualizer
getListModel, resetView, selectType, selectType, showModel
 
Methods inherited from interface com.jaxfront.core.ui.Visualizer
getContext, getImplementation, getLabelText, getModel, isViewReleased, jumpTo, markError, populateModel, populateView, postInitialization, release, removeLabel, resetError, setApplicationRequired, setEditable, setEnabled, setLabelColor, setLabelText, setModel, setRequired, setVisible, showLabel
 

Constructor Detail

AbstractListVisualizer

public AbstractListVisualizer(Type type)
Construct a list visualizer based on a certain list type.

Parameters:
type - the type for which this visualizer will be created
Method Detail

getEditDialog

public abstract javax.swing.JDialog getEditDialog(Type selectedType)
Returns the edit dialog for a given type.

Specified by:
getEditDialog in interface ListVisualizer
Overrides:
getEditDialog in class AbstractListTypeView
Parameters:
selectedType - a given type
Returns:
JDialog the dialog for a type

getEditDialog

public abstract javax.swing.JDialog getEditDialog(Type selectedType,
                                                  boolean isAdding)
Returns the edit dialog for a given type.

Overrides:
getEditDialog in class AbstractListTypeView
Parameters:
selectedType - a given type
isAdding - indicates if dialog is made for adding a new list entry
Returns:
JDialog the dialog for a type

getSelectedType

public abstract Type getSelectedType()
Gets the selected type of the underlying list type.

Specified by:
getSelectedType in interface ListVisualizer
Overrides:
getSelectedType in class AbstractListTypeView
Returns:
the selected type of the list

getSelectedTypes

public abstract java.util.Vector getSelectedTypes()
Gets the selected types of the underlying list type.

Overrides:
getSelectedTypes in class AbstractListTypeView
Returns:
the selected types of the list

removeButtonPanel

public abstract void removeButtonPanel()
Removes the button panel from this visualizer.

Overrides:
removeButtonPanel in class AbstractListTypeView

showUpDownButtons

public abstract void showUpDownButtons(boolean showUpDownButtons)
Sets the visibility of the up/down buttons for a list view.

Specified by:
showUpDownButtons in interface ListVisualizer
Overrides:
showUpDownButtons in class AbstractListTypeView
Parameters:
showUpDownButtons - true if the buttons should be shown

getDataTable

public abstract JAXDataTable getDataTable()
Returns the internal representation fo the data table.

Specified by:
getDataTable in interface ListVisualizer
Overrides:
getDataTable in class AbstractListTypeView

removeTab

public abstract void removeTab(Type type)
Remove the tab for the passed type.

Specified by:
removeTab in interface ListVisualizer
Overrides:
removeTab in class AbstractListTypeView
Parameters:
type - type to remove

addTab

public abstract void addTab(Type type)
Add a tab for the passed type.

Specified by:
addTab in interface ListVisualizer
Overrides:
addTab in class AbstractListTypeView
Parameters:
type - type to add as tab

selectTab

public abstract void selectTab(Type type)
Selects the tab for the passed type.

Overrides:
selectTab in class AbstractListTypeView
Parameters:
type - type to select within tabbed pane

getSelectedTabVisualizer

public abstract Visualizer getSelectedTabVisualizer()
Returns the selected tab visualizer or null if none.

Overrides:
getSelectedTabVisualizer in class AbstractListTypeView