|
||||||||||
| 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.JComponentComponent.getSize(java.awt.Dimension)public void markError()
AbstractSimpleTypeView
markError in interface VisualizermarkError in class AbstractSimpleTypeViewVisualizer.markError()public void populateModel()
Visualizer
populateModel in interface VisualizerpopulateModel in class AbstractSimpleTypeViewVisualizer.populateModel()public void populateView()
Visualizer
populateView in interface VisualizerpopulateView in class AbstractViewVisualizer.populateView()public void resetError()
Visualizer
resetError in interface VisualizerresetError in class AbstractSimpleTypeViewVisualizer.resetError()public void setLabelColor(java.awt.Color color)
Visualizer
setLabelColor in interface VisualizersetLabelColor in class AbstractSimpleTypeViewcolor - label foreground colorVisualizer.setLabelColor(java.awt.Color)public void setRequired(boolean required)
Visualizer
setRequired in interface VisualizersetRequired in class AbstractSimpleTypeViewrequired - indicates if a visualizer requires user inputVisualizer.setRequired(boolean)public void setApplicationRequired(boolean required)
Visualizer
setApplicationRequired in interface VisualizersetApplicationRequired in class AbstractSimpleTypeViewrequired - indicates if a visualizer required user inputVisualizer.setApplicationRequired(boolean)public void showLabel(boolean show)
Visualizer
showLabel in interface VisualizershowLabel in class AbstractViewshow - visibility of the labelVisualizer.showLabel(boolean)public void createRecursion()
createRecursion in interface RecursionVisualizerpublic Document getDOM()
AbstractView
getDOM in class AbstractViewpublic Type getModel()
Visualizer
getModel in interface VisualizergetModel in class AbstractViewVisualizer.getModel()public void deleteRecursion()
deleteRecursion in interface RecursionVisualizerpublic javax.swing.JPanel getRecursionPanel()
public void jumpTo()
Visualizer
jumpTo in interface VisualizerjumpTo in class AbstractViewpublic void postInitialization()
Visualizer
postInitialization in interface VisualizerpostInitialization in class AbstractViewpublic void setEditable(boolean enabled)
Visualizer
setEditable in interface VisualizersetEditable in class AbstractSimpleTypeViewenabled - enable/disable this visualizerVisualizer.setEditable(boolean)public void setVisible(boolean visible)
Visualizer
setVisible in interface VisualizersetVisible in class AbstractViewvisible - visibility of the visualizerComponent.setVisible(boolean)public void setEnabled(boolean enabled)
Visualizer
setEnabled in interface VisualizersetEnabled in class AbstractSimpleTypeViewenabled - enable/disable this visualizerComponent.setEnabled(boolean)public java.lang.String getText()
SimpleTypeVisualizer
getText in interface SimpleTypeVisualizergetText in class AbstractSimpleTypeViewpublic Type getContext()
getContext in interface VisualizergetContext in class AbstractView
public void showTab(Type type,
java.lang.Object component)
TabbableView
showTab in interface TabbableViewcomponent - of the tab to be shownpublic Type getSelectedTabType()
getSelectedTabType in interface TabbableViewpublic javax.swing.JComponent getEditorField()
SimpleTypeVisualizer
getEditorField in interface SimpleTypeVisualizergetEditorField in class AbstractSimpleTypeView
public void showHint(java.lang.String text,
boolean isFormula,
java.awt.Color color,
boolean isBold)
AbstractView
showHint in class AbstractViewtext - 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 bold
public void setCodeSetValues(java.lang.String url,
java.lang.String codeSetName,
java.lang.String[] values,
java.lang.String defaultSelection)
AbstractView
setCodeSetValues in class AbstractViewurl - 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 AbstractViewpublic void removeMessage()
AbstractView
removeMessage in class AbstractViewpublic void setBackground(java.awt.Color color)
setBackground in class AbstractSimpleTypeViewComponent.setBackground(java.awt.Color)public void setForeground(java.awt.Color color)
setForeground in class AbstractSimpleTypeViewComponent.setForeground(java.awt.Color)public void setToolTipText(java.lang.String text)
setToolTipText in class javax.swing.JComponentpublic void setFont(java.awt.Font font)
setFont in class javax.swing.JComponentpublic java.awt.Component getFirstFocusableComponent()
AbstractView
getFirstFocusableComponent in class AbstractViewpublic javax.swing.JPanel getEditorComponentPanel()
AbstractView
getEditorComponentPanel in class AbstractViewpublic void selectType(Type type)
ListVisualizer
selectType in interface ListVisualizerpublic javax.swing.JDialog getEditDialog(Type selectedType)
getEditDialog in interface ListVisualizerselectedType - a given type
public JAXDataTable getDataTable()
ListVisualizer
getDataTable in interface ListVisualizerpublic void addTab(Type type)
addTab in interface ListVisualizerpublic void removeTab(Type type)
removeTab in interface ListVisualizerpublic void showUpDownButtons(boolean showUpDownButtons)
ListVisualizer
showUpDownButtons in interface ListVisualizershowUpDownButtons - true if the buttons should be shownpublic Visualizer getImplementation()
getImplementation in interface VisualizergetImplementation in class AbstractViewpublic void resetView()
resetView in interface ListVisualizerpublic void requestFocus()
requestFocus in class javax.swing.JComponentpublic void showModel(Type type)
ListVisualizer
showModel in interface ListVisualizertype - to visualizepublic void addToRecursionPanel(Visualizer comp)
addToRecursionPanel in interface RecursionVisualizerpublic void expand(boolean expand)
expand in interface RecursionVisualizerpublic ListType getListModel()
getListModel in interface ListVisualizerpublic void release()
Visualizer
release in interface Visualizerrelease in class AbstractSimpleTypeViewVisualizer.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 | |||||||||