Package tethys.swing

Class TethysWizardCard<T>

Type Parameters:
T -
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
CalibrationsCard

public abstract class TethysWizardCard<T> extends PamWizardCard<T>
Wizard card with a few extra functions for Tethys.
Author:
dg50
See Also:
  • Constructor Details

    • TethysWizardCard

      public TethysWizardCard(PamWizard pamWizard, String title)
  • Method Details

    • getText

      public String getText(JTextComponent textField)
      Get a string out of a text component, but if the field is empty, return null rather than an empty, 0 length, string.
      Parameters:
      textField -
      Returns:
      string, or null if it's empty.
    • warnNotNull

      public String warnNotNull(Window owner, JTextComponent textComponent, String name)
      Get a string from a text component, and warn if it is empty or null.
      Parameters:
      owner - parent window for warning
      textComponent - text component
      name - control name for warning text
      Returns:
      String if there was one, or null if it was null or empty.
    • checkEmptyFields

      public boolean checkEmptyFields(Object nilusObject)
      Check for required empty fields.
      Parameters:
      nilusObject -
      Returns:
      true if all OK, false if there are required fields