|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.beans.Model
com.jgoodies.skeleton.domain.Shaft
public class Shaft
Describes shafts and provides bound bean properties for the shaft and associated comments. Also holds a list of children: segments and flanges.
Segment
,
Flange
,
Serialized FormField Summary | |
---|---|
static String |
PROPERTYNAME_ICE_CLASS
|
static String |
PROPERTYNAME_IDENTIFIER
|
static String |
PROPERTYNAME_INSPECTION
|
static String |
PROPERTYNAME_LENGTH
|
static String |
PROPERTYNAME_MACHINERY
|
static String |
PROPERTYNAME_MATERIAL
|
static String |
PROPERTYNAME_POWER
|
static String |
PROPERTYNAME_SPEED
|
Constructor Summary | |
---|---|
Shaft(String identifier)
Constructs a Shaft with the given identifier. |
Method Summary | |
---|---|
void |
addComponent(Flange flange)
Adds the given flange to this shaft's components. |
void |
addComponent(Segment segment)
Adds the given segment to this shaft's components. |
List |
getComponents()
Returns an unmodifiable List of this shaft's child components: segments and flanges. |
String |
getIceClass()
|
String |
getIdentifier()
Returns this shaft's identifier. |
String |
getInspection()
|
long |
getLength()
|
String |
getMachinery()
|
String |
getMaterial()
|
String |
getPower()
|
String |
getSpeed()
|
void |
removeComponent(Flange flange)
Removes the given flange from this shaft's components. |
void |
removeComponent(Segment segment)
Removes the given segment from this shaft's components. |
void |
setIceClass(String newIceClass)
|
void |
setIdentifier(String newIdentifier)
|
void |
setInspection(String newInspection)
|
void |
setLength(long newLength)
|
void |
setMachinery(String newMachinery)
|
void |
setMaterial(String newMaterial)
|
void |
setPower(String newPower)
|
void |
setSpeed(String newSpeed)
|
String |
toString()
Returns a string representation for this shaft. |
Methods inherited from class com.jgoodies.binding.beans.Model |
---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTYNAME_IDENTIFIER
public static final String PROPERTYNAME_POWER
public static final String PROPERTYNAME_SPEED
public static final String PROPERTYNAME_MATERIAL
public static final String PROPERTYNAME_ICE_CLASS
public static final String PROPERTYNAME_LENGTH
public static final String PROPERTYNAME_MACHINERY
public static final String PROPERTYNAME_INSPECTION
Constructor Detail |
---|
public Shaft(String identifier)
Shaft
with the given identifier.
The list of child components is empty.
identifier
- the initial nameMethod Detail |
---|
public List getComponents()
public void addComponent(Segment segment)
segment
- the segment to addpublic void addComponent(Flange flange)
flange
- the flange to addpublic void removeComponent(Segment segment)
segment
- the segment to removepublic void removeComponent(Flange flange)
flange
- the flange to removepublic String getIceClass()
public String getIdentifier()
public String getInspection()
public long getLength()
public String getMachinery()
public String getMaterial()
public String getPower()
public String getSpeed()
public void setIceClass(String newIceClass)
newIceClass
- The ice class to set.public void setIdentifier(String newIdentifier)
newIdentifier
- the identifier to setpublic void setInspection(String newInspection)
newInspection
- The inspection to set.public void setLength(long newLength)
newLength
- The length to set.public void setMachinery(String newMachinery)
newMachinery
- The machinery to set.public void setMaterial(String newMaterial)
newMaterial
- The material to set.public void setPower(String newPower)
newPower
- The power to set.public void setSpeed(String newSpeed)
newSpeed
- The speed to set.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |