Constructor and Description |
---|
ColumnItem(ColumnBrowserWidget widget)
Constructs a new instance of this class given its parent.
|
ColumnItem(ColumnBrowserWidget widget,
int index)
Constructs a new instance of this class given its parent.
|
ColumnItem(ColumnItem parent)
Constructs a new instance of this class given its parent.
|
ColumnItem(ColumnItem parent,
int index)
Constructs a new instance of this class given its parent.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ColumnItem |
getItem(int index)
Returns an item located at a given position
|
int |
getItemCount() |
ColumnItem[] |
getItems() |
ColumnBrowserWidget |
getParent() |
ColumnItem |
getParentItem() |
int |
hashCode() |
int |
indexOf(ColumnItem item)
Return the position of a given item in children's list
|
void |
remove(ColumnItem item)
Remove a given children of this object
|
void |
remove(int index)
Remove a children in a given position of this object
|
void |
removeAll()
Remove all children of this object
|
getBackground, getData, getData, getFont, getForeground, getHeight, getImage, getText, setBackground, setData, setData, setFont, setForeground, setHeight, setImage, setText
public ColumnItem(ColumnBrowserWidget widget)
widget
- the widget that will contain this item (can not be null)java.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public ColumnItem(ColumnBrowserWidget widget, int index)
widget
- the widget that will contain this item (can not be null)index
- the positionjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public ColumnItem(ColumnItem parent)
widget
- the widget that will contain this item (can not be null)java.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public ColumnItem(ColumnItem parent, int index)
widget
- the widget that will contain this item (can not be null)index
- the positionjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public void remove(ColumnItem item)
item
- the item to remove (can not be null)java.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public void remove(int index)
index
- position of the children in the items'listjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public void removeAll()
java.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public ColumnItem getItem(int index)
index
- positionjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public int getItemCount()
java.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public ColumnItem[] getItems()
java.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public ColumnBrowserWidget getParent()
java.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public ColumnItem getParentItem()
null
if this item is the root nodejava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public int indexOf(ColumnItem item)
item
- item to finditem
is a not a
children of this objectjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)