|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jaxfront.swing.ui.visualizers.AbstractView
com.jaxfront.swing.ui.visualizers.AbstractSimpleTypeView
com.jaxfront.swing.ui.wrapper.RecursionWrapper
public class RecursionWrapper
This class represents a RecursiveView which is derived from the class AbstractView. This class is responsible for the drawing of GUI elements for recursive types.
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.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 | |
---|---|
RecursionWrapper(Type type)
RecursiveView constructor. |
|
RecursionWrapper(Type type,
Type context)
RecursiveView constructor. |
Method Summary | |
---|---|
void |
addTab(Type type)
|
void |
addToRecursionPanel(Visualizer comp)
|
void |
createRecursion()
Creates recursion |
void |
deleteRecursion()
Delete recursion. |
void |
expand(boolean expand)
|
Type |
getContext()
|
JAXDataTable |
getDataTable()
Returns internal tabel representation. |
Document |
getDOM()
Returns the current JAXFront document (DOM). |
javax.swing.JDialog |
getEditDialog(Type selectedType)
Returns the edit dialog for a given type. |
javax.swing.JPanel |
getEditorComponentPanel()
Returns the component panel. |
javax.swing.JComponent |
getEditorField()
Returns the editorfield of the editor component of a AbstractSimpleTypeView. |
java.awt.Component |
getFirstFocusableComponent()
Returns the first focusable component of the current view which is needed to set the focus on the first component of a visualizer. |
Visualizer |
getImplementation()
|
ListType |
getListModel()
|
Type |
getModel()
Returns the model (type) of this visualizer. |
javax.swing.JPanel |
getRecursionPanel()
|
Type |
getSelectedTabType()
|
java.awt.Dimension |
getSize(java.awt.Dimension dim)
|
java.lang.String |
getText()
Returns the value of the component. |
void |
jumpTo()
Bring this visualizer to front and set the focus. |
void |
markError()
Marks the component with the defined ErrorColor if the value is not valid. |
void |
populateModel()
Updates the model (type) that belongs to this visualizer. |
void |
populateView()
Updates the view of this visualizer. |
void |
postInitialization()
Gets called after the UI factory has created this visualizer. |
void |
release()
Releases allocated resources for this visualizer. |
void |
removeHint()
Removes a user defined hint message below the current component. |
void |
removeMessage()
Removes the validation error message from this type. |
void |
removeTab(Type type)
|
void |
requestFocus()
|
void |
resetError()
Removes the error from this visualizer. |
void |
resetView()
|
void |
selectType(Type type)
Selects the requested type in the list. |
void |
selectType(Type type,
boolean isUserAction)
Selects the requested type in the list. |
void |
setApplicationRequired(boolean required)
Sets the view component to be required or not defined by the application not by xml schema. |
void |
setBackground(java.awt.Color color)
|
void |
setCodeSetValues(java.lang.String url,
java.lang.String codeSetName,
java.lang.String[] values,
java.lang.String defaultSelection)
Sets the codeSet values for the current type. |
void |
setDeleteable(boolean deleteable)
|
void |
setEditable(boolean enabled)
Sets the view component editable . |
void |
setEnabled(boolean enabled)
Sets the view component enabled or disabled. |
void |
setFont(java.awt.Font font)
|
void |
setForeground(java.awt.Color color)
|
void |
setLabelColor(java.awt.Color color)
Sets the foreground color for the label. |
void |
setRequired(boolean required)
Sets the view component to be required or not. |
void |
setToolTipText(java.lang.String text)
|
void |
setVisible(boolean visible)
Sets the view component visible or not visible. |
void |
showHint(java.lang.String text,
boolean isFormula,
java.awt.Color color,
boolean isBold)
Shows an user defined hint message below the current component. |
void |
showLabel(boolean show)
Sets the label of this visualizer visible or not visible. |
void |
showModel(Type type)
Shows the visualizer for the passed type within my list. |
void |
showTab(Type type,
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. |
Methods inherited from class com.jaxfront.swing.ui.visualizers.AbstractSimpleTypeView |
---|
focusGained, focusLost, getSimpleModel, itemStateChanged, keyPressed, keyReleased, keyTyped, removeLabel, setChoosenKeyContextValue, setEditorField |
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, 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, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, 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 |
---|
getLabelText, isViewReleased, removeLabel, setLabelText, setModel |
Methods inherited from interface com.jaxfront.core.ui.ListVisualizer |
---|
getSelectedType |
Methods inherited from interface com.jaxfront.core.ui.Visualizer |
---|
getLabelText, isViewReleased, removeLabel, setLabelText, setModel |
Methods inherited from interface com.jaxfront.core.ui.Visualizer |
---|
getLabelText, isViewReleased, removeLabel, setLabelText, setModel |
Constructor Detail |
---|
public RecursionWrapper(Type type)
type
- the underlying model (type)public RecursionWrapper(Type type, Type context)
type
- the underlying model (type)Method Detail |
---|
public void setDeleteable(boolean deleteable)
public java.awt.Dimension getSize(java.awt.Dimension dim)
getSize
in class javax.swing.JComponent
Component.getSize(java.awt.Dimension)
public void markError()
AbstractSimpleTypeView
markError
in interface Visualizer
markError
in class AbstractSimpleTypeView
Visualizer.markError()
public void populateModel()
Visualizer
populateModel
in interface Visualizer
populateModel
in class AbstractSimpleTypeView
Visualizer.populateModel()
public void populateView()
Visualizer
populateView
in interface Visualizer
populateView
in class AbstractView
Visualizer.populateView()
public void resetError()
Visualizer
resetError
in interface Visualizer
resetError
in class AbstractSimpleTypeView
Visualizer.resetError()
public void setLabelColor(java.awt.Color color)
Visualizer
setLabelColor
in interface Visualizer
setLabelColor
in class AbstractSimpleTypeView
color
- label foreground colorVisualizer.setLabelColor(java.awt.Color)
public void setRequired(boolean required)
Visualizer
setRequired
in interface Visualizer
setRequired
in class AbstractSimpleTypeView
required
- indicates if a visualizer requires user inputVisualizer.setRequired(boolean)
public void setApplicationRequired(boolean required)
Visualizer
setApplicationRequired
in interface Visualizer
setApplicationRequired
in class AbstractSimpleTypeView
required
- indicates if a visualizer required user inputVisualizer.setApplicationRequired(boolean)
public void showLabel(boolean show)
Visualizer
showLabel
in interface Visualizer
showLabel
in class AbstractView
show
- visibility of the labelVisualizer.showLabel(boolean)
public void createRecursion()
createRecursion
in interface RecursionVisualizer
public Document getDOM()
AbstractView
getDOM
in class AbstractView
public Type getModel()
Visualizer
getModel
in interface Visualizer
getModel
in class AbstractView
Visualizer.getModel()
public void deleteRecursion()
deleteRecursion
in interface RecursionVisualizer
public javax.swing.JPanel getRecursionPanel()
public void jumpTo()
Visualizer
jumpTo
in interface Visualizer
jumpTo
in class AbstractView
public void postInitialization()
Visualizer
postInitialization
in interface Visualizer
postInitialization
in class AbstractView
public void setEditable(boolean enabled)
Visualizer
setEditable
in interface Visualizer
setEditable
in class AbstractSimpleTypeView
enabled
- enable/disable this visualizerVisualizer.setEditable(boolean)
public void setVisible(boolean visible)
Visualizer
setVisible
in interface Visualizer
setVisible
in class AbstractView
visible
- visibility of the visualizerComponent.setVisible(boolean)
public void setEnabled(boolean enabled)
Visualizer
setEnabled
in interface Visualizer
setEnabled
in class AbstractSimpleTypeView
enabled
- enable/disable this visualizerComponent.setEnabled(boolean)
public java.lang.String getText()
SimpleTypeVisualizer
getText
in interface SimpleTypeVisualizer
getText
in class AbstractSimpleTypeView
public Type getContext()
getContext
in interface Visualizer
getContext
in class AbstractView
public void showTab(Type type, java.lang.Object component)
TabbableView
showTab
in interface TabbableView
component
- of the tab to be shownpublic Type getSelectedTabType()
getSelectedTabType
in interface TabbableView
public javax.swing.JComponent getEditorField()
SimpleTypeVisualizer
getEditorField
in interface SimpleTypeVisualizer
getEditorField
in class AbstractSimpleTypeView
public void showHint(java.lang.String text, boolean isFormula, java.awt.Color color, boolean isBold)
AbstractView
showHint
in class AbstractView
text
- a hint text or a formula expressionisFormula
- true, if the hint text should be treated as formula expressioncolor
- the color of the hint textisBold
- true, if the hint text should be displayed boldpublic void setCodeSetValues(java.lang.String url, java.lang.String codeSetName, java.lang.String[] values, java.lang.String defaultSelection)
AbstractView
setCodeSetValues
in class AbstractView
url
- the url of the codeSet to be setcodeSetName
- the name of the codeSet to be setvalues
- the values of the codeSetdefaultSelection
- the default selected code of the codesetpublic void removeHint()
AbstractView
removeHint
in class AbstractView
public void removeMessage()
AbstractView
removeMessage
in class AbstractView
public void setBackground(java.awt.Color color)
setBackground
in class AbstractSimpleTypeView
Component.setBackground(java.awt.Color)
public void setForeground(java.awt.Color color)
setForeground
in class AbstractSimpleTypeView
Component.setForeground(java.awt.Color)
public void setToolTipText(java.lang.String text)
setToolTipText
in class javax.swing.JComponent
public void setFont(java.awt.Font font)
setFont
in class javax.swing.JComponent
public java.awt.Component getFirstFocusableComponent()
AbstractView
getFirstFocusableComponent
in class AbstractView
public javax.swing.JPanel getEditorComponentPanel()
AbstractView
getEditorComponentPanel
in class AbstractView
public void selectType(Type type)
ListVisualizer
selectType
in interface ListVisualizer
public javax.swing.JDialog getEditDialog(Type selectedType)
getEditDialog
in interface ListVisualizer
selectedType
- a given type
public JAXDataTable getDataTable()
ListVisualizer
getDataTable
in interface ListVisualizer
public void addTab(Type type)
addTab
in interface ListVisualizer
public void removeTab(Type type)
removeTab
in interface ListVisualizer
public void showUpDownButtons(boolean showUpDownButtons)
ListVisualizer
showUpDownButtons
in interface ListVisualizer
showUpDownButtons
- true if the buttons should be shownpublic Visualizer getImplementation()
getImplementation
in interface Visualizer
getImplementation
in class AbstractView
public void resetView()
resetView
in interface ListVisualizer
public void requestFocus()
requestFocus
in class javax.swing.JComponent
public void showModel(Type type)
ListVisualizer
showModel
in interface ListVisualizer
type
- to visualizepublic void addToRecursionPanel(Visualizer comp)
addToRecursionPanel
in interface RecursionVisualizer
public void expand(boolean expand)
expand
in interface RecursionVisualizer
public ListType getListModel()
getListModel
in interface ListVisualizer
public void release()
Visualizer
release
in interface Visualizer
release
in class AbstractSimpleTypeView
Visualizer.release()
public void selectType(Type type, boolean isUserAction)
ListVisualizer
selectType
in interface ListVisualizer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |