|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geebis.books.model.item.Item
org.geebis.books.model.item.nonretail.NonRetailItem
org.geebis.books.model.item.nonretail.Bundle
@Name(value="bundle") public class Bundle
| Constructor Summary | |
|---|---|
Bundle()
|
|
Bundle(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addLine(BundleLine line)
Adds a line to this bundle |
double |
calculateCost()
Calculates the cost of this bundle. |
java.lang.Boolean |
getExpanded()
Gets whether this bundle is expanded or not |
java.util.List<BundleLine> |
getLines()
Gets the lines for this bundle |
void |
removeLine(BundleLine line)
Removes a line from this bundle |
void |
setExpanded(java.lang.Boolean expanded)
Sets the expanded property of this bundle |
void |
setLines(java.util.List<BundleLine> lines)
Sets the lines for this bundle |
| Methods inherited from class org.geebis.books.model.item.Item |
|---|
getDescription, getId, getName, getSalesAccount, getVersion, setDescription, setId, setName, setSalesAccount, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bundle()
public Bundle(java.lang.String name)
| Method Detail |
|---|
public java.lang.Boolean getExpanded()
public void setExpanded(java.lang.Boolean expanded)
expanded - whether or not this bundle should be expandedpublic java.util.List<BundleLine> getLines()
public void setLines(java.util.List<BundleLine> lines)
lines - the new lines for this bundlepublic double calculateCost()
public void addLine(BundleLine line)
line - the line to addpublic void removeLine(BundleLine line)
line - the line to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||