Class FluffTab

All Implemented Interfaces:
FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class FluffTab extends ITab implements FocusListener
Panel for editing unit fluff
See Also:
  • Constructor Details

  • Method Details

    • setRefreshedListener

      public void setRefreshedListener(RefreshListener l)
    • focusGained

      public void focusGained(FocusEvent e)
      Specified by:
      focusGained in interface FocusListener
    • focusLost

      public void focusLost(FocusEvent e)
      Specified by:
      focusLost in interface FocusListener
    • commitChanges

      public void commitChanges()
      Commits all pending text changes from the UI to the EntityFluff. This should be called before saving to ensure that fields still focused by the user are persisted, since focusLost may not have fired.
    • refresh

      public void refresh()
      Refreshes all fields from the entity data. This should be called when the entity is changed externally.