Class ViewDescriptor

java.lang.Object
org.jppf.ui.options.docking.ViewDescriptor

public class ViewDescriptor extends Object
Encapsulates a JFrame and main container for a given view id.
  • Constructor Details

    • ViewDescriptor

      public ViewDescriptor(Window frame, OptionContainer container)
      Initialize this view descriptor.
      Parameters:
      frame - the frame for this view.
      container - the main container to which other elements are attached.
  • Method Details

    • getFrame

      public Window getFrame()
      Get the frame for this view.
      Returns:
      a Window instance.
    • getContainer

      public OptionContainer getContainer()
      Get the main container to which other elements are attached.
      Returns:
      an OptionElement instance.
    • getComponents

      public Set<DetachableComponentDescriptor> getComponents()
      Get the components attached to this view.
      Returns:
      a Set of components.
    • addComponent

      public void addComponent(DetachableComponentDescriptor desc)
      Add a component to this view.
      Parameters:
      desc - the component to add.
    • removeComponent

      public void removeComponent(DetachableComponentDescriptor desc)
      Remove a component from this view.
      Parameters:
      desc - the component to remove.