ITEM
- is the generic type of the contained
row.SELF
- is the generic type of this container itself.public abstract class AbstractItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>> extends Object implements ItemContainer<ITEM,SELF>
ItemContainer
.Modifier and Type | Field and Description |
---|---|
private ITEM |
itemEdited |
private ITEM |
itemOriginal |
private AbstractUiWidgetAbstractDataSet<?,?,ITEM,SELF> |
uiWidget |
Constructor and Description |
---|
AbstractItemContainer(AbstractUiWidgetAbstractDataSet<?,?,ITEM,SELF> widget)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
ITEM |
getItem() |
ITEM |
getItemEdited() |
ITEM |
getItemOriginal() |
SelectionMode |
getSelectionMode()
This method gets the
SelectionMode . |
protected AbstractUiWidgetAbstractDataSet<?,?,ITEM,SELF> |
getUiWidget() |
ITEM |
getValue()
This method does the same as
ItemContainer.getItem() . |
boolean |
isContainerForItem(ITEM row) |
void |
setItemEdited(ITEM row) |
void |
setItemOriginal(ITEM row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setSelected
isSelected
setSelectionMode
private final AbstractUiWidgetAbstractDataSet<?,?,ITEM,SELF extends AbstractItemContainer<ITEM,SELF>> uiWidget
getUiWidget()
private ITEM itemOriginal
getItemOriginal()
private ITEM itemEdited
getItemEdited()
public AbstractItemContainer(AbstractUiWidgetAbstractDataSet<?,?,ITEM,SELF> widget)
widget
- is the widget
creating and owning this
AbstractItemContainer
.protected AbstractUiWidgetAbstractDataSet<?,?,ITEM,SELF> getUiWidget()
AbstractUiWidgetAbstractDataSet
that created this AbstractItemContainer
.public ITEM getItemOriginal()
getItemOriginal
in interface ItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>>
ItemContainer.getItemEdited()
public void setItemOriginal(ITEM row)
setItemOriginal
in interface ItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>>
row
- is the original row
to set.public ITEM getItemEdited()
getItemEdited
in interface ItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>>
original row
that is lazily created on first editing.
Will be null
before the row has been edited.public void setItemEdited(ITEM row)
setItemEdited
in interface ItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>>
row
- is the edited row
to set. Should to be a copy of the
original row
. May be null
to reset.public ITEM getItem()
getItem
in interface ItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>>
edited row
if not null
else the
original row
.public ITEM getValue()
ItemContainer.getItem()
.
This method gets the value of this object.getValue
in interface ItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>>
getValue
in interface AttributeReadValue<ITEM>
null
unless otherwise stated.public boolean isContainerForItem(ITEM row)
isContainerForItem
in interface ItemContainer<ITEM,SELF extends AbstractItemContainer<ITEM,SELF>>
row
- is the <ROW> to check.true
if this is the ItemContainer
responsible for the given row
false
otherwise.public SelectionMode getSelectionMode()
SelectionMode
.getSelectionMode
in interface AttributeReadSelectionMode
SelectionMode
. Must not be null
.Copyright © 2001–2016 mmm-Team. All rights reserved.