|
||||||||||
| 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 |
|---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, 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(ActionEvent pActionEvent)
|
void |
contentsChanged(ListDataEvent pListDataEvent)
|
JTextComponent |
getEditorComponent()
Returns the editor component. |
Object |
getItemAt(int index)
|
int |
getItemCount()
|
JComponent |
getPopupComponent()
Returns the popup component. |
Dimension |
getPopupSize()
Gets the size of the Popup window using a Dimension object. |
int |
getSelectedIndex()
|
Object |
getSelectedItem()
|
TranslationMap |
getTranslation()
Gets the possible translation mapping for this UIComponent. |
void |
intervalAdded(ListDataEvent pListDataEvent)
|
void |
intervalRemoved(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(FocusEvent pFocusEvent)
True, if FocusEvent is caused from the Popup. |
boolean |
isPopupVisible()
Returns the visibility of the choice component. |
void |
keyPressed(KeyEvent pKeyEvent)
|
void |
keyReleased(KeyEvent pKeyEvent)
|
void |
keyTyped(KeyEvent pKeyEvent)
|
void |
mouseClicked(MouseEvent pMouseEvent)
|
void |
mouseEntered(MouseEvent pMouseEvent)
|
void |
mouseExited(MouseEvent pMouseEvent)
|
void |
mousePressed(MouseEvent pMouseEvent)
|
void |
mouseReleased(MouseEvent pMouseEvent)
|
void |
popupMenuCanceled(PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeInvisible(PopupMenuEvent pPopupMenuEvent)
|
void |
popupMenuWillBecomeVisible(PopupMenuEvent pPopupMenuEvent)
|
void |
removeNotify()
|
protected void |
selectedItemChanged()
|
void |
setButtonEnabled(boolean pButtonEnabled)
Sets the Button enabled or not. |
void |
setEditable(boolean pEditable)
|
void |
setEditor(ComboBoxEditor pEditor)
|
void |
setEditorComponent(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(JComponent pPopupComponent)
Sets the popup component. |
void |
setPopupSize(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(Object pSelectedItem)
|
void |
setTranslation(TranslationMap pTranslation)
Sets the possible translations for this UIComponent. |
void |
setUI(ComboBoxUI pComboBoxUI)
|
void |
setVisible(boolean pVisible)
|
void |
windowActivated(WindowEvent pWindowEvent)
|
void |
windowClosed(WindowEvent pWindowEvent)
|
void |
windowClosing(WindowEvent pWindowEvent)
|
void |
windowDeactivated(WindowEvent pWindowEvent)
|
void |
windowDeiconified(WindowEvent pWindowEvent)
|
void |
windowIconified(WindowEvent pWindowEvent)
|
void |
windowOpened(WindowEvent pWindowEvent)
|
| 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(MouseEvent pMouseEvent)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent pMouseEvent)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent pMouseEvent)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent pMouseEvent)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent pMouseEvent)
mouseReleased in interface MouseListenerpublic void keyPressed(KeyEvent pKeyEvent)
keyPressed in interface KeyListenerpublic void keyTyped(KeyEvent pKeyEvent)
keyTyped in interface KeyListenerpublic void keyReleased(KeyEvent pKeyEvent)
keyReleased in interface KeyListenerpublic void windowActivated(WindowEvent pWindowEvent)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent pWindowEvent)
windowClosed in interface WindowListenerpublic void windowClosing(WindowEvent pWindowEvent)
windowClosing in interface WindowListenerpublic void windowDeactivated(WindowEvent pWindowEvent)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent pWindowEvent)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent pWindowEvent)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent pWindowEvent)
windowOpened in interface WindowListenerpublic void actionPerformed(ActionEvent pActionEvent)
actionPerformed in interface ActionListeneractionPerformed in class JComboBoxpublic void popupMenuWillBecomeVisible(PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeVisible in interface PopupMenuListenerpublic void popupMenuWillBecomeInvisible(PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeInvisible in interface PopupMenuListenerpublic boolean isPopupCanceled()
public void setPopupCanceled(boolean pPopupCanceled)
pPopupCanceled - True, if popup should close in canceled mode.public void popupMenuCanceled(PopupMenuEvent pPopupMenuEvent)
popupMenuCanceled in interface PopupMenuListenerpublic void setTranslation(TranslationMap pTranslation)
UIComponent.
setTranslation in interface ITranslatablepTranslation - the translation mappingpublic TranslationMap getTranslation()
UIComponent.
getTranslation in interface ITranslatablepublic Object getSelectedItem()
getSelectedItem in class JComboBoxpublic void setSelectedItem(Object pSelectedItem)
setSelectedItem in class JComboBoxprotected void selectedItemChanged()
selectedItemChanged in class JComboBoxpublic void contentsChanged(ListDataEvent pListDataEvent)
contentsChanged in interface ListDataListenercontentsChanged in class JComboBoxpublic void intervalAdded(ListDataEvent pListDataEvent)
intervalAdded in interface ListDataListenerintervalAdded in class JComboBoxpublic void intervalRemoved(ListDataEvent pListDataEvent)
intervalRemoved in interface ListDataListenerintervalRemoved in class JComboBoxpublic int getSelectedIndex()
getSelectedIndex in class JComboBoxpublic void setSelectedIndex(int pIndex)
setSelectedIndex in class JComboBoxpublic int getItemCount()
getItemCount in class JComboBoxpublic Object getItemAt(int index)
getItemAt in class JComboBoxpublic void setUI(ComboBoxUI pComboBoxUI)
setUI in class JComboBoxpublic void setEditable(boolean pEditable)
setEditable in class 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 JComboBoxpPopupVisible - the visibility of the choice componentpublic void setEditor(ComboBoxEditor pEditor)
setEditor in class JComboBoxpublic void setVisible(boolean pVisible)
setVisible in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic Dimension getPopupSize()
Dimension object.
Null means, that the Popup window opens with preferredSize.
public void setPopupSize(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 JComboBoxpublic boolean isPopupFocusEvent(FocusEvent pFocusEvent)
pFocusEvent - the focus event.
public JTextComponent getEditorComponent()
public void setEditorComponent(JTextComponent pEditorComponent)
pEditorComponent - the editor componentpublic JComponent getPopupComponent()
public void setPopupComponent(JComponent pPopupComponent)
pPopupComponent - the popup component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||