Class AbstractSummaryItem
java.lang.Object
megameklab.ui.generalUnit.summary.AbstractSummaryItem
- All Implemented Interfaces:
SummaryItem
- Direct Known Subclasses:
AmmoSummaryItem,ArmorSummaryItem,CockpitSummaryItem,ControlsSummaryItem,CrewSummaryItem,EngineSummaryItem,EquipmentSummaryItem,FuelSummaryItem,GravDeckSummaryItem,GyroSummaryItem,HardpointSummaryItem,HeatSinkSummaryItem,JumpSummaryItem,KfDriveSummaryItem,LFBatterySummaryItem,LifeBoatSummaryItem,MiscEquipmentSummaryItem,MyomerEnhancementSummaryItem,OtherSummaryItem,PowerAmplifierSummaryItem,PropulsionSummaryItem,RearTurretSummaryItem,SailSummaryItem,SpecialsSummaryItem,SponsonTurretSummaryItem,StructureSummaryItem,TransportSummaryItem,TurretSummaryItem,UnitTypeSummaryItem,WeaponsSummaryItem
This is a base implementation for
SummaryItem. It offers three text items weightLabel,
critLabel and availabilityLabel that should be updated in SummaryItem.refresh(Entity).
These are currently JLabels but JTextFields could also be used (they obviously have to support showing a text but the
common base class of both is JComponent which does not allow setting a text).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JLabelprotected final JLabelprotected final JLabelFields inherited from interface megameklab.ui.generalUnit.summary.SummaryItem
innerLabelBorder, labelBorder, outerLabelBorder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megameklab.ui.generalUnit.summary.SummaryItem
formatCrits, formatWeight, getName, refresh
-
Field Details
-
weightLabel
-
critLabel
-
availabilityLabel
-
-
Constructor Details
-
AbstractSummaryItem
public AbstractSummaryItem()
-
-
Method Details
-
getWeightComponent
- Specified by:
getWeightComponentin interfaceSummaryItem
-
getCritsComponent
- Specified by:
getCritsComponentin interfaceSummaryItem
-
getAvailabilityComponent
- Specified by:
getAvailabilityComponentin interfaceSummaryItem
-