|
||||||||||
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 MouseListener
public void mouseEntered(MouseEvent pMouseEvent)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent pMouseEvent)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent pMouseEvent)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent pMouseEvent)
mouseReleased
in interface MouseListener
public void keyPressed(KeyEvent pKeyEvent)
keyPressed
in interface KeyListener
public void keyTyped(KeyEvent pKeyEvent)
keyTyped
in interface KeyListener
public void keyReleased(KeyEvent pKeyEvent)
keyReleased
in interface KeyListener
public void windowActivated(WindowEvent pWindowEvent)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent pWindowEvent)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent pWindowEvent)
windowClosing
in interface WindowListener
public void windowDeactivated(WindowEvent pWindowEvent)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent pWindowEvent)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent pWindowEvent)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent pWindowEvent)
windowOpened
in interface WindowListener
public void actionPerformed(ActionEvent pActionEvent)
actionPerformed
in interface ActionListener
actionPerformed
in class JComboBox
public void popupMenuWillBecomeVisible(PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeVisible
in interface PopupMenuListener
public void popupMenuWillBecomeInvisible(PopupMenuEvent pPopupMenuEvent)
popupMenuWillBecomeInvisible
in interface PopupMenuListener
public boolean isPopupCanceled()
public void setPopupCanceled(boolean pPopupCanceled)
pPopupCanceled
- True, if popup should close in canceled mode.public void popupMenuCanceled(PopupMenuEvent pPopupMenuEvent)
popupMenuCanceled
in interface PopupMenuListener
public void setTranslation(TranslationMap pTranslation)
UIComponent
.
setTranslation
in interface ITranslatable
pTranslation
- the translation mappingpublic TranslationMap getTranslation()
UIComponent
.
getTranslation
in interface ITranslatable
public Object getSelectedItem()
getSelectedItem
in class JComboBox
public void setSelectedItem(Object pSelectedItem)
setSelectedItem
in class JComboBox
protected void selectedItemChanged()
selectedItemChanged
in class JComboBox
public void contentsChanged(ListDataEvent pListDataEvent)
contentsChanged
in interface ListDataListener
contentsChanged
in class JComboBox
public void intervalAdded(ListDataEvent pListDataEvent)
intervalAdded
in interface ListDataListener
intervalAdded
in class JComboBox
public void intervalRemoved(ListDataEvent pListDataEvent)
intervalRemoved
in interface ListDataListener
intervalRemoved
in class JComboBox
public int getSelectedIndex()
getSelectedIndex
in class JComboBox
public void setSelectedIndex(int pIndex)
setSelectedIndex
in class JComboBox
public int getItemCount()
getItemCount
in class JComboBox
public Object getItemAt(int index)
getItemAt
in class JComboBox
public void setUI(ComboBoxUI pComboBoxUI)
setUI
in class JComboBox
public void setEditable(boolean pEditable)
setEditable
in class JComboBox
public 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 JComboBox
pPopupVisible
- the visibility of the choice componentpublic void setEditor(ComboBoxEditor pEditor)
setEditor
in class JComboBox
public void setVisible(boolean pVisible)
setVisible
in class JComponent
public void removeNotify()
removeNotify
in class JComponent
public 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 JComboBox
public 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 |