wt.clients.prodmgmt
Class PartMasterItem

java.lang.Object
  extended bywt.clients.beans.explorer.WTBusinessObject
      extended bywt.clients.prodmgmt.PartMasterItem
All Implemented Interfaces:
Explorable, Identifiable, ReferenceHolder, Serializable
Direct Known Subclasses:
ConfiguredPartMasterItem

public class PartMasterItem
extends WTBusinessObject

PartMasterItem is a wrapper class for viewing WTPartMaster objects. It extends WTBusinessObject to ease implementing the wt.clients.beans.explorer.Explorable interface and allowing viewing in the Product Information Explorer.

Supported API: true

Extendable: true

See Also:
WTPartMaster, Explorable, Serialized Form

Field Summary
private static ResourceBundle resource
           
private static String RESOURCE
           
 
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject
 
Constructor Summary
PartMasterItem()
          Constructs a new PartMasterItem.
PartMasterItem(WTPartMaster part)
          Constructs a new PartMasterItem.
 
Method Summary
 void create()
          Create a new contained partmaster for this PartMasterItem.
 String getIdentity()
          Returns the identity of this object.
 Timestamp getLastUpdatedDate()
           
 String getName()
          Returns the current name of this PartMasterItem.
 String getNumber()
          Returns the current number of this PartMasterItem.
 WTPartMaster getPartMaster()
          Return the contained WTPart object.
protected  ResourceBundle getResource()
           
private  void initResources()
           
 void setPartMaster(WTPartMaster part)
          Sets the contained part.
protected  void setPartSimply(WTPartMaster part)
          Sets the contained part without any side effect.
 String toString()
          Returns a string representation of the partitem.
 
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

resource

private static ResourceBundle resource

RESOURCE

private static String RESOURCE
Constructor Detail

PartMasterItem

public PartMasterItem()
               throws WTException
Constructs a new PartMasterItem.

Throws:
WTException

PartMasterItem

public PartMasterItem(WTPartMaster part)
Constructs a new PartMasterItem.

Parameters:
part - the contained wt.part.WTPartMaster.
See Also:
WTPartMaster
Method Detail

setPartMaster

public void setPartMaster(WTPartMaster part)
Sets the contained part. This will initialize many of the attributes in the PartMasterItem class.

Parameters:
part - the contained wt.part.WTPart.
See Also:
WTPart

setPartSimply

protected void setPartSimply(WTPartMaster part)
Sets the contained part without any side effect.

Parameters:
part - the contained wt.part.WTPartMaster.
See Also:
WTPartMaster

getPartMaster

public WTPartMaster getPartMaster()
Return the contained WTPart object.

Returns:
the contained wt.part.WTPartMaster.
See Also:
WTPartMaster

create

public void create()
            throws WTException
Create a new contained partmaster for this PartMasterItem.

Throws:
WTException

getNumber

public String getNumber()
Returns the current number of this PartMasterItem.

Returns:
the current number of this PartMasterItem.

getName

public String getName()
Returns the current name of this PartMasterItem.

Returns:
the current name of this PartMasterItem.

toString

public String toString()
Returns a string representation of the partitem.

Returns:
a string representation of the partitem.

getIdentity

public String getIdentity()
Returns the identity of this object.

Specified by:
getIdentity in interface Identifiable
Overrides:
getIdentity in class WTBusinessObject
Returns:
athe identity of this object.
See Also:
String

initResources

private void initResources()

getResource

protected ResourceBundle getResource()

getLastUpdatedDate

public Timestamp getLastUpdatedDate()