wt.clients.replication.unit
Class UnitMasterItem

java.lang.Object
  extended bywt.clients.beans.explorer.WTBusinessObject
      extended bywt.clients.replication.unit.UnitMasterItem
All Implemented Interfaces:
Explorable, Identifiable, ReferenceHolder, Serializable

public class UnitMasterItem
extends WTBusinessObject

UnitMasterItem is a wrapper class for viewing WTUnitMaster 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:
wt.part.WTUnitMaster, Explorable, Serialized Form

Field Summary
private static ResourceBundle resource
           
private static String RESOURCE
           
 
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject
 
Constructor Summary
UnitMasterItem()
          Constructs a new UnitMasterItem.
UnitMasterItem(WTUnitMaster unit)
          Constructs a new UnitMasterItem.
 
Method Summary
 void create()
          Create a new contained unitmaster for this UnitMasterItem.
 String getIdentity()
          Returns the identity of this object.
 String getName()
          Returns the current name of this UnitMasterItem.
 String getNumber()
          Returns the current number of this UnitMasterItem.
protected  ResourceBundle getResource()
           
 WTUnitMaster getUnitMaster()
          Return the contained WTUnit object.
private  void initResources()
           
 void setUnitMaster(WTUnitMaster unit)
          Sets the contained unit.
protected  void setUnitSimply(WTUnitMaster unit)
          Sets the contained unit 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

UnitMasterItem

public UnitMasterItem()
               throws WTException
Constructs a new UnitMasterItem.

Throws:
WTException

UnitMasterItem

public UnitMasterItem(WTUnitMaster unit)
Constructs a new UnitMasterItem.

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

setUnitMaster

public void setUnitMaster(WTUnitMaster unit)
Sets the contained unit. This will initialize many of the attributes in the UnitMasterItem class.

Parameters:
unit - the contained wt.replication.unit.WTUnit.
See Also:
WTUnit

setUnitSimply

protected void setUnitSimply(WTUnitMaster unit)
Sets the contained unit without any side effect.

Parameters:
unit - the contained wt.replication.unit.WTUnitMaster.
See Also:
wt.replication.unit.WTUnittMaster

getUnitMaster

public WTUnitMaster getUnitMaster()
Return the contained WTUnit object.

Returns:
the contained wt.replication.unit.WTUnitMaster.
See Also:
WTUnitMaster

create

public void create()
            throws WTException
Create a new contained unitmaster for this UnitMasterItem.

Throws:
WTException

getNumber

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

Returns:
the current number of this UnitMasterItem.

getName

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

Returns:
the current name of this UnitMasterItem.

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()