java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QStandardItem
- All Implemented Interfaces:
QtObjectInterface
public class QStandardItem extends QtObject
Item for use with the QStandardItemModel class
Java wrapper for Qt class QStandardItem
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QStandardItem.ItemType
Java wrapper for Qt enum QStandardItem::ItemType -
Constructor Summary
Constructors Modifier Constructor Description QStandardItem()
QStandardItem(int rows)
Overloaded constructor forQStandardItem(int, int)
withcolumns = 1
.QStandardItem(int rows, int columns)
QStandardItem(QIcon icon, String text)
protected
QStandardItem(QStandardItem other)
protected
QStandardItem(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStandardItem(String text)
-
Method Summary
Modifier and Type Method Description String
accessibleDescription()
String
accessibleText()
void
appendColumn(Collection<QStandardItem> items)
void
appendRow(QStandardItem item)
void
appendRow(Collection<QStandardItem> items)
void
appendRows(Collection<QStandardItem> items)
QBrush
background()
Qt.CheckState
checkState()
QStandardItem
child(int row)
Overloaded function forchild(int, int)
withcolumn = 0
.QStandardItem
child(int row, int column)
void
clearData()
QStandardItem
clone()
int
column()
int
columnCount()
Object
data()
Overloaded function fordata(int)
withrole = 257
.Object
data(int role)
protected void
emitDataChanged()
Qt.ItemFlags
flags()
QFont
font()
QBrush
foreground()
boolean
hasChildren()
boolean
hasLessTextThan(QStandardItem other)
QIcon
icon()
QModelIndex
index()
void
insertColumn(int column, Collection<QStandardItem> items)
void
insertColumns(int column, int count)
void
insertRow(int row, QStandardItem item)
void
insertRow(int row, Collection<QStandardItem> items)
void
insertRows(int row, int count)
void
insertRows(int row, Collection<QStandardItem> items)
boolean
isAutoTristate()
boolean
isCheckable()
boolean
isDragEnabled()
boolean
isDropEnabled()
boolean
isEditable()
boolean
isEnabled()
boolean
isSelectable()
boolean
isTristate()
Deprecated.boolean
isUserTristate()
QStandardItemModel
model()
QStandardItem
parent()
void
read(QDataStream in)
void
readFrom(QDataStream in)
void
removeColumn(int column)
void
removeColumns(int column, int count)
void
removeRow(int row)
void
removeRows(int row, int count)
int
row()
int
rowCount()
void
setAccessibleDescription(String accessibleDescription)
void
setAccessibleText(String accessibleText)
void
setAutoTristate(boolean tristate)
void
setBackground(QBrush brush)
void
setCheckable(boolean checkable)
void
setCheckState(Qt.CheckState checkState)
void
setChild(int row, int column, QStandardItem item)
void
setChild(int row, QStandardItem item)
void
setColumnCount(int columns)
void
setData(Object value)
Overloaded function forsetData(java.lang.Object, int)
withrole = 257
.void
setData(Object value, int role)
void
setDragEnabled(boolean dragEnabled)
void
setDropEnabled(boolean dropEnabled)
void
setEditable(boolean editable)
void
setEnabled(boolean enabled)
void
setFlags(Qt.ItemFlag... flags)
Overloaded function forsetFlags(io.qt.core.Qt.ItemFlags)
.void
setFlags(Qt.ItemFlags flags)
void
setFont(QFont font)
void
setForeground(QBrush brush)
void
setIcon(QIcon icon)
void
setRowCount(int rows)
void
setSelectable(boolean selectable)
void
setSizeHint(QSize sizeHint)
void
setStatusTip(String statusTip)
void
setText(String text)
void
setTextAlignment(Qt.Alignment textAlignment)
void
setTextAlignment(Qt.AlignmentFlag... textAlignment)
Overloaded function forsetTextAlignment(io.qt.core.Qt.Alignment)
.void
setToolTip(String toolTip)
void
setTristate(boolean tristate)
Deprecated.void
setUserTristate(boolean tristate)
void
setWhatsThis(String whatsThis)
QSize
sizeHint()
void
sortChildren(int column)
Overloaded function forsortChildren(int, io.qt.core.Qt.SortOrder)
withorder = io.qt.core.Qt.SortOrder.AscendingOrder
.void
sortChildren(int column, Qt.SortOrder order)
String
statusTip()
QStandardItem
takeChild(int row)
Overloaded function fortakeChild(int, int)
withcolumn = 0
.QStandardItem
takeChild(int row, int column)
List<QStandardItem>
takeColumn(int column)
List<QStandardItem>
takeRow(int row)
String
text()
Qt.Alignment
textAlignment()
String
toolTip()
int
type()
String
whatsThis()
void
write(QDataStream out)
void
writeTo(QDataStream out)
-
Constructor Details
-
QStandardItem
public QStandardItem() -
QStandardItem
-
QStandardItem
-
QStandardItem
-
QStandardItem
public QStandardItem(int rows)Overloaded constructor for
QStandardItem(int, int)
withcolumns = 1
. -
QStandardItem
public QStandardItem(int rows, int columns) -
QStandardItem
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
accessibleDescription
-
accessibleText
-
appendColumn
-
appendRow
-
appendRow
-
appendRows
-
background
-
checkState
-
child
Overloaded function for
child(int, int)
withcolumn = 0
. -
child
-
clearData
-
column
-
columnCount
-
emitDataChanged
-
flags
-
font
-
foreground
-
hasChildren
-
icon
-
index
-
insertColumn
-
insertColumns
-
insertRow
-
insertRow
-
insertRows
-
insertRows
-
isAutoTristate
-
isCheckable
-
isDragEnabled
-
isDropEnabled
-
isEditable
-
isEnabled
-
isSelectable
-
isTristate
Deprecated. -
isUserTristate
-
model
-
writeTo
-
readFrom
-
parent
-
removeColumn
-
removeColumns
-
removeRow
-
removeRows
-
row
-
rowCount
-
setAccessibleDescription
-
setAccessibleText
-
setAutoTristate
-
setBackground
-
setCheckState
-
setCheckable
-
setChild
-
setChild
-
setColumnCount
-
setDragEnabled
-
setDropEnabled
-
setEditable
-
setEnabled
-
setFlags
Overloaded function for
setFlags(io.qt.core.Qt.ItemFlags)
. -
setFlags
-
setFont
-
setForeground
-
setIcon
-
setRowCount
-
setSelectable
-
setSizeHint
-
setStatusTip
-
setText
-
setTextAlignment
Overloaded function for
setTextAlignment(io.qt.core.Qt.Alignment)
. -
setTextAlignment
-
setToolTip
-
setTristate
Deprecated. -
setUserTristate
-
setWhatsThis
-
sizeHint
-
sortChildren
Overloaded function for
sortChildren(int, io.qt.core.Qt.SortOrder)
withorder = io.qt.core.Qt.SortOrder.AscendingOrder
. -
sortChildren
-
statusTip
-
takeChild
Overloaded function for
takeChild(int, int)
withcolumn = 0
. -
takeChild
-
takeColumn
-
takeRow
-
text
-
textAlignment
-
toolTip
-
whatsThis
-
clone
-
data
Overloaded function for
data(int)
withrole = 257
. -
data
-
hasLessTextThan
-
read
-
setData
Overloaded function for
setData(java.lang.Object, int)
withrole = 257
. -
setData
-
type
-
write
-