@Deprecated public interface IltShelfItemContainer
IltObject
that has slots, and sets the size of its children items.
The two concrete classes that implement this interface
are IltShelf
and IltCardCarrier
.
IltDefaultDataSource
Modifier and Type | Method and Description |
---|---|
void |
checkItem(IltObject item,
IlpShelfItemPosition position)
Deprecated.
Check the position for a given item, verifying if indexes and spans
are valid, and also checking if the item can fit into the container.
|
int |
findItem(IltObject item)
Deprecated.
Please use
getItemPosition method instead. It
returns all position attributes as an
IlpShelfItemPosition object. |
IltObject |
getItem(int slotIndex)
Deprecated.
Returns the child item occupying the slot of index
slotIndex . |
IlpShelfItemPosition |
getItemPosition(IltObject item)
Deprecated.
Returns the position of the child object relative to its parent, based on
an
IlpShelfItemPosition object. |
IlvRect |
getItemRect(IltGraphicManager manager,
IltObject item)
Deprecated.
|
Enumeration |
getItems()
Deprecated.
Returns all child items from the container (as an
Enumeration ). |
Enumeration |
getItems(int slotIndex,
double slotSpan)
Deprecated.
Returns an
Enumeration of the child items contained in the
container starting at position slotIndex and spanning across
slotSpan . |
double |
getItemSpan(int slotIndex)
Deprecated.
Please use
getItemPosition method instead. It
returns all position attributes as an
IlpShelfItemPosition object. |
int |
getSlotCount()
Deprecated.
Returns the number of slots that the container has.
|
void |
removeAllItems()
Deprecated.
Removes all child items from the container.
|
boolean |
removeItem(IltObject item)
Deprecated.
Removes the
item child item of the container. |
void |
setDirection(int containerDirection)
Deprecated.
Use
DirectionAttribute from the implementing
class. |
void |
setDirection(int containerDirection,
int itemsDirection)
Deprecated.
Use
DirectionAttribute from the implementing
class. Update each child direction individually. |
void |
setItem(int slotIndex,
IltObject item)
Deprecated.
Adds a child item to this container at a given position.
|
void |
setItem(int slotIndex,
IltObject item,
double slotSpan)
Deprecated.
Adds a child item to this container, at a given position.
|
void setItem(int slotIndex, IltObject item)
If the container already has a graphic representation,
computeGraphic
will automatically be called on the item in
all the managers that contain the container.
slotIndex
- The slot number of the container, where the item will
be inserted.item
- The item inserted in the container.void setItem(int slotIndex, IltObject item, double slotSpan)
slotIndex
and spanning across slotSpan
slots. Child items previously
occupying the slots used by the new item
are removed from
the container.
If the container already has a graphic representation,
computeGraphic
will automatically be called on the item in
all the managers that contain the container.
slotIndex
- The slot number in this container,
where the item starts from.item
- The item inserted in the container.slotSpan
- A positive double value representing the number of slots
across which the item spans.IltObject getItem(int slotIndex)
slotIndex
.
The slot might be only partially occupied by the returned item if the
slot span of the item is not an integer.Enumeration getItems()
Enumeration
).Enumeration getItems(int slotIndex, double slotSpan)
Enumeration
of the child items contained in the
container starting at position slotIndex
and spanning across
slotSpan
. The child items returned might be only partially in
the given interval.@Deprecated int findItem(IltObject item)
getItemPosition
method instead. It
returns all position attributes as an
IlpShelfItemPosition
object.item
child item
is using. If the child item does not occupy any slot of the current shelf
object, -1
is returned.IlpShelfItemPosition getItemPosition(IltObject item)
IlpShelfItemPosition
object.item
- The child object which slot position to retrieveIlpShelfItemPosition
object containing
positioning information, or null
if
item
does not belong to the containerboolean removeItem(IltObject item)
item
child item of the container. Removes all
graphic representations of the given item, if present.true
if the item was found in the container;
false
otherwise.void removeAllItems()
@Deprecated double getItemSpan(int slotIndex)
getItemPosition
method instead. It
returns all position attributes as an
IlpShelfItemPosition
object.slotIndex
. If no item is present in the slot, returns
the number of slots which are empty around the given index.int getSlotCount()
@Deprecated IlvRect getItemRect(IltGraphicManager manager, IltObject item)
@Deprecated void setDirection(int containerDirection)
DirectionAttribute
from the implementing
class.IltObject.Direction
local values of the container and of all
the container items recursively. Call this method when all the items have been inserted
in the container, and after each change in the container content.containerDirection
- Either IlvDirection.Top
,
IlvDirection.Bottom
,
IlvDirection.Left
, or
IlvDirection.Right
@Deprecated void setDirection(int containerDirection, int itemsDirection)
DirectionAttribute
from the implementing
class. Update each child direction individually.IltObject.Direction
style values of the container
and of all the container items recursively. Call this method when all the items have been
inserted in the container, and after each change in the container content.containerDirection
- Either IlvDirection.Top
,
IlvDirection.Bottom
,
IlvDirection.Left
, or
IlvDirection.Right
itemsDirection
- Either IlvDirection.Top
,
IlvDirection.Bottom
,
IlvDirection.Left
, or
IlvDirection.Right
void checkItem(IltObject item, IlpShelfItemPosition position)
item
- The new item being checked.position
- The (relative) position where the item is being added.IllegalArgumentException
- If the item has invalid position. All
details are wrapped into the exception.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.