public class DialogAttributeList2<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends DialogAttribute<G,A,R,ArchetypeAttributeList2>
Constructor and Description |
---|
DialogAttributeList2(@NotNull ArchetypeAttributeList2 ref,
@NotNull javax.swing.JComboBox<?> input1,
@NotNull javax.swing.JComboBox<?> input2,
@NotNull ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
appendSummary(@NotNull javax.swing.text.Document doc,
@NotNull javax.swing.text.Style style)
Appends a summary line for this attribute to a
Document . |
@NotNull java.lang.String |
getObjectText(G gameObject,
@NotNull Archetype<G,A,R> archetype,
@NotNull java.lang.String[] newMsg,
@NotNull ArchetypeType archetypeType)
Returns the attribute text for this attribute.
|
addLine, getRef
public DialogAttributeList2(@NotNull @NotNull ArchetypeAttributeList2 ref, @NotNull @NotNull javax.swing.JComboBox<?> input1, @NotNull @NotNull javax.swing.JComboBox<?> input2, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)
ref
- reference to the attribute datainput1
- the input ui component for editing bits 0-3 of the valueinput2
- the input ui component for editing bits 4+ of the valuearchetypeTypeSet
- the archetype type set@NotNull public @NotNull java.lang.String getObjectText(@NotNull G gameObject, @NotNull @NotNull Archetype<G,A,R> archetype, @NotNull @NotNull java.lang.String[] newMsg, @NotNull @NotNull ArchetypeType archetypeType)
DialogAttribute
getObjectText
in class DialogAttribute<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,ArchetypeAttributeList2>
gameObject
- the ownerarchetype
- the owner's new archetype; it might differ from gameObject
's current archetypenewMsg
- the new "msg" value for the ownerarchetypeType
- the owner's archetype typepublic void appendSummary(@NotNull @NotNull javax.swing.text.Document doc, @NotNull @NotNull javax.swing.text.Style style)
DialogAttribute
Document
.appendSummary
in class DialogAttribute<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,ArchetypeAttributeList2>
doc
- the document to append tostyle
- the style for the new text