|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.beans.explorer.WTBusinessObject
wt.clients.prodmgmt.InstanceMasterItem
InstanceMasterItem
is a wrapper class for viewing WTProductInstanceMaster objects.
It extends WTBusinessObject to ease implementing the wt.clients.beans.explorer.Explorable
interface and allowing viewing in the Product Information Explorer.
Supported API: false
Extendable: false
WTProductInstanceMaster
,
Explorable
,
Serialized FormField Summary | |
(package private) static DecimalFormat |
df
|
private PathOccurrence |
pathOccurrence
|
private double |
quantity
|
private static ResourceBundle |
resource
|
private static String |
RESOURCE
|
private SerialNumberMapping |
snMapping
|
private QuantityUnit |
unit
|
private UsesOccurrence |
usesOccurrence
|
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject |
|
Constructor Summary | |
InstanceMasterItem()
Constructs a new InstanceMasterItem. |
|
InstanceMasterItem(WTProductInstanceMaster instance)
Constructs a new InstanceMasterItem. |
Method Summary | |
void |
create()
Create a new contained instancemaster for this InstanceMasterItem. |
static DecimalFormat |
getDecimalFormat()
|
String |
getIdentity()
Returns the identity of this object. |
WTProductInstanceMaster |
getInstanceMaster()
Return the contained WTPart object. |
String |
getName()
Returns the current name of this InstanceMasterItem. |
String |
getNumber()
Returns the current number of this InstanceMasterItem. |
PathOccurrence |
getPathOccurrence()
Gets the product path occurrence for this product. |
double |
getQuantity()
Get the quantity amount in the usage link |
String |
getQuantityString()
|
protected ResourceBundle |
getResource()
|
String |
getSerialNumber()
Return the serial number for the instance master item |
SerialNumberMapping |
getSNMapping()
|
String |
getUnitName()
Get a string representation of the units |
QuantityUnit |
getUnits()
Get the units for the quantity. |
UsesOccurrence |
getUsesOccurrence()
Gets the product uses occurrence for this product. |
private void |
initResources()
|
void |
setInstanceMaster(WTProductInstanceMaster instance)
Sets the contained instance. |
protected void |
setInstanceSimply(WTProductInstanceMaster instance)
Sets the contained instance without any side effect. |
void |
setPathOccurrence(PathOccurrence path_occurrence)
Sets the product path occurrence for this product. |
void |
setQuantity(double a_quantity)
Set the quantity amount in the usage link. |
void |
setSNMapping(SerialNumberMapping sn_mapping)
|
void |
setUnit(QuantityUnit a_unit)
Set the units for the quantity. |
void |
setUsesOccurrence(UsesOccurrence uses_occurrence)
Sets the product path occurrence for this product. |
String |
toString()
Returns a string representation of the instanceitem. |
Methods inherited from class wt.clients.beans.explorer.WTBusinessObject |
getAttributeValue, getAttributeValue, getContents, getObject, getOpenIcon, getStandardIcon, getUniqueIdentity, getUses, setIdentity, setObject, setObject, setStandardIcon, setStandardIcon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static ResourceBundle resource
private static String RESOURCE
private SerialNumberMapping snMapping
private PathOccurrence pathOccurrence
private UsesOccurrence usesOccurrence
private double quantity
private QuantityUnit unit
static DecimalFormat df
Constructor Detail |
public InstanceMasterItem() throws WTException
WTException
public InstanceMasterItem(WTProductInstanceMaster instance)
instance
- the contained wt.part.WTProductInstanceMaster.WTProductInstanceMaster
Method Detail |
public void setQuantity(double a_quantity)
a_quantity
- the amountpublic String getQuantityString()
public void setUnit(QuantityUnit a_unit)
a_unit
- the unit to usepublic QuantityUnit getUnits()
public String getUnitName()
public double getQuantity()
public static DecimalFormat getDecimalFormat()
public void setPathOccurrence(PathOccurrence path_occurrence)
WTProductConfiguration
public PathOccurrence getPathOccurrence()
WTProductConfiguration
public void setUsesOccurrence(UsesOccurrence uses_occurrence)
WTProductConfiguration
public UsesOccurrence getUsesOccurrence()
WTProductConfiguration
public void setSNMapping(SerialNumberMapping sn_mapping)
public SerialNumberMapping getSNMapping()
public void setInstanceMaster(WTProductInstanceMaster instance)
instance
- the contained wt.part.WTPart.WTPart
protected void setInstanceSimply(WTProductInstanceMaster instance)
instance
- the contained wt.part.WTProductInstanceMaster.WTProductInstanceMaster
public WTProductInstanceMaster getInstanceMaster()
WTProductInstanceMaster
public void create() throws WTException
WTException
public String getNumber()
public String getName()
public String getSerialNumber()
public String toString()
public String getIdentity()
getIdentity
in interface Identifiable
getIdentity
in class WTBusinessObject
String
private void initResources()
protected ResourceBundle getResource()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |