N
- specifies the indexing class for the receiverpublic interface Section<N extends java.lang.Number>
Axis
,
for example a header, body or footer.
It contains a number of items indexed by the instances of a class
specified by the <N extends Number
>
type parameter.Item attributes include cell width, line width, moveable, resizable, hideable, hidden, selected. To optimize data storage of those attributes one value can be set for a range of items enclosed between the start and end items, for example setCellWidth(start, end, width). Also default values can be defined to save memory. If 1000000 items have the same width, then its a waste to store 1000000 ints with the same values. An example of such function: setDefaultCellWidth(width).
Section visibility and focus item can be enabled or disabled.
Modifier and Type | Method and Description |
---|---|
void |
addControlListener(org.eclipse.swt.events.ControlListener listener)
Adds the listener to the collection of listeners who will
be notified when a section item is moved or resized, by sending
it one of the messages defined in the
ControlListener
interface. |
void |
addHiddenSet(NumberSet<N> set)
Adds the given set to the collection of hidden sets.
|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds the listener to the collection of listeners who will
be notified when a section item is selected by the user, by sending
it one of the messages defined in the
SelectionListener
interface. |
void |
delete(N start,
N end)
Removes a range of items decreasing the indexes of
the following items by the number of removed items.
|
int |
getCellWidth(N index)
Returns the cell width of the item with the given index in the model.
|
java.util.Iterator<N> |
getChildren(N parent)
Provisional tree API.
|
N |
getChildrenCount(N parent)
Provisional tree API.
|
java.util.Iterator<Extent<N>> |
getChildrenExtents(N parent)
Provisional tree API.
|
N |
getCount()
Returns the number of items in the receiver.
|
int |
getDefaultCellWidth()
Returns the default cell width of the receiver's items.
|
NumberSet<N> |
getDefaultHiddenSet()
Returns the default hidden set representing items hidden by the user with
the commands bound to the user gestures.
|
int |
getDefaultLineWidth()
Returns the default line width of the receiver's items.
|
NumberSet<N> |
getHidden()
Returns the set of numbers representing indexes of the hidden items.
|
N |
getHiddenCount()
Returns the number of hidden items.
|
java.util.Iterator<Extent<N>> |
getHiddenExtents()
Returns iterator for extents of the hidden items.
|
N |
getIndex(N position)
Returns the item index at the given position in the layout.
|
java.lang.Class<N> |
getIndexClass()
Returns the
Class<Number> instance
that is used to index the section cells and lines. |
N |
getLevelInTree(N index)
Provisional tree API.
|
int |
getLineWidth(N index)
Returns the line width of the item with the given index in the model.
|
NumberSet<N> |
getOrder()
Returns set of number extents representing the order of the items.
|
N |
getOrder(N index)
Returns the order rank of the item with the given index in the model.
|
java.util.Iterator<Extent<N>> |
getOrderExtents()
Returns iterator for extents of the order ranks of the items.
|
N |
getParent(N index)
Provisional tree API.
|
N |
getPosition(N index)
Returns the position in the layout of the item with the given index in the model.
|
NumberSet<N> |
getSelected()
Returns the set of numbers representing indexes of the selected items.
|
N |
getSelectedCount()
Returns the number of selected items in this section.
|
java.util.Iterator<Extent<N>> |
getSelectedExtents()
Returns iterator for extents of the selected items.
|
Section<N> |
getUnchecked()
Returns a better performing but less user friendly implementation
for this section that is more loop efficient:
does not check validity of the method arguments
does not mark the layout as required computing on every method call,
instead relying on the client to call
Matrix.refresh()
It may be useful for loop optimization, for example inside of
Painter.paint(int, int, int, int)
method. |
boolean |
hasChildren(N parent)
Provisional tree API.
|
void |
insert(N target,
N count)
Inserts items before the given target item increasing the indexes
of the following items by the number of inserted items.
|
boolean |
isDefaultHideable()
Returns
true if the section items can be hidden by default. |
boolean |
isDefaultMoveable()
Returns
true if the section items can be moved by default. |
boolean |
isDefaultResizable()
Returns
true if the section items can be resized by default. |
boolean |
isEmpty()
Returns true if the receiver contains no items.
|
boolean |
isExpanded(N index)
Provisional tree API.
|
boolean |
isFocusItemEnabled()
Returns true if the focus item navigation is enabled in the receiver.
|
boolean |
isHidden(N index)
Returns
true if the item with the given index in the model is hidden. |
boolean |
isHideable(N index)
Returns
true if the item with the given index in the model can be hidden by end user. |
boolean |
isMoveable(N index)
Returns
true if the item with the given index in the model can be moved by end user. |
boolean |
isResizable(N index)
Returns
true if the item with the given index in the model can be resized by end
user. |
boolean |
isSelected(N index)
Returns
true if the item with the given index in the model is selected. |
boolean |
isVisible()
Returns true if the receiver is visible.
|
void |
removeControlListener(org.eclipse.swt.events.ControlListener listener)
Removes the listener from the collection of listeners who will
be notified a section item is moved or resized.
|
void |
removeHiddenSet(NumberSet<N> set)
Removes hidden set.
|
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Removes the listener from the collection of listeners who will
be notified when a section item is selected by the user.
|
void |
setCellWidth()
Sets the cell width that best fits its content for all items in this section.
|
void |
setCellWidth(N index)
Sets the cell width that best fits its content.
|
void |
setCellWidth(N index,
int width)
Sets the cell width for item with the given index in the model.
|
void |
setCellWidth(N start,
N end,
int width)
Sets the cell width for a range of items.
|
void |
setCount(N count)
Specifies the number of section items.
|
void |
setDefaultCellWidth(int width)
Sets the default width of cells in this section to the given value.
|
void |
setDefaultHideable(boolean hideable)
Sets the default hide ability of the receiver's items to the given
argument.
|
void |
setDefaultLineWidth(int width)
Sets default width of lines in this section to the given value.
|
void |
setDefaultMoveable(boolean moveable)
Sets the default move ability of the receiver's items to the given
argument.
|
void |
setDefaultResizable(boolean resizable)
Sets the default resize ability of the receiver's items to the given
argument.
|
void |
setExpanded(N parent,
boolean state)
Provisional tree API.
|
void |
setExpanded(N start,
N end,
boolean state)
Provisional tree API.
|
void |
setFocusItemEnabled(boolean enabled)
Enables focus item navigation in the receiver if the argument is true,
and disables it invisible otherwise.
|
void |
setHidden(N index,
boolean state)
Sets the hiding state for the item with the given index in the model.
|
void |
setHidden(N start,
N end,
boolean state)
Sets the hiding state for a range of items.
|
void |
setHideable(N index,
boolean enabled)
Sets the hide ability for the item with the given index in the model.
|
void |
setHideable(N start,
N end,
boolean enabled)
Sets the hide ability for a range of items.
|
void |
setLineWidth(N index,
int width)
Sets the line width for item with the given index in the model.
|
void |
setLineWidth(N start,
N end,
int width)
Sets the line width for a range of items.
|
void |
setMoveable(N index,
boolean enabled)
Sets the move ability for the item with the given index in the model.
|
void |
setMoveable(N start,
N end,
boolean enabled)
Sets the move ability for a range of items.
|
void |
setOrder(java.util.Iterator<N> iterator) |
void |
setOrder(N index,
N target)
Sets the order rank of the item with the given index in the model to the target index.
|
void |
setOrder(N start,
N end,
N target)
Sets the order rank of a range of items to start from the target index.
|
void |
setOrderExtents(java.util.Iterator<Extent<N>> iterator) |
void |
setParent(N child,
N parent)
Provisional tree API.
|
void |
setParent(N start,
N end,
N parent)
Provisional tree API.
|
void |
setResizable(N index,
boolean enabled)
Sets the resize ability for the item with the given index in the model.
|
void |
setResizable(N start,
N end,
boolean enabled)
Sets the resize ability for a range of items.
|
void |
setSelected(boolean state)
Sets the selection state for all the items.
|
void |
setSelected(N index,
boolean state)
Sets the hiding state for the item with the given index in the model.
|
void |
setSelected(N start,
N end,
boolean state)
Sets the selection state for a range of items.
|
void |
setVisible(boolean visible)
Marks the receiver as visible if the argument is true,
and marks it invisible otherwise.
|
java.lang.Class<N> getIndexClass()
Class<Number>
instance
that is used to index the section cells and lines.Class<Number>
instance
that is used to index the section cells and linesSection<N> getUnchecked()
Matrix.refresh()
Painter.paint(int, int, int, int)
method.void setCount(N count)
count
- the new count of the receiver's itemsjava.lang.NullPointerException
- if the count is null or less then 0.getCount()
N getCount()
setCount(Number)
boolean isEmpty()
false
is returned.void setVisible(boolean visible)
visible
- the new visibility stateboolean isVisible()
void setFocusItemEnabled(boolean enabled)
enabled
- the new focus item enablement stateboolean isFocusItemEnabled()
void setDefaultCellWidth(int width)
Default value allows to save storage memory of the width attribute if many cells share the same value and the newly created items to have the default value automatically.
If the width
is lower then 0 then the method does nothing.
width
- new value for default width.java.lang.IllegalArgumentException
- if the width is lower then
the minimal cell width of the axisint getDefaultCellWidth()
void setDefaultLineWidth(int width)
Default value allows to save storage memory of the width attribute if many lines share the same value and the newly created items to have the default value automatically.
If the width
is lower then 0 then the method does nothing.
width
- new value for default width.int getDefaultLineWidth()
boolean isDefaultResizable()
true
if the section items can be resized by default.
Otherwise, false
is returned.void setDefaultResizable(boolean resizable)
Default value allows to save storage memory of the "resizable" attribute if many items share the same value and the newly created items to have this default value automatically.
resizable
- the new resize ability stateboolean isDefaultMoveable()
true
if the section items can be moved by default.
Otherwise, false
is returned.void setDefaultMoveable(boolean moveable)
Default value allows to save storage memory of the "moveable" attribute if many items share the same value and the newly created items to have this default value automatically.
moveable
- the new move ability stateboolean isDefaultHideable()
true
if the section items can be hidden by default.
Otherwise, false
is returned.
The default return value is false.void setDefaultHideable(boolean hideable)
Default value allows to save storage memory of the "hideable" attribute if many items share the same value and the newly created items to have this default value automatically.
hideable
- the new hide ability statevoid setCellWidth(N start, N end, int width)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemswidth
- the new cell widthjava.lang.IllegalArgumentException
- if start or end is null
java.lang.IllegalArgumentException
- if start is greater then endjava.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundssetHideable(Number, Number, boolean)
void setCellWidth(N index, int width)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
If the width
is lower then 0 then the method does nothing.
Cell width for a range of items should be set by
setCellWidth(Number, Number, int)
to achieve the best efficiency.
index
- index of the item to set the cell width forwidth
- the new cell widthjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundssetCellWidth(Number, Number, int)
void setCellWidth(N index)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
The width is calculated by Painter.computeSize(Number, Number, int, int)
of the zones to which the section belongs.
index
- index of the item to set the cell width forjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsvoid setCellWidth()
The width is calculated by Painter.computeSize(Number, Number, int, int)
of the zones to which the section belongs.
int getCellWidth(N index)
setCellWidth(Number)
method then the default cell width is returned.
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
index
- the item indexjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsvoid setLineWidth(N start, N end, int width)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemswidth
- the new line widthjava.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid setLineWidth(N index, int width)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
If the width
is lower then 0 then the method does nothing.
Cell width for a range of items should be set by
setLineWidth(Number, Number, int)
to achieve the best efficiency.
index
- index of the item to set the line width forwidth
- the new line widthjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
boundssetLineWidth(Number, Number, int)
int getLineWidth(N index)
setLineWidth
methods then the default line width is returned.
Line at index i is on the left side of the cell at index i. Last line to
the right is at index equal to section item count. index
is
the item index in the model, not the visual position of the item on the
screen which can be altered by move and hide operations.
index
- the item indexjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ... getCount()
boundsvoid setMoveable(N start, N end, boolean enabled)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemsenabled
- the new move ability statejava.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid setMoveable(N index, boolean enabled)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
Ranges of items should be set moveable by setMoveable(Number, Number, boolean)
to achieve the best efficiency.
index
- index of the item to moveenabled
- the new move ability statejava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundssetMoveable(Number, Number, boolean)
boolean isMoveable(N index)
true
if the item with the given index in the model can be moved by end user.
Otherwise, false
is returned.
An item that is moveable can be reordered by the user by dragging the header.
An item that is not moveable cannot be dragged by the user but may be reordered by the programmer.
If the move ability has not been set at this index by setMoveable
method then the default cell width is returned.
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
index
- the item indexjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsvoid setResizable(N start, N end, boolean enabled)
start
and end
numbers are item indexes in the
model, not the visual position of the item on the screen which can be
altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemsenabled
- the new resize ability statejava.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid setResizable(N index, boolean enabled)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
Ranges of items should be set resizable by setResizable(Number, Number, boolean)
to achieve the best efficiency.
index
- index of the item to resizeenabled
- the new resize ability statejava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundssetResizable(Number, Number, boolean)
boolean isResizable(N index)
true
if the item with the given index in the model can be resized by end
user. Otherwise, false
is returned. An item that is resizable
can be resized by the user dragging the edge of the header. An item that is
not resizable cannot be dragged by the user but may be resized by the
programmer.
Returns the stored item resize ability at the given index or the default item resize ability if it has not been set at this index.
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
index
- the item indexjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsvoid setHideable(N start, N end, boolean enabled)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemsenabled
- the new hide ability statejava.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid setHideable(N index, boolean enabled)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
Ranges of items should be set hideable by setHideable(Number, Number, boolean)
to achieve the best efficiency.
index
- index of the item to hideenabled
- the new hide ability statejava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundssetHideable(Number, Number, boolean)
boolean isHideable(N index)
true
if the item with the given index in the model can be hidden by end user.
Otherwise, false
is returned.
An item that is hideable can be hidden by the user gesture bound to the hide command.
An item that is not hideable cannot be hidden by the user but may be hidden by the programmer.
Returns the stored item hide ability at the given index or the default item hide ability if it has not been set at this index.
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsvoid setHidden(N start, N end, boolean state)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemsstate
- the new hiding statejava.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid setHidden(N index, boolean state)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
Ranges of items should be set hidden by setHidden(Number, Number, boolean)
to achieve the best efficiency.
index
- index of the item to hidestate
- the new hiding statejava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsboolean isHidden(N index)
true
if the item with the given index in the model is hidden.
Otherwise, false
is returned.
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
index
- the item indexjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsN getHiddenCount()
NumberSet<N> getHidden()
Number that is returned by Iterator.next()
method is the index of the item in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
java.util.Iterator<Extent<N>> getHiddenExtents()
Number that is returned by Iterator.next()
method is the index of the item in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
void setSelected(N start, N end, boolean state)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemsstate
- the new selection statejava.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid setSelected(N index, boolean state)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
Ranges of items should be set selected by setSelected(Number, Number, boolean)
to achieve the best efficiency.
index
- index of the item to hidestate
- the new hiding statejava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundssetSelected(Number, Number, boolean)
void setSelected(boolean state)
state
- the new selection stateboolean isSelected(N index)
true
if the item with the given index in the model is selected.
Otherwise, false
is returned.
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
index
- the item indexjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsN getSelectedCount()
NumberSet<N> getSelected()
Number that is returned by Iterator.next()
method is the index of the item in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
java.util.Iterator<Extent<N>> getSelectedExtents()
Number that is returned by Iterator.next()
method is the index of the item in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
void setOrder(N start, N end, N target)
start
, end
and target
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemstarget
- the index of the target itemjava.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundsjava.lang.IndexOutOfBoundsException
- if target is out of 0 ...
getCount()
boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid setOrder(N index, N target)
index
is the item index in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
Ranges of items should be set moved by one of the setOrder
methods.
to achieve the best efficiency.
index
- index of the item to movetarget
- the index of the target itemjava.lang.IllegalArgumentException
- if index or target is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsjava.lang.IndexOutOfBoundsException
- if target is out of 0 ...
getCount()
boundssetOrder(Number, Number, Number)
void setOrder(java.util.Iterator<N> iterator)
N getOrder(N index)
index
- to get the position forjava.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsNumberSet<N> getOrder()
Number that is returned by Iterator.next()
method is the index of the item in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
java.util.Iterator<Extent<N>> getOrderExtents()
Number that is returned by Iterator.next()
method is the index of the item in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
N getIndex(N position)
If the index
is out of range null value is returned.
position
- visual index of given itemjava.lang.IllegalArgumentException
- if position is null
java.lang.IndexOutOfBoundsException
- if position is out of 0 ...
getCount()
-1 boundsgetOrder(Number)
N getPosition(N index)
If the index
is out of range null value is returned.
index
- index of the given itemjava.lang.IllegalArgumentException
- if position is null
java.lang.IndexOutOfBoundsException
- if position is out of 0 ...
getCount()
-1 boundsgetOrder(Number)
void delete(N start, N end)
It changes the state of cell width, line width, resizable, movable, hideable, hidden, order, selection.
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of itemsjava.lang.IndexOutOfBoundsException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid insert(N target, N count)
Items are inserted before the given target index or at the end if the target equals to the receiver item count.
It changes the state of cell width, line width, resizable, movable, hideable, hidden, order, selection.
target
, count
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
target
- the index before which items are insertedcount
- the number of items to insertjava.lang.IndexOutOfBoundsException
- if target or count is null
java.lang.IndexOutOfBoundsException
- if target is out of 0 ...
getCount()
boundsjava.lang.IllegalArgumentException
- if start is greater then endvoid addControlListener(org.eclipse.swt.events.ControlListener listener)
ControlListener
interface.
The data property of the ControlEvent
contains the item being resized
or the target item for the moved items. In order to get moved items or a set of
resized items (if more then one is resized) getSelectedExtents()
can be utilized.
listener
- the listener which should be notifiedjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- ControlListener
,
removeControlListener(org.eclipse.swt.events.ControlListener)
void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
SelectionListener
interface.
The selection event is not emitted by the axis API methods that are responsible for selection and deselection of items. It can only be triggered by another SWT event bound to the selection command.
widgetSelected
is called when the axis item is selected
widgetDefaultSelected
is not called.
listener
- the listener which should be notified when the axis item
is selected by the userjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- SelectionListener
,
SelectionEvent
,
removeSelectionListener(org.eclipse.swt.events.SelectionListener)
void removeControlListener(org.eclipse.swt.events.ControlListener listener)
listener
- the listener which should no longer be notifiedjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- ControlListener
,
addControlListener(org.eclipse.swt.events.ControlListener)
void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener
- the listener which should no longer be notifiedjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- SelectionListener
,
addSelectionListener(org.eclipse.swt.events.SelectionListener)
void addHiddenSet(NumberSet<N> set)
set
- hidden set to be addedvoid removeHiddenSet(NumberSet<N> set)
set
- hidden set to be removedNumberSet<N> getDefaultHiddenSet()
boolean isExpanded(N index)
void setExpanded(N parent, boolean state)
boolean hasChildren(N parent)
Copyright © 2011 netanel.pl. All Rights Reserved.