|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.TextElideMode>
com.trolltech.qt.core.Qt.TextElideMode
public static enum Qt.TextElideMode
This enum specifies where the ellipsis should appear when displaying texts that don't fit.
Constant | Value | Description |
---|---|---|
ElideLeft | 0 | The ellipsis should appear at the beginning of the text. |
ElideRight | 1 | The ellipsis should appear at the end of the text. |
ElideMiddle | 2 | The ellipsis should appear in the middle of the text. |
ElideNone | 3 | Ellipsis should NOT appear in the text. |
Qt::ElideMiddle is normally the most appropriate choice for URLs (e.g., "http://www.troll...ovingto/beijing/"), whereas Qt::ElideRight is appropriate for other strings (e.g., "Deploying Applications on Ma...").
Enum Constant Summary | |
---|---|
ElideLeft
The ellipsis should appear at the beginning of the text. |
|
ElideMiddle
The ellipsis should appear in the middle of the text. |
|
ElideNone
Ellipsis should NOT appear in the text. |
|
ElideRight
The ellipsis should appear at the end of the text. |
Method Summary | |
---|---|
static Qt.TextElideMode |
resolve(int value)
|
int |
value()
|
static Qt.TextElideMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.TextElideMode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Qt.TextElideMode ElideLeft
The ellipsis should appear at the beginning of the text.
public static final Qt.TextElideMode ElideRight
The ellipsis should appear at the end of the text.
public static final Qt.TextElideMode ElideMiddle
The ellipsis should appear in the middle of the text.
public static final Qt.TextElideMode ElideNone
Ellipsis should NOT appear in the text.
Method Detail |
---|
public static final Qt.TextElideMode[] values()
for(Qt.TextElideMode c : Qt.TextElideMode.values()) System.out.println(c);
public static Qt.TextElideMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
value
in interface QtEnumerator
public static Qt.TextElideMode resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |