org.noos.xing.mydoggy.plaf.ui
Class ToolWindowDescriptor
java.lang.Object
org.noos.xing.mydoggy.plaf.ui.ToolWindowDescriptor
- All Implemented Interfaces:
- PropertyChangeListener, EventListener, Cleaner, DockableDescriptor
public class ToolWindowDescriptor
- extends Object
- implements PropertyChangeListener, DockableDescriptor
- Author:
- Angelo De Caro (angelo.decaro@gmail.com)
manager
protected MyDoggyToolWindowManager manager
toolWindow
protected MyDoggyToolWindow toolWindow
cleaner
protected CleanerAggregator cleaner
anchorPositionLocked
protected boolean anchorPositionLocked
floatingWindow
protected boolean floatingWindow
toolWindowPanel
protected ToolWindowPanel toolWindowPanel
focusListener
protected PropertyChangeListener focusListener
dockedContainer
protected ToolWindowContainer dockedContainer
floatingContainer
protected ToolWindowContainer floatingContainer
slidingContainer
protected ToolWindowContainer slidingContainer
floatingLiveContainer
protected ToolWindowContainer floatingLiveContainer
focusRequester
protected Component focusRequester
component
protected Component component
representativeAnchor
protected JLabel representativeAnchor
divederLocation
protected int divederLocation
tempDivederLocation
protected int tempDivederLocation
floatingTypeDescriptor
protected org.noos.xing.mydoggy.FloatingTypeDescriptor floatingTypeDescriptor
dockedTypeDescriptor
protected org.noos.xing.mydoggy.DockedTypeDescriptor dockedTypeDescriptor
slidingTypeDescriptor
protected org.noos.xing.mydoggy.SlidingTypeDescriptor slidingTypeDescriptor
floatingLiveTypeDescriptor
protected org.noos.xing.mydoggy.FloatingLiveTypeDescriptor floatingLiveTypeDescriptor
representativeAnchorDescriptor
protected org.noos.xing.mydoggy.RepresentativeAnchorDescriptor representativeAnchorDescriptor
externTypeDescriptor
protected org.noos.xing.mydoggy.ToolWindowTypeDescriptor externTypeDescriptor
externalFocusValueAdjusting
public boolean externalFocusValueAdjusting
fullExternalFocusValueAdjusting
public static boolean fullExternalFocusValueAdjusting
oldType
protected org.noos.xing.mydoggy.ToolWindowType oldType
popupMenu
protected JPopupMenu popupMenu
old
protected JMenu old
popupUpdaterList
protected ArrayList<PopupUpdater> popupUpdaterList
ToolWindowDescriptor
public ToolWindowDescriptor(MyDoggyToolWindowManager manager,
MyDoggyToolWindow toolWindow)
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange in interface PropertyChangeListener
toString
public String toString()
- Overrides:
toString in class Object
getAnchor
public org.noos.xing.mydoggy.ToolWindowAnchor getAnchor()
- Specified by:
getAnchor in interface DockableDescriptor
setAnchorPositionLocked
public void setAnchorPositionLocked(boolean anchorPositionLocked)
- Specified by:
setAnchorPositionLocked in interface DockableDescriptor
isAnchorPositionLocked
public boolean isAnchorPositionLocked()
- Specified by:
isAnchorPositionLocked in interface DockableDescriptor
setAvailable
public void setAvailable(boolean available)
- Specified by:
setAvailable in interface DockableDescriptor
isAvailable
public boolean isAvailable()
- Specified by:
isAvailable in interface DockableDescriptor
isAvailableCountable
public boolean isAvailableCountable()
- Specified by:
isAvailableCountable in interface DockableDescriptor
getDockableType
public DockableDescriptor.DockableType getDockableType()
- Specified by:
getDockableType in interface DockableDescriptor
getDockable
public org.noos.xing.mydoggy.Dockable getDockable()
- Specified by:
getDockable in interface DockableDescriptor
getRepresentativeAnchor
public JLabel getRepresentativeAnchor(Component parent)
- Specified by:
getRepresentativeAnchor in interface DockableDescriptor
getRepresentativeAnchor
public JLabel getRepresentativeAnchor()
- Specified by:
getRepresentativeAnchor in interface DockableDescriptor
resetRepresentativeAnchor
public void resetRepresentativeAnchor()
- Specified by:
resetRepresentativeAnchor in interface DockableDescriptor
getAnchorIndex
public int getAnchorIndex()
- Specified by:
getAnchorIndex in interface DockableDescriptor
updateRepresentativeAnchor
public void updateRepresentativeAnchor()
- Specified by:
updateRepresentativeAnchor in interface DockableDescriptor
getManager
public MyDoggyToolWindowManager getManager()
- Specified by:
getManager in interface DockableDescriptor
getToolBar
public MyDoggyToolWindowBar getToolBar(org.noos.xing.mydoggy.ToolWindowAnchor anchor)
- Specified by:
getToolBar in interface DockableDescriptor
getToolBar
public MyDoggyToolWindowBar getToolBar()
- Specified by:
getToolBar in interface DockableDescriptor
isDragImageAvailable
public boolean isDragImageAvailable()
- Specified by:
isDragImageAvailable in interface DockableDescriptor
getComponentForDragImage
public Component getComponentForDragImage()
- Specified by:
getComponentForDragImage in interface DockableDescriptor
setAnchor
public void setAnchor(org.noos.xing.mydoggy.ToolWindowAnchor anchor,
int index)
- Specified by:
setAnchor in interface DockableDescriptor
getCleaner
public CleanerAggregator getCleaner()
- Specified by:
getCleaner in interface DockableDescriptor
cleanup
public void cleanup()
- Specified by:
cleanup in interface Cleaner
getToolWindow
public MyDoggyToolWindow getToolWindow()
getToolWindowPanel
public ToolWindowPanel getToolWindowPanel()
getComponent
public Component getComponent()
setComponent
public void setComponent(Component component)
getDividerLocation
public int getDividerLocation()
setDividerLocation
public void setDividerLocation(int divederLocation)
getTempDivederLocation
public int getTempDivederLocation()
setTempDivederLocation
public void setTempDivederLocation(int tempDivederLocation)
isFloatingWindow
public boolean isFloatingWindow()
setFloatingWindow
public void setFloatingWindow(boolean floatingWindow)
isIdVisibleOnTitleBar
public boolean isIdVisibleOnTitleBar()
updateUI
public void updateUI()
getManagerBounds
public Rectangle getManagerBounds()
getWindowAncestor
public Window getWindowAncestor()
getToolWindowContainer
public ToolWindowContainer getToolWindowContainer()
getToolWindowContainer
public ToolWindowContainer getToolWindowContainer(org.noos.xing.mydoggy.ToolWindowType type)
- Returns the ToolWindowContainer binded to the specified
type.
- Parameters:
type - tool window type.
- Returns:
- the ToolWindowContainer binded to the specified
type. - See Also:
ToolWindowContainer
getTypeDescriptor
public org.noos.xing.mydoggy.ToolWindowTypeDescriptor getTypeDescriptor(org.noos.xing.mydoggy.ToolWindowType type)
- This method retrieves the TypeDescriptor for
type that the tool uses to modify the behaviours
of that type. The modifications are visible only for this tool.
- Parameters:
type - the tool window type.
- Returns:
- the type descriptor for
type.
getDockedTypeDescriptor
public org.noos.xing.mydoggy.DockedTypeDescriptor getDockedTypeDescriptor()
getTypeDescriptor
public org.noos.xing.mydoggy.ToolWindowTypeDescriptor getTypeDescriptor()
getRepresentativeAnchorDescriptor
public org.noos.xing.mydoggy.RepresentativeAnchorDescriptor getRepresentativeAnchorDescriptor()
hideToolWindow
public void hideToolWindow()
assignFocus
public void assignFocus()
showPopupMenu
public void showPopupMenu(Component source,
int x,
int y)
addPopupUpdater
public void addPopupUpdater(PopupUpdater popupUpdater)
removePopupUpdater
public void removePopupUpdater(PopupUpdater popupUpdater)
addTypeDescriptorChangePropertyListener
public void addTypeDescriptorChangePropertyListener(PropertyChangeListener listener)
removeTypeDescriptorChangePropertyListener
public void removeTypeDescriptorChangePropertyListener(PropertyChangeListener listener)
removeFloatingLiveWindow
public void removeFloatingLiveWindow()
getFloatingLiveWindow
public FloatingLiveWindow getFloatingLiveWindow()
removeFloatingWindow
public void removeFloatingWindow()
getFloatingWindow
public FloatingWindow getFloatingWindow()
getScreenWindowBounds
public Rectangle getScreenWindowBounds()
addCommonToolWindowAction
public void addCommonToolWindowAction(org.noos.xing.mydoggy.ToolWindowAction toolWindowAction)
removeCommonToolWindowAction
public void removeCommonToolWindowAction(String id)
containsToolWindowAction
public boolean containsToolWindowAction(org.noos.xing.mydoggy.ToolWindowTypeDescriptor except,
String id)
containsToolWindowAction
public boolean containsToolWindowAction(org.noos.xing.mydoggy.ToolWindowTypeDescriptor except,
org.noos.xing.mydoggy.ToolWindowAction action)
initContainers
protected void initContainers()
initToolWindowContainers
protected void initToolWindowContainers()
initListeners
protected void initListeners()
initToolWindowActions
protected void initToolWindowActions()
initTypeDescriptors
protected void initTypeDescriptors()
initPopupMenu
protected void initPopupMenu()
addPopupAction
protected void addPopupAction(JPopupMenu popupMenu,
org.noos.xing.mydoggy.ToolWindowAction toolWindowAction)
disableExternalFocusValueAdjustingLater
public void disableExternalFocusValueAdjustingLater()
disableFullExternalFocusValueAdjustingLater
public void disableFullExternalFocusValueAdjustingLater()
Copyright © 2012. All Rights Reserved.