|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QLineEdit
com.sibvisions.rad.ui.qt.ext.QVxLineEdit
com.sibvisions.rad.ui.qt.ext.QVxChoice
public class QVxChoice
A Choice editor can display and switch several values as Image. This is more flexible than QRadioButton or QCheckBox, because it can be configured which items should be returned and which images should be displayed instead.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QLineEdit |
|---|
QLineEdit.EchoMode, QLineEdit.TextMargins |
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
|---|
QWidget.RenderFlag, QWidget.RenderFlags |
| Nested classes/interfaces inherited from class com.trolltech.qt.QtJambiObject |
|---|
QtJambiObject.QPrivateConstructor |
| Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
|---|
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1<A>, QSignalEmitter.PrivateSignal2<A,B>, QSignalEmitter.PrivateSignal3<A,B,C>, QSignalEmitter.PrivateSignal4<A,B,C,D>, QSignalEmitter.PrivateSignal5<A,B,C,D,E>, QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
| Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
|---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
| Field Summary | |
|---|---|
QSignalEmitter.Signal0 |
changed
the signal for the information that the item was changed. |
QSignalEmitter.Signal1<Object> |
itemDeselect
the signal for deselecting an item (takes <Object> as parameter, for the deselected value). |
QSignalEmitter.Signal1<Object> |
itemSelect
the signal for selecting a new item (takes <Object> as parameter, for the selected value). |
| Fields inherited from class com.trolltech.qt.gui.QLineEdit |
|---|
cursorPositionChanged, editingFinished, returnPressed, selectionChanged, textChanged, textEdited |
| Fields inherited from class com.trolltech.qt.gui.QWidget |
|---|
customContextMenuRequested |
| Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
|---|
currentSender |
| Constructor Summary | |
|---|---|
QVxChoice()
Constructs a new QVxChoice component. |
|
QVxChoice(Object[] pAllowedValues,
QPixmap[] pImages)
Constructs a new QVxChoice with the given allowed values and image names. |
|
QVxChoice(Object[] pAllowedValues,
QPixmap[] pImages,
QWidget pParent)
Constructs a new QVxChoice with the given allowed values, image names and a specific parent widget. |
|
QVxChoice(QWidget pParent)
Constructs a new QVxChoice component with a specifig parent widget. |
|
| Method Summary | |
|---|---|
Object[] |
getAllowedValues()
Gets all allowed values. |
QColor |
getBackground()
Gets the current background color. |
QPixmap |
getDefaultImage()
Gets the default image that is shown if selectedIndex is -1. |
Qt.AlignmentFlag |
getHorizontalAlignment()
Gets the horizontal alignment of the icon. |
QPixmap[] |
getImages()
Gets the images that are used for displaying the values. |
QSize |
getImageSize()
Returns the image size. |
QColor |
getInnerBackground()
Gets the inner background. |
QRect |
getInnerBounds()
Gets the inner bounds of the editor for the outer editor bounds. |
protected QRect |
getInnerBounds(QRect pRect)
Returns the inner bounds of the choice component. |
int |
getSelectedIndex()
Gets the selected index, or -1 if no value is selected. |
Object |
getSelectedItem()
Gets the current selected value, or null, if no one is selected. |
Qt.AlignmentFlag |
getVerticalAlignment()
Gets the vertical alignment of the icon. |
boolean |
isImageBorderVisible()
Gets the inner border. |
void |
keyReleaseEvent(QKeyEvent pEvent)
|
QSize |
minimumSizeHint()
|
void |
mouseDoubleClickEvent(QMouseEvent pEvent)
|
void |
mouseMoveEvent(QMouseEvent pEvent)
|
void |
mousePressEvent(QMouseEvent pEvent)
|
protected void |
paint(QPainter pPainter,
QRect pRect)
Paints the choice with a specific painter and bounds. |
protected void |
paintEvent(QPaintEvent pEvent)
|
void |
selectNextIndex()
Selects the next index. |
void |
setAllowedValues(Object[] pAllowedValues)
Sets all allowed values. |
void |
setBackground(QColor pBackground)
Sets the background color of the editor. |
void |
setDefaultImage(QPixmap pDefaultImage)
Sets the default image that is shown if selectedIndex is -1. |
void |
setHorizontalAlignment(Qt.AlignmentFlag pHorizontalAlignment)
Sets the horizontal alignment of the icon. |
void |
setImageBorderVisible(boolean pImageBorderVisible)
sets the inner border. |
void |
setImages(QPixmap[] pImages)
Sets the images that are used for displaying the values. |
void |
setImageSize(QSize pImageSize)
Returns the image size. |
void |
setInnerBackground(QColor pInnerBackground)
sets the inner background. |
void |
setSelectedIndex(int pSelectedIndex)
Sets the selected index. |
void |
setSelectedItem(Object pSelectedItem)
Sets the value that should be selected. |
void |
setVerticalAlignment(Qt.AlignmentFlag pVerticalAlignment)
Sets the vertical alignment of the icon. |
QSize |
sizeHint()
|
| Methods inherited from class com.sibvisions.rad.ui.qt.ext.QVxLineEdit |
|---|
getColumns, getColumnWidth, isMaximumSizeHintSet, isMinimumSizeHintSet, isSizeHintSet, maximumSizeHint, setColumns, setMaximumSizeHint, setMinimumSizeHint, setSizeHint |
| Methods inherited from class com.trolltech.qt.core.QObject |
|---|
blockSignals, childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, toString, userProperty |
| Methods inherited from class com.trolltech.qt.QtJambiObject |
|---|
disableGarbageCollection, dispose, disposed, equals, finalize, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr |
| Methods inherited from class com.trolltech.qt.QSignalEmitter |
|---|
disconnect, disconnect, signalSender |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.trolltech.qt.QtJambiInterface |
|---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
| Field Detail |
|---|
public final QSignalEmitter.Signal1<Object> itemSelect
public final QSignalEmitter.Signal1<Object> itemDeselect
public final QSignalEmitter.Signal0 changed
| Constructor Detail |
|---|
public QVxChoice()
public QVxChoice(QWidget pParent)
pParent - the parent widget
public QVxChoice(Object[] pAllowedValues,
QPixmap[] pImages)
pAllowedValues - the allowed values.pImages - the images.
public QVxChoice(Object[] pAllowedValues,
QPixmap[] pImages,
QWidget pParent)
pAllowedValues - the allowed values.pImages - the images.pParent - the parent widget| Method Detail |
|---|
protected void paintEvent(QPaintEvent pEvent)
paintEvent in class QLineEditpublic QSize sizeHint()
sizeHint in class QVxLineEditpublic QSize minimumSizeHint()
minimumSizeHint in class QVxLineEditpublic void mousePressEvent(QMouseEvent pEvent)
mousePressEvent in class QLineEditpublic void mouseDoubleClickEvent(QMouseEvent pEvent)
mouseDoubleClickEvent in class QLineEditpublic void keyReleaseEvent(QKeyEvent pEvent)
keyReleaseEvent in class QWidgetpublic void mouseMoveEvent(QMouseEvent pEvent)
mouseMoveEvent in class QLineEdit
protected void paint(QPainter pPainter,
QRect pRect)
pPainter - the painterpRect - the boundspublic QColor getInnerBackground()
public void setInnerBackground(QColor pInnerBackground)
pInnerBackground - the inner background.public boolean isImageBorderVisible()
public void setImageBorderVisible(boolean pImageBorderVisible)
pImageBorderVisible - the inner border.public Object[] getAllowedValues()
public void setAllowedValues(Object[] pAllowedValues)
pAllowedValues - all allowed values.public QPixmap[] getImages()
public void setImages(QPixmap[] pImages)
pImages - the images.public QSize getImageSize()
public void setImageSize(QSize pImageSize)
pImageSize - the size the images should have.public QRect getInnerBounds()
protected QRect getInnerBounds(QRect pRect)
pRect - the bounds of the choice editor
public QPixmap getDefaultImage()
public void setDefaultImage(QPixmap pDefaultImage)
pDefaultImage - the default image.public Qt.AlignmentFlag getVerticalAlignment()
public void setVerticalAlignment(Qt.AlignmentFlag pVerticalAlignment)
pVerticalAlignment - the alignmentpublic Qt.AlignmentFlag getHorizontalAlignment()
public void setHorizontalAlignment(Qt.AlignmentFlag pHorizontalAlignment)
pHorizontalAlignment - the alignmentpublic int getSelectedIndex()
public void setSelectedIndex(int pSelectedIndex)
pSelectedIndex - the index to select.public void selectNextIndex()
public Object getSelectedItem()
public void setSelectedItem(Object pSelectedItem)
pSelectedItem - the value to select.public void setBackground(QColor pBackground)
pBackground - the colorpublic QColor getBackground()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||