All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, io.clogr.Clogged, Box, Component, CompositeComponent, Container, LayoutComponent, Panel, Displayable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject, Iterable<Component>

public class NamePanel extends AbstractPanel
A panel allowing entry of the "N" type of a vCard text/directory profile as defined in RFC 2426, "vCard MIME Directory Profile".
Author:
Garret Wilson
  • Constructor Details

    • NamePanel

      public NamePanel()
      Default constructor with a default line flow layout.
    • NamePanel

      public NamePanel(Layout<?> layout)
      Layout constructor.
      Parameters:
      layout - The layout definition for the container.
      Throws:
      NullPointerException - if the given layout is null.
  • Method Details

    • getFamilyNameControl

      public TextControl<String> getFamilyNameControl()
      Returns:
      The family name text field.
    • getGivenNameControl

      public TextControl<String> getGivenNameControl()
      Returns:
      The given name text field.
    • getAdditionalNameControl

      public TextControl<String> getAdditionalNameControl()
      Returns:
      The additional name text field.
    • getHonorificPrefixControl

      public ListControl<String> getHonorificPrefixControl()
      Returns:
      The honorific prefix list control.
    • getHonorificSuffixControl

      public ListControl<String> getHonorificSuffixControl()
      Returns:
      The honorific suffix list control.
    • setVCardName

      public void setVCardName(com.globalmentor.text.directory.vcard.Name name) throws PropertyVetoException
      Places the name information into the various fields.
      Parameters:
      name - The name to place in the fields, or null if no information should be displayed.
      Throws:
      PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.
    • getVCardName

      public com.globalmentor.text.directory.vcard.Name getVCardName()
      Returns:
      An object representing the VCard name information entered, or null if no name was entered.