Package org.jppf.ui.options.docking
Class ViewDescriptor
java.lang.Object
org.jppf.ui.options.docking.ViewDescriptor
Encapsulates a JFrame and main container for a given view id.
-
Constructor Summary
ConstructorsConstructorDescriptionViewDescriptor(Window frame, OptionContainer container) Initialize this view descriptor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a component to this view.Get the components attached to this view.Get the main container to which other elements are attached.getFrame()Get the frame for this view.voidRemove a component from this view.
-
Constructor Details
-
ViewDescriptor
Initialize this view descriptor.- Parameters:
frame- the frame for this view.container- the main container to which other elements are attached.
-
-
Method Details
-
getFrame
Get the frame for this view.- Returns:
- a
Windowinstance.
-
getContainer
Get the main container to which other elements are attached.- Returns:
- an
OptionElementinstance.
-
getComponents
Get the components attached to this view.- Returns:
- a Set of components.
-
addComponent
Add a component to this view.- Parameters:
desc- the component to add.
-
removeComponent
Remove a component from this view.- Parameters:
desc- the component to remove.
-