Interface INamedContainer

All Superinterfaces:
IContainer, INamedWidget, IWidget, IWritable, Serializable

public interface INamedContainer extends IContainer, INamedWidget
INamedContainer
  • Method Details

    • add

      void add(IWidget widget)
      Add the specified widget to the container.
      Parameters:
      widget - the widget to add to the container.
    • addAll

      void addAll(INamedContainer container)
      addAll
      Parameters:
      container - the container to add to the container.
    • addAfter

      void addAfter(IWidget newWidget, IWidget refWidget)
      Add the specified widget after the refWidget
      Parameters:
      newWidget - the widget to add to the container.
      refWidget - the reference widget
    • add

      void add(IWidget widget, int pos)
      Add the specified widget to the container.
      Parameters:
      widget - the widget to add to the container.
      pos - the position
    • addLast

      void addLast(IWidget widget)
      Add the specified widget to the container in the last place.
      Parameters:
      widget - the widget to add to the container.
    • addFirst

      void addFirst(IWidget widget)
      Add the specified widget to the container in the first place.
      Parameters:
      widget - the widget to add to the container.
    • remove

      void remove(IWidget widget)
      Remove the specified widget from the container.
      Parameters:
      widget - the widget to remove from the container.
    • clear

      void clear()
      Removes all widgets from the container.
    • getIndex

      int getIndex(IWidget widget)
      get Index of the widget
      Parameters:
      widget - the widget
      Returns:
      the index of the widget
    • getIndex

      int getIndex(Object key)
      get Index of the widget by key
      Parameters:
      key - the key
      Returns:
      the index of the widget
    • getWidgets

      List<IWidget> getWidgets()
      Returns the widgets contained within the container as a list.
      Specified by:
      getWidgets in interface IContainer
      Returns:
      List the widgets contained within the container.
    • get

      INamedWidget get(Object key)
      get
      Parameters:
      key - the key
      Returns:
      the widget
    • size

      int size()
      size
      Returns:
      the number of widgets in the container.