|
||||||||||
| 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.JComboBox
com.sibvisions.rad.ui.swing.ext.JVxComboBase
public class JVxComboBase
JVxComboBase is a generic component for displaying
any editor component combined with any popup component. The combo
base has always an editor component, to copy the text out of it.
| Nested Class Summary | |
|---|---|
static class |
JVxComboBase.GenericComboBoxEditor
Generic Editor that allows the changing the EditorComponent. |
| Nested classes/interfaces inherited from class javax.swing.JComboBox |
|---|
javax.swing.JComboBox.AccessibleJComboBox, javax.swing.JComboBox.KeySelectionManager |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComboBox |
|---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
JVxComboBase()
Creates a new instance of JVxComboBase with a default editor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent pActionEvent)
|
void |
contentsChanged(javax.swing.event.ListDataEvent pListDataEvent)
|
javax.swing.text.JTextComponent |
getEditorComponent()
Returns the editor component. |
java.lang.Object |
getItemAt(int index)
|
int |
getItemCount()
|
javax.swing.JComponent |
getPopupComponent()
Returns the popup component. |
java.awt.Dimension |
getPopupSize()
Gets the size of the Popup window using a Dimension object. |
int |
getSelectedIndex()
|
java.lang.Object |
getSelectedItem()
|
TranslationMap |
getTranslation()
Gets the possible translation mapping. |
void |
intervalAdded(javax.swing.event.ListDataEvent pListDataEvent)
|
void |
intervalRemoved(javax.swing.event.ListDataEvent pListDataEvent)
|
boolean |
isEditorEditable()
Gets true, if the editor is editable. |
boolean |
isForceFocusOnPopup()
Gets if the focus is forced to be given on the popup. |
boolean |
isPopupCanceled()
True, if popup is canceled, or popup is set as canceled. |
boolean |
isPopupFocusEvent(java.awt.event.FocusEvent pFocusEvent)
True, if FocusEvent is caused from the Popup. |
boolean |
isPopupVisible()
Returns the visibility of the choice component. |
boolean |
isTranslationEnabled()
Gets whether the translation is en- or disabled. |
void |
keyPressed(java.awt.event.KeyEvent pKeyEvent)
|
void |
keyReleased(java.awt.event.KeyEvent pKeyEvent)
|
void |
keyTyped(java.awt.event.KeyEvent pKeyEvent)
|
void |
mouseClicked(java.awt.event.MouseEvent pMouseEvent)
|
void |
mouseEntered(java.awt.event.MouseEvent pMouseEvent)
|
void |
mouseExited(java.awt.event.MouseEvent pMouseEvent)
|
void |
mousePressed(java.awt.event.MouseEvent pMouseEvent)
|
void |
mouseReleased(java.awt.event.MouseEvent pMouseEvent)
|
void |
popupMenuCanceled(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
|
void |
removeNotify()
|
protected void |
selectedItemChanged()
|
void |
setButtonEnabled(boolean pButtonEnabled)
Sets the Button enabled or not. |
void |
setEditable(boolean pEditable)
|
void |
setEditor(javax.swing.ComboBoxEditor pEditor)
|
void |
setEditorComponent(javax.swing.text.JTextComponent pEditorComponent)
Sets the editor component. |
void |
setEditorEditable(boolean pEditable)
Sets true, if the editor is editable. |
void |
setForceFocusOnPopup(boolean pForceFocusOnPopup)
Gets if the focus is forced to be given on the popup. |
void |
setPopupCanceled(boolean pPopupCanceled)
True, if popup should close in canceled mode. |
void |
setPopupComponent(javax.swing.JComponent pPopupComponent)
Sets the popup component. |
void |
setPopupSize(java.awt.Dimension pPopupSize)
Sets the size of the Popup window using a Dimension object. |
void |
setPopupVisible(boolean pPopupVisible)
Sets the visibility of the choice component. |
void |
setSelectedIndex(int pIndex)
|
void |
setSelectedItem(java.lang.Object pSelectedItem)
|
void |
setTranslation(TranslationMap pTranslation)
Sets the possible translations. |
void |
setTranslationEnabled(boolean pEnabled)
Sets the translation en- or disabled. |
void |
setUI(javax.swing.plaf.ComboBoxUI pComboBoxUI)
|
void |
setVisible(boolean pVisible)
|
void |
windowActivated(java.awt.event.WindowEvent pWindowEvent)
|
void |
windowClosed(java.awt.event.WindowEvent pWindowEvent)
|
void |
windowClosing(java.awt.event.WindowEvent pWindowEvent)
|
void |
windowDeactivated(java.awt.event.WindowEvent pWindowEvent)
|
void |
windowDeiconified(java.awt.event.WindowEvent pWindowEvent)
|
void |
windowIconified(java.awt.event.WindowEvent pWindowEvent)
|
void |
windowOpened(java.awt.event.WindowEvent pWindowEvent)
|
| Methods inherited from class javax.swing.JComboBox |
|---|
actionPropertyChanged, addActionListener, addItem, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedObjects, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, isEditable, isLightWeightPopupEnabled, paramString, processKeyEvent, removeActionListener, removeAllItems, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectWithKeyChar, setAction, setActionCommand, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPrototypeDisplayValue, setRenderer, showPopup, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JVxComboBase()
JVxComboBase with a default editor.
| Method Detail |
|---|
public void mouseClicked(java.awt.event.MouseEvent pMouseEvent)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent pMouseEvent)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent pMouseEvent)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent pMouseEvent)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent pMouseEvent)
mouseReleased in interface java.awt.event.MouseListenerpublic void keyPressed(java.awt.event.KeyEvent pKeyEvent)
keyPressed in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent pKeyEvent)
keyTyped in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent pKeyEvent)
keyReleased in interface java.awt.event.KeyListenerpublic void windowActivated(java.awt.event.WindowEvent pWindowEvent)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent pWindowEvent)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent pWindowEvent)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent pWindowEvent)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent pWindowEvent)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent pWindowEvent)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent pWindowEvent)
windowOpened in interface java.awt.event.WindowListenerpublic void actionPerformed(java.awt.event.ActionEvent pActionEvent)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class javax.swing.JComboBoxpublic void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListenerpublic void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListenerpublic boolean isPopupCanceled()
public void setPopupCanceled(boolean pPopupCanceled)
pPopupCanceled - True, if popup should close in canceled mode.public void popupMenuCanceled(javax.swing.event.PopupMenuEvent pPopupMenuEvent)
popupMenuCanceled in interface javax.swing.event.PopupMenuListenerpublic void setTranslation(TranslationMap pTranslation)
setTranslation in interface ITranslatablepTranslation - the translation mappingpublic TranslationMap getTranslation()
getTranslation in interface ITranslatablepublic void setTranslationEnabled(boolean pEnabled)
setTranslationEnabled in interface ITranslatablepEnabled - true to enable the translation, false to disablepublic boolean isTranslationEnabled()
isTranslationEnabled in interface ITranslatabletrue if translation is performed, false otherwisepublic java.lang.Object getSelectedItem()
getSelectedItem in class javax.swing.JComboBoxpublic void setSelectedItem(java.lang.Object pSelectedItem)
setSelectedItem in class javax.swing.JComboBoxprotected void selectedItemChanged()
selectedItemChanged in class javax.swing.JComboBoxpublic void contentsChanged(javax.swing.event.ListDataEvent pListDataEvent)
contentsChanged in interface javax.swing.event.ListDataListenercontentsChanged in class javax.swing.JComboBoxpublic void intervalAdded(javax.swing.event.ListDataEvent pListDataEvent)
intervalAdded in interface javax.swing.event.ListDataListenerintervalAdded in class javax.swing.JComboBoxpublic void intervalRemoved(javax.swing.event.ListDataEvent pListDataEvent)
intervalRemoved in interface javax.swing.event.ListDataListenerintervalRemoved in class javax.swing.JComboBoxpublic int getSelectedIndex()
getSelectedIndex in class javax.swing.JComboBoxpublic void setSelectedIndex(int pIndex)
setSelectedIndex in class javax.swing.JComboBoxpublic int getItemCount()
getItemCount in class javax.swing.JComboBoxpublic java.lang.Object getItemAt(int index)
getItemAt in class javax.swing.JComboBoxpublic void setUI(javax.swing.plaf.ComboBoxUI pComboBoxUI)
setUI in class javax.swing.JComboBoxpublic void setEditable(boolean pEditable)
setEditable in class javax.swing.JComboBoxpublic boolean isEditorEditable()
public void setEditorEditable(boolean pEditable)
pEditable - true, if the editor is editable.public void setButtonEnabled(boolean pButtonEnabled)
pButtonEnabled - the Button enabled or not.public void setPopupVisible(boolean pPopupVisible)
setPopupVisible in class javax.swing.JComboBoxpPopupVisible - the visibility of the choice componentpublic void setEditor(javax.swing.ComboBoxEditor pEditor)
setEditor in class javax.swing.JComboBoxpublic void setVisible(boolean pVisible)
setVisible in class javax.swing.JComponentpublic void removeNotify()
removeNotify in class javax.swing.JComponentpublic java.awt.Dimension getPopupSize()
Dimension object.
Null means, that the Popup window opens with preferredSize.
public void setPopupSize(java.awt.Dimension pPopupSize)
Dimension object.
Null means, that the Popup window opens with preferredSize.
pPopupSize - the Popup size of.public boolean isForceFocusOnPopup()
public void setForceFocusOnPopup(boolean pForceFocusOnPopup)
pForceFocusOnPopup - the focus is forced to be given on the popup.public boolean isPopupVisible()
isPopupVisible in class javax.swing.JComboBoxpublic boolean isPopupFocusEvent(java.awt.event.FocusEvent pFocusEvent)
pFocusEvent - the focus event.
public javax.swing.text.JTextComponent getEditorComponent()
public void setEditorComponent(javax.swing.text.JTextComponent pEditorComponent)
pEditorComponent - the editor componentpublic javax.swing.JComponent getPopupComponent()
public void setPopupComponent(javax.swing.JComponent pPopupComponent)
pPopupComponent - the popup component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||