|
||||||||||
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.AbstractListTypeView
com.jaxfront.swing.ui.beans.AbstractListVisualizer
public abstract class AbstractListVisualizer
This class is a template to write its own list visualizer component.
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 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 |
---|
public AbstractListVisualizer(Type type)
type
- the type for which this visualizer will be createdMethod Detail |
---|
public abstract javax.swing.JDialog getEditDialog(Type selectedType)
getEditDialog
in interface ListVisualizer
getEditDialog
in class AbstractListTypeView
selectedType
- a given type
public abstract javax.swing.JDialog getEditDialog(Type selectedType, boolean isAdding)
getEditDialog
in class AbstractListTypeView
selectedType
- a given typeisAdding
- indicates if dialog is made for adding a new list entry
public abstract Type getSelectedType()
getSelectedType
in interface ListVisualizer
getSelectedType
in class AbstractListTypeView
public abstract java.util.Vector getSelectedTypes()
getSelectedTypes
in class AbstractListTypeView
public abstract void removeButtonPanel()
removeButtonPanel
in class AbstractListTypeView
public abstract void showUpDownButtons(boolean showUpDownButtons)
showUpDownButtons
in interface ListVisualizer
showUpDownButtons
in class AbstractListTypeView
showUpDownButtons
- true if the buttons should be shownpublic abstract JAXDataTable getDataTable()
getDataTable
in interface ListVisualizer
getDataTable
in class AbstractListTypeView
public abstract void removeTab(Type type)
removeTab
in interface ListVisualizer
removeTab
in class AbstractListTypeView
type
- type to removepublic abstract void addTab(Type type)
addTab
in interface ListVisualizer
addTab
in class AbstractListTypeView
type
- type to add as tabpublic abstract void selectTab(Type type)
selectTab
in class AbstractListTypeView
type
- type to select within tabbed panepublic abstract Visualizer getSelectedTabVisualizer()
getSelectedTabVisualizer
in class AbstractListTypeView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |