com.jaxfront.swing.ui.visualizers
Class AbstractListTypeView

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
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
Direct Known Subclasses:
AbstractListVisualizer, AbstractSimpleListView, ComplexGroupListView, SimpleTypeListView

public abstract class AbstractListTypeView
extends AbstractView
implements TabbableView, DOMChangeListener, java.awt.event.ActionListener, javax.swing.event.ListSelectionListener, javax.swing.event.AncestorListener, java.awt.event.MouseListener, ListVisualizer, javax.swing.event.ChangeListener, javax.swing.event.PopupMenuListener, java.awt.event.WindowListener

This class represents an AbstractListTypeView which is derived from the class AbstractView. This is an abstract Visualizer class which gets derived from the classes ComplexGroupListView, SimpleGroupListView and SimpleTypeListView. It is mainly responsible for guis that represents lists.

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
static java.lang.String ADD_ACTION_NAME
           
static java.lang.String COPY_ACTION_NAME
           
static java.lang.String COPY_CONTENT_ACTION_NAME
           
static java.lang.String DELETE_ACTION_NAME
           
static java.lang.String EDIT_ACTION_NAME
           
static java.lang.String MOVE_DOWN_ACTION_NAME
           
static java.lang.String MOVE_UP_ACTION_NAME
           
static java.lang.String 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
AbstractListTypeView(Type type)
          AbstractListTypeView constructor.
AbstractListTypeView(Type type, Type context)
          AbstractListTypeView constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Manages action events on this visualizer.
 boolean addAddListener(java.awt.event.ActionListener listener)
           
 boolean addCopyListener(java.awt.event.ActionListener listener)
           
 boolean addDeleteListener(java.awt.event.ActionListener listener)
           
 boolean addEditListener(java.awt.event.ActionListener listener)
           
 boolean addMoveDownListener(java.awt.event.ActionListener listener)
           
 boolean addMoveUpListener(java.awt.event.ActionListener listener)
           
 void addTab(Type type)
          Add a tab for the passed type.
 void addTab(Type type, int index)
          Add a tab for the passed type.
 void ancestorAdded(javax.swing.event.AncestorEvent event)
          Manages an AncestorEvent if an ancestor has been added.
 void ancestorMoved(javax.swing.event.AncestorEvent event)
          Manages an AncestorEvent if an ancestor has been moved.
 void ancestorRemoved(javax.swing.event.AncestorEvent event)
          Manage an AncestorEvent if an ancestor has been removed.
 boolean canModifyList()
           
 java.util.List delete(java.util.Vector typesToDelete)
           
 Type doAddAction(boolean holdCTRL)
           
 java.util.List doCopyAction()
           
 java.util.List doDeleteAction()
           
 void domChanged(DOMChangeEvent event)
          Respond method for a DOM state changed (DOMChangeEvent).
 int[] doMoveDownAction()
           
 int[] doMoveUpAction()
           
 void fireButtonListeners(int actionType, java.awt.event.ActionEvent ae)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 java.util.List getButtonListeners(boolean build)
           
 JAXDataTable getDataTable()
          Returns the data table.
 javax.swing.JDialog getEditDialog(Type selectedType)
          Returns the edit dialog for a given type.
 javax.swing.JDialog getEditDialog(Type selectedType, boolean isAdding)
          Returns the edit dialog for a given type.
 ListType getListModel()
           
 javax.swing.JPanel getLowerButtonPanel()
           
 PopUpListener getPopUpListener()
           
 Type getSelectedTabType()
           
 Visualizer getSelectedTabVisualizer()
          Returns the selected tab visualizer or null if none.
 Type getSelectedType()
          Gets the selected type of the underlying list type.
 java.util.Vector getSelectedTypes()
          Gets the selected types of the underlying list type.
 javax.swing.JPanel getUpperButtonPanel()
           
 java.util.Vector getUserActions()
           
 void handleButtonEnabling()
           
 boolean isDialogEditMode()
          Returns true if this view allows editing in the dialog view.
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void markError()
          Visualizes the validation errors that occured on this visualizer.
 void mouseClicked(java.awt.event.MouseEvent e)
          Handles a mouse clicked event.
 void mouseEntered(java.awt.event.MouseEvent e)
          Handles a mouse entered event.
 void mouseExited(java.awt.event.MouseEvent e)
          Handles a mouse exited event.
 void mousePressed(java.awt.event.MouseEvent e)
          Handles a mouse pressed event.
 void mouseReleased(java.awt.event.MouseEvent e)
          Handles a mouse released event.
 void populateModel()
          Updates the underlying model.
 void populateView()
          Refreshes the view according to the underlying model.
 void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
           
 void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
           
 void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
           
 void postInitialization()
          Gets called after the UI factory has created this visualizer.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void release()
          Releases allocated resources for this visualizer.
 void removeAddListener(java.awt.event.ActionListener listener)
           
 void removeButtonPanel()
          Removes the button panel from this visualizer.
 void removeCopyListener(java.awt.event.ActionListener listener)
           
 void removeDeleteListener(java.awt.event.ActionListener listener)
           
 void removeMoveDownListener(java.awt.event.ActionListener listener)
           
 void removeMoveUpListener(java.awt.event.ActionListener listener)
           
 void removeTab(Type type)
          Remove the tab for the passed type.
 void resetError()
          Removes the visualization of validating errors for this visualizer.
 void resetView()
          Selects the visualizer for the given model (type) in the table.
 void selectTab(Type type)
          Selects the tab for the passed type.
 void selectType(Type model)
          Selects the requested type in the list.
 void selectType(Type model, boolean isUserAction)
          Selects the visualizer for the given model (type) in the table.
 void setAddActionEnabled(boolean enabled)
           
 void setApplicationRequired(boolean aBoolean)
          Sets the view component to be required or not defined by the application not by xml schema.
 void setBorder(javax.swing.border.Border border)
          Sets a border to the panel of this visualizer.
 void setChoosenKeyContextValue(java.lang.String xpathRelativeToChoosenKeyContext, java.lang.String newValue)
           
 void setChoosenKeyValue(java.lang.String xpathRelativeToChoosenKey, java.lang.String newValue)
           
 void setCopyActionEnabled(boolean enabled)
           
 void setCopyContentActionEnabled(boolean enabled)
           
 void setDeleteActionEnabled(boolean enabled)
           
 void setDialogLcation(int x, int y)
           
 void setDialogSize(int width, int height)
           
 void setEditable(boolean editable)
          Sets the view component editable .
 void setEditActionEnabled(boolean enabled)
           
 void setEnabled(boolean enabled)
          Sets whether or not this component is enabled.
 void setLabelColor(java.awt.Color color)
          Sets a color for the label of this visualizer.
 void setMoveDownActionEnabled(boolean enabled)
           
 void setMoveUpActionEnabled(boolean enabled)
           
 void setPasteContentActionEnabled(boolean enabled)
           
 void setRequired(boolean aBoolean)
          Sets if the visualizer requires a user input or not.
 void setVisible(boolean visible)
          Sets the view component visible or not visible.
 void showLabel(boolean show)
          Shows or hides the label of this visualizer.
 void showModel(Type model)
          Shows the view of the given model (type) in the table.
 void showTab(Type selectedType, java.lang.Object component)
          Shows/Selects the tab in which the given component is placed in.
 void showUpDownButtons(boolean showUpDownButtons)
          Sets the visibility of the up/down buttons for a list view.
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 void stopCellEditing()
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          Fired every time the list selection in the table changes Only listens to not-valueisadjusting events.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
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
 

Field Detail

ADD_ACTION_NAME

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

EDIT_ACTION_NAME

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

DELETE_ACTION_NAME

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

COPY_ACTION_NAME

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

COPY_CONTENT_ACTION_NAME

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

PASTE_CONTENT_ACTION_NAME

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

MOVE_UP_ACTION_NAME

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

MOVE_DOWN_ACTION_NAME

public static final java.lang.String MOVE_DOWN_ACTION_NAME
See Also:
Constant Field Values
Constructor Detail

AbstractListTypeView

public AbstractListTypeView(Type type)
AbstractListTypeView constructor.

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

AbstractListTypeView

public AbstractListTypeView(Type type,
                            Type context)
AbstractListTypeView constructor.

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

postInitialization

public void postInitialization()
Description copied from interface: Visualizer
Gets called after the UI factory has created this visualizer. Do whatever you want here.

Specified by:
postInitialization in interface Visualizer
Overrides:
postInitialization in class AbstractView

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Manages action events on this visualizer.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - an ActionEvent

ancestorAdded

public void ancestorAdded(javax.swing.event.AncestorEvent event)
Manages an AncestorEvent if an ancestor has been added.

Specified by:
ancestorAdded in interface javax.swing.event.AncestorListener
Parameters:
event - an AncestorEvent

ancestorMoved

public void ancestorMoved(javax.swing.event.AncestorEvent event)
Manages an AncestorEvent if an ancestor has been moved.

Specified by:
ancestorMoved in interface javax.swing.event.AncestorListener
Parameters:
event - an AncestorEvent

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener
Overrides:
focusLost in class AbstractView
See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)

ancestorRemoved

public void ancestorRemoved(javax.swing.event.AncestorEvent event)
Manage an AncestorEvent if an ancestor has been removed.

Specified by:
ancestorRemoved in interface javax.swing.event.AncestorListener
Parameters:
event - an AncestorEvent

doAddAction

public Type doAddAction(boolean holdCTRL)

doDeleteAction

public java.util.List doDeleteAction()

delete

public java.util.List delete(java.util.Vector typesToDelete)

doCopyAction

public java.util.List doCopyAction()

doMoveUpAction

public int[] doMoveUpAction()

doMoveDownAction

public int[] doMoveDownAction()

getUpperButtonPanel

public javax.swing.JPanel getUpperButtonPanel()

getLowerButtonPanel

public javax.swing.JPanel getLowerButtonPanel()

getUserActions

public java.util.Vector getUserActions()

canModifyList

public boolean canModifyList()

getPopUpListener

public PopUpListener getPopUpListener()

getEditDialog

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

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

getEditDialog

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

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 Type getSelectedType()
Gets the selected type of the underlying list type.

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

getSelectedTabType

public Type getSelectedTabType()
Specified by:
getSelectedTabType in interface TabbableView

handleButtonEnabling

public void handleButtonEnabling()

getSelectedTypes

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

Returns:
the selected types of the list

isDialogEditMode

public boolean isDialogEditMode()
Returns true if this view allows editing in the dialog view.

Returns:
boolean

markError

public void markError()
Visualizes the validation errors that occured on this visualizer.

Specified by:
markError in interface Visualizer
Specified by:
markError in class AbstractView
See Also:
Visualizer.markError()

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Handles a mouse clicked event.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent that occured

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Handles a mouse entered event.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent that occured

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Handles a mouse exited event.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent that occured

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Handles a mouse pressed event.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent that occured

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Handles a mouse released event.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent that occured

populateModel

public void populateModel()
Updates the underlying model.

Specified by:
populateModel in interface Visualizer
Specified by:
populateModel in class AbstractView
See Also:
Visualizer.populateModel()

populateView

public void populateView()
Refreshes the view according to the underlying model.

Specified by:
populateView in interface Visualizer
Specified by:
populateView in class AbstractView
See Also:
Visualizer.populateView()

removeButtonPanel

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


resetError

public void resetError()
Removes the visualization of validating errors for this visualizer.

Specified by:
resetError in interface Visualizer
Specified by:
resetError in class AbstractView
See Also:
Visualizer.resetError()

setBorder

public void setBorder(javax.swing.border.Border border)
Sets a border to the panel of this visualizer.

Overrides:
setBorder in class javax.swing.JComponent
Parameters:
border - a border

showModel

public void showModel(Type model)
Shows the view of the given model (type) in the table.

Specified by:
showModel in interface ListVisualizer
Parameters:
model - the given model

setEnabled

public void setEnabled(boolean enabled)
Sets whether or not this component is enabled. A component which is enabled may respond to user input, while a component which is not enabled cannot respond to user input. Some components may alter their visual representation when they are disabled in order to provide feedback to the user that they cannot take input.

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

setEditable

public void setEditable(boolean editable)
Description copied from interface: Visualizer
Sets the view component editable .

Specified by:
setEditable in interface Visualizer
Overrides:
setEditable in class AbstractView
Parameters:
editable - enable/disable this visualizer
See Also:
com.jaxfront.ui.Visualizer#setEditable(boolean)

setLabelColor

public void setLabelColor(java.awt.Color color)
Sets a color for the label of this visualizer.

Specified by:
setLabelColor in interface Visualizer
Specified by:
setLabelColor in class AbstractView
Parameters:
color - a new color for the label
See Also:
Visualizer.setLabelColor(java.awt.Color)

setRequired

public void setRequired(boolean aBoolean)
Sets if the visualizer requires a user input or not. Required fields are displayed in another color.

Specified by:
setRequired in interface Visualizer
Specified by:
setRequired in class AbstractView
Parameters:
aBoolean - true, if this visualizer requires user input, false otherwise
See Also:
Visualizer.setRequired(boolean)

setApplicationRequired

public void setApplicationRequired(boolean aBoolean)
Description copied from interface: Visualizer
Sets the view component to be required or not defined by the application not by xml schema.

Specified by:
setApplicationRequired in interface Visualizer
Overrides:
setApplicationRequired in class AbstractView
Parameters:
aBoolean - indicates if a visualizer required user input
See Also:
com.jaxfront.ui.Visualizer#setApplicationRequired(boolean)

showLabel

public void showLabel(boolean show)
Shows or hides the label of this visualizer.

Specified by:
showLabel in interface Visualizer
Overrides:
showLabel in class AbstractView
Parameters:
show - if true, show the label, if false, hide the label
See Also:
Visualizer.showLabel(boolean)

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 AbstractView
See Also:
com.jaxfront.ui.Visualizer#release()

setChoosenKeyValue

public void setChoosenKeyValue(java.lang.String xpathRelativeToChoosenKey,
                               java.lang.String newValue)
See Also:
com.jaxfront.types.AbstractType#setChoosenKeyValue(java.lang.String, java.lang.String)

setChoosenKeyContextValue

public void setChoosenKeyContextValue(java.lang.String xpathRelativeToChoosenKeyContext,
                                      java.lang.String newValue)
Specified by:
setChoosenKeyContextValue in class AbstractView
See Also:
com.jaxfront.types.AbstractType#setChoosenKeyContextValue(java.lang.String, java.lang.String)

showTab

public void showTab(Type selectedType,
                    java.lang.Object component)
Description copied from interface: TabbableView
Shows/Selects the tab in which the given component is placed in.

Specified by:
showTab in interface TabbableView
component - of the tab to be shown

showUpDownButtons

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

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

selectType

public void selectType(Type model)
Description copied from interface: ListVisualizer
Selects the requested type in the list.

Specified by:
selectType in interface ListVisualizer

selectType

public void selectType(Type model,
                       boolean isUserAction)
Selects the visualizer for the given model (type) in the table.

Specified by:
selectType in interface ListVisualizer
Parameters:
model - the given model
isUserAction - defines if the user visually clicked with the mouse on a selection

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Fired every time the list selection in the table changes Only listens to not-valueisadjusting events. Updates an internal cache of seleted complex groups upon every call.

Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
Parameters:
e - a ListSelectionEvent

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Overrides:
itemStateChanged in class AbstractView
See Also:
ItemListener.itemStateChanged(ItemEvent)

setDialogSize

public void setDialogSize(int width,
                          int height)

setDialogLcation

public void setDialogLcation(int x,
                             int y)

getDataTable

public JAXDataTable getDataTable()
Returns the data table.

Specified by:
getDataTable in interface ListVisualizer

removeTab

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

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

addTab

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

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

addTab

public void addTab(Type type,
                   int index)
Add a tab for the passed type.

Parameters:
type - type to add as tab

selectTab

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

Parameters:
type - type to select within tabbed pane

getSelectedTabVisualizer

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


stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

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
Parameters:
event - occured DOMChangeEvent

popupMenuCanceled

public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuCanceled in interface javax.swing.event.PopupMenuListener

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListener

popupMenuWillBecomeVisible

public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListener

setVisible

public void setVisible(boolean visible)
Description copied from interface: Visualizer
Sets the view component visible or not visible.

Specified by:
setVisible in interface Visualizer
Overrides:
setVisible in class AbstractView
Parameters:
visible - visibility of the visualizer
See Also:
Component.setVisible(boolean)

setDeleteActionEnabled

public void setDeleteActionEnabled(boolean enabled)

setAddActionEnabled

public void setAddActionEnabled(boolean enabled)

setCopyActionEnabled

public void setCopyActionEnabled(boolean enabled)

setCopyContentActionEnabled

public void setCopyContentActionEnabled(boolean enabled)

setEditActionEnabled

public void setEditActionEnabled(boolean enabled)

setMoveUpActionEnabled

public void setMoveUpActionEnabled(boolean enabled)

setMoveDownActionEnabled

public void setMoveDownActionEnabled(boolean enabled)

setPasteContentActionEnabled

public void setPasteContentActionEnabled(boolean enabled)

resetView

public void resetView()
Selects the visualizer for the given model (type) in the table.

Specified by:
resetView in interface ListVisualizer
Parameters:
model - the given model
isUserAction - defines if the user visually clicked with the mouse on a selection

getButtonListeners

public java.util.List getButtonListeners(boolean build)

fireButtonListeners

public void fireButtonListeners(int actionType,
                                java.awt.event.ActionEvent ae)

addEditListener

public boolean addEditListener(java.awt.event.ActionListener listener)

addAddListener

public boolean addAddListener(java.awt.event.ActionListener listener)

addDeleteListener

public boolean addDeleteListener(java.awt.event.ActionListener listener)

addCopyListener

public boolean addCopyListener(java.awt.event.ActionListener listener)

addMoveUpListener

public boolean addMoveUpListener(java.awt.event.ActionListener listener)

addMoveDownListener

public boolean addMoveDownListener(java.awt.event.ActionListener listener)

removeAddListener

public void removeAddListener(java.awt.event.ActionListener listener)

removeDeleteListener

public void removeDeleteListener(java.awt.event.ActionListener listener)

removeCopyListener

public void removeCopyListener(java.awt.event.ActionListener listener)

removeMoveUpListener

public void removeMoveUpListener(java.awt.event.ActionListener listener)

removeMoveDownListener

public void removeMoveDownListener(java.awt.event.ActionListener listener)

stopCellEditing

public void stopCellEditing()

getListModel

public ListType getListModel()
Specified by:
getListModel in interface ListVisualizer

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class AbstractView
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener