Package org.jppf.ui.options.docking
Class DetachableComponentDescriptor
java.lang.Object
org.jppf.ui.options.docking.DetachableComponentDescriptor
Describes the state of a component with regard to the view to which it is attached.
-
Constructor Summary
ConstructorsConstructorDescriptionDetachableComponentDescriptor(OptionElement component, Component listenerComponent, Component tabComponent) Initialize this descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGet the described component.Get the container to which the component is currently attached.Get the container to which the component was initially attached.Get the UI component which has the mouse listener.Get the component displayed in the tab.Get the id of the view in which the component is currently displayed.voidsetCurrentContainer(OptionContainer currentContainer) Set the container to which the component is currently attached.voidsetListenerComponent(Component listenerComponent) Set the UI component which has the mouse listener.voidGet the id of the view in which the component is currently displayed.
-
Constructor Details
-
DetachableComponentDescriptor
public DetachableComponentDescriptor(OptionElement component, Component listenerComponent, Component tabComponent) Initialize this descriptor.- Parameters:
component- the component to describe.listenerComponent- the UI component which has the mouse listener.tabComponent- the component displayed in the tab.
-
-
Method Details
-
getComponent
Get the described component.- Returns:
- the component as an
OptionElementobject.
-
getInitialContainer
Get the container to which the component was initially attached.- Returns:
- the initial container as an
OptionContainerobject.
-
getCurrentContainer
Get the container to which the component is currently attached.- Returns:
- the current container as an
OptionContainerobject.
-
setCurrentContainer
Set the container to which the component is currently attached.- Parameters:
currentContainer- the current container as anOptionContainerobject.
-
getViewId
Get the id of the view in which the component is currently displayed.- Returns:
- the view id as a string.
-
setViewId
Get the id of the view in which the component is currently displayed.- Parameters:
viewId- the view id as a string.
-
getListenerComponent
Get the UI component which has the mouse listener.- Returns:
- a
Component.
-
setListenerComponent
Set the UI component which has the mouse listener.- Parameters:
listenerComponent- aComponent.
-
getTabComponent
Get the component displayed in the tab.- Returns:
- a
Component.
-