public class AdmUserFavoritesCopy.ValidList
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
cartEmpty
The favorites cart empty flag.
|
private FavoritesDescriptor |
desc
The favorites descriptor.
|
private boolean |
duplicate
The favorites list duplicate flag.
|
private boolean |
selected
The favorites list selection flag.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ValidList(FavoritesDescriptor desc,
boolean selected,
boolean duplicate,
boolean cartEmpty)
Constructs a new valid user favorites list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCartEmpty()
Returns the favorites cart empty flag.
|
FavoritesDescriptor |
getDescriptor()
Returns the favorites descriptor.
|
boolean |
getDuplicate()
Returns the favorites list duplicate flag.
|
boolean |
getSelected()
Returns the favorites list selection flag.
|
Checkbox |
getSelected(int index)
Returns the favorites list selection checkbox.
|
void |
setCartEmpty(boolean flag)
Sets the favorites cart empty flag.
|
void |
setDuplicate(boolean flag)
Sets the favorites list duplicate flag.
|
void |
setSelected(boolean flag)
Sets the favorites list selection flag.
|
private static final long serialVersionUID
private FavoritesDescriptor desc
private boolean selected
true if selected, otherwise false.private boolean duplicate
true if copying the favorites list would result in
a duplicate, otherwise false.private boolean cartEmpty
true if the favorites cart is empty (no cart lines),
otherwise falseprotected ValidList(FavoritesDescriptor desc, boolean selected, boolean duplicate, boolean cartEmpty)
desc - (FavoritesDescriptor) The favorites descriptor.selected - (boolean) The favorites list selection flag.
true if selected, otherwise false.duplicate - (boolean) The favorites list duplicate flag.
true if copying the favorites list would result in
a duplicate, otherwise false.cartEmpty - (boolean) The favorites cart empty flag.
true if the favorites cart is empty (no cart lines),
otherwise false.public FavoritesDescriptor getDescriptor()
public boolean getSelected()
true if selected, otherwise false.public Checkbox getSelected(int index)
index - (int) The index of the favorites list with a list.public void setSelected(boolean flag)
flag - (boolean) true if selected, otherwise
false.public boolean getDuplicate()
true if copying the favorites list would
result in a duplicate, otherwise false.public void setDuplicate(boolean flag)
flag - (boolean) true if copying the favorites list
would result in a duplicate, otherwise false.public boolean getCartEmpty()
true if the favorites cart is empty (no
cart lines), otherwise false.public void setCartEmpty(boolean flag)
flag - (boolean) true if the favorites cart is empty
(no cart lines), otherwise false.