|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
N
- specifies the indexing class for the receiverpublic interface Section<N extends java.lang.Number>
Section represents a continuous segment of a matrix 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
type parameter.Number
>
Method Summary | |
---|---|
void |
addControlListener(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 |
addFocusItemCallback(java.lang.Runnable callback)
Adds the listener to the collection of callbacks who will be notified when a focus item is modified by the user. |
void |
addSelectionListener(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 |
adjust(N start,
N count)
Inserts or deletes items adjusting indexes of all the following items accordingly. |
int |
computeSize(N index)
Computes the optimal cell width that fits its content. |
void |
delete(N start,
N end)
Deprecated. use adjust(Number, Number) |
Axis<N> |
getAxis()
Returns the axis that this section belongs to. |
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. |
NumberSet<N> |
getCollapsed()
Returns the set of numbers representing indexes of items that are collapsed in the result of folding the nodes of hierarchy (tree or groups). |
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()
Deprecated. |
int |
getDefaultLineWidth()
Returns the default line width of the receiver's items. |
NumberSet<N> |
getFiltered()
Returns the set of numbers representing indexes of the items filtered out by the applicaiton logic. |
NumberSet<N> |
getFolded()
|
NumberSet<N> |
getHidden()
Returns the set of numbers representing indexes of the items hidden by the user invoking the "hide" action. |
N |
getHiddenCount()
Deprecated. use getHidden().getCount() |
java.util.Iterator<Extent<N>> |
getHiddenExtents()
Deprecated. use getHidden().seq() |
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. |
NumberCollection<N> |
getInvisible()
Returns a union set hidden, collapsed and filtered indexes. |
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. |
NumberContinuum<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()
Deprecated. use getOrder().seq() |
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. |
NumberList<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()
Deprecated. |
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)
Deprecated. use adjust(Number, Number) |
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)
Deprecated. use getHidden().contains... |
boolean |
isHideable(N index)
Returns true if the item with the given index in the model can be hidden by end user. |
boolean |
isInvisible(N index)
Deprecated. use seqInvisible().contains... |
boolean |
isMoveable(N index)
Returns true if the item with the given index in the model can be moved by end user. |
boolean |
isMoveableTo(N index)
Returns true if items can be moved to the given index in the model 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 |
isTreeEnabled()
Returns true if tree is enabled or flase otherwise. |
boolean |
isVisible()
Returns true if the receiver is visible. |
void |
removeControlListener(ControlListener listener)
Removes the listener from the collection of listeners who will be notified a section item is moved or resized. |
void |
removeFocusCellCallback(java.lang.Runnable callback)
Removes the callback from the collection of callbacks who will be called when the focus item is modified by the user. |
void |
removeSelectionListener(SelectionListener listener)
Removes the listener from the collection of listeners who will be notified when a section item is selected by the user. |
ExtentSeq<N> |
seq()
Experimental. |
ExtentSeq<N> |
seq(int direction,
N from,
N to)
Experimental. |
ExtentSeq<N> |
seqInvisible()
Deprecated. use getInvisible().seq() |
void |
setCellWidth()
Sets the cell width that best fits its content for all items in this section. |
void |
setCellWidth(N index)
Sets the optimal cell width that 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)
Deprecated. use getHidden().add(index) , getHidden().remove(index)
or getHidden().change(index, index, state) |
void |
setHidden(N start,
N end,
boolean state)
Deprecated. use getHidden().add(start, end) , getHidden().remove(start, end)
or getHidden().change(start, end, state) |
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 |
setMoveableTo(N index,
boolean enabled)
Sets the move ability for the item with the given index in the model. |
void |
setMoveableTo(N start,
N end,
boolean enabled)
Sets the ability for a range of indexes to serve as a target for drag moving 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 |
setTreeEnabled(boolean enable)
Makes the painter to draw the hierarchy and causes moving to transfer the whole branch also allowing to move into the item making it a parent of the items being moved. |
void |
setVisible(boolean visible)
Marks the receiver as visible if the argument is true, and marks it invisible otherwise. |
Method Detail |
---|
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 items
java.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)
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)
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)
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)
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)
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 width
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IllegalArgumentException
- if start is greater then end
java.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 width
java.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 for
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsint computeSize(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 for
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsvoid setCellWidth()
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 index
java.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 width
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
bounds
java.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 width
java.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 index
java.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 state
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.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 state
java.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 index
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsvoid setMoveableTo(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 state
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.lang.IllegalArgumentException
- if start is greater then endvoid setMoveableTo(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 state
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundssetMoveable(Number, Number, boolean)
boolean isMoveableTo(N index)
true
if items can be moved to the given index in the model 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 index
java.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 state
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.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 state
java.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 index
java.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 state
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.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 state
java.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 bounds@Deprecated void setHidden(N start, N end, boolean state)
getHidden().add(start, end)
, getHidden().remove(start, end)
or getHidden().change(start, end, 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 state
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.lang.IllegalArgumentException
- if start is greater then end@Deprecated void setHidden(N index, boolean state)
getHidden().add(index)
, getHidden().remove(index)
or getHidden().change(index, index, 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 state
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsNumberSet<N> getFolded()
NumberSet<N> getHidden()
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.
NumberSet<N> getFiltered()
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.
#getHidden()}
NumberSet<N> getCollapsed()
NumberCollection<N> getInvisible()
@Deprecated N getHiddenCount()
getHidden().getCount()
@Deprecated boolean isHidden(N index)
getHidden().contains...
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 index
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 bounds@Deprecated java.util.Iterator<Extent<N>> getHiddenExtents()
getHidden().seq()
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.
@Deprecated boolean isInvisible(N index)
seqInvisible().contains...
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 index
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 bounds@Deprecated ExtentSeq<N> seqInvisible()
getInvisible().seq()
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 state
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.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 state
java.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 index
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsN getSelectedCount()
NumberList<N> getSelected()
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.
@Deprecated 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 item
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.lang.IndexOutOfBoundsException
- if target is out of 0 ...
getCount()
bounds
java.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 item
java.lang.IllegalArgumentException
- if index or target is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 bounds
java.lang.IndexOutOfBoundsException
- if target is out of 0 ...
getCount()
boundssetOrder(Number, Number, Number)
void setOrder(java.util.Iterator<N> iterator)
void setOrderExtents(java.util.Iterator<Extent<N>> iterator)
N getOrder(N index)
index
- to get the position for
java.lang.IllegalArgumentException
- if index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
getCount()
-1 boundsNumberContinuum<N> getOrder()
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.
@Deprecated java.util.Iterator<Extent<N>> getOrderExtents()
getOrder().seq()
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)
index
is out of range null value is returned.
position
- visual index of given item
java.lang.IllegalArgumentException
- if position is null
java.lang.IndexOutOfBoundsException
- if position is out of 0 ...
getCount()
-1 boundsgetOrder(Number)
N getPosition(N index)
index
is out of range null value is returned.
index
- index of the given item
java.lang.IllegalArgumentException
- if position is null
java.lang.IndexOutOfBoundsException
- if position is out of 0 ...
getCount()
-1 boundsgetOrder(Number)
@Deprecated void delete(N start, N end)
adjust(Number, Number)
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 items
java.lang.IndexOutOfBoundsException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
getCount()
-1 bounds
java.lang.IllegalArgumentException
- if start is greater then end@Deprecated void insert(N target, N count)
adjust(Number, Number)
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 insert
java.lang.IndexOutOfBoundsException
- if target or count is null
java.lang.IndexOutOfBoundsException
- if target is out of 0 ...
getCount()
bounds
java.lang.IllegalArgumentException
- if start is greater then endvoid adjust(N start, N count)
start
, 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.
start
- the index before which items are insertedcount
- the number of items to insert
java.lang.IndexOutOfBoundsException
- if target or count is null
java.lang.IndexOutOfBoundsException
- if target is out of 0 ...
getCount()
bounds
java.lang.IllegalArgumentException
- if start is greater then endvoid addControlListener(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) getSelected()
can be utilized.
listener
- the listener which should be notified
java.lang.IllegalArgumentException
- SWTException
- ControlListener
,
removeControlListener(ControlListener)
void addSelectionListener(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 user
java.lang.IllegalArgumentException
- SWTException
- SelectionListener
,
SelectionEvent
,
removeSelectionListener(SelectionListener)
void setTreeEnabled(boolean enable)
enable
- the new focus item enablement stateboolean isTreeEnabled()
setTreeEnabled(boolean)
void addFocusItemCallback(java.lang.Runnable callback)
callback
- the callback which should be notified when the focus item
is changed by the user
java.lang.IllegalArgumentException
- SWTException
- removeFocusCellCallback(java.lang.Runnable)
void removeFocusCellCallback(java.lang.Runnable callback)
callback
- the callback which should no longer be notified
java.lang.IllegalArgumentException
- SWTException
- addFocusItemCallback(java.lang.Runnable)
void removeControlListener(ControlListener listener)
listener
- the listener which should no longer be notified
java.lang.IllegalArgumentException
- SWTException
- ControlListener
,
addControlListener(ControlListener)
void removeSelectionListener(SelectionListener listener)
listener
- the listener which should no longer be notified
java.lang.IllegalArgumentException
- SWTException
- SelectionListener
,
addSelectionListener(SelectionListener)
boolean isExpanded(N index)
void setExpanded(N start, N end, boolean state)
void setExpanded(N parent, boolean state)
N getLevelInTree(N index)
N getParent(N index)
N getChildrenCount(N parent)
java.util.Iterator<N> getChildren(N parent)
java.util.Iterator<Extent<N>> getChildrenExtents(N parent)
void setParent(N start, N end, N parent)
void setParent(N child, N parent)
boolean hasChildren(N parent)
Axis<N> getAxis()
ExtentSeq<N> seq()
ExtentSeq<N> seq(int direction, N from, N to)
@Deprecated NumberSet<N> getDefaultHiddenSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |