org.noos.xing.mydoggy.plaf.ui.content
Class MyDoggyDesktopContentManagerUI

java.lang.Object
  extended by org.noos.xing.mydoggy.plaf.PropertyChangeEventSource
      extended by org.noos.xing.mydoggy.plaf.ui.content.MyDoggyContentManagerUI<org.noos.xing.mydoggy.DesktopContentUI>
          extended by org.noos.xing.mydoggy.plaf.ui.content.MyDoggyDesktopContentManagerUI
All Implemented Interfaces:
PropertyChangeListener, EventListener, org.noos.xing.mydoggy.ContentManagerUI<org.noos.xing.mydoggy.DesktopContentUI>, org.noos.xing.mydoggy.DesktopContentManagerUI, org.noos.xing.mydoggy.Observable, Cleaner, PlafContentManagerUI

public class MyDoggyDesktopContentManagerUI
extends MyDoggyContentManagerUI<org.noos.xing.mydoggy.DesktopContentUI>
implements org.noos.xing.mydoggy.DesktopContentManagerUI, PlafContentManagerUI

Author:
Angelo De Caro (angelo.decaro@gmail.com)

Nested Class Summary
 class MyDoggyDesktopContentManagerUI.ComponentListener
           
 class MyDoggyDesktopContentManagerUI.DetachedListener
           
 class MyDoggyDesktopContentManagerUI.DisabledIconListener
           
 class MyDoggyDesktopContentManagerUI.EnabledListener
           
 class MyDoggyDesktopContentManagerUI.ForegroundListener
           
 class MyDoggyDesktopContentManagerUI.IconListener
           
 class MyDoggyDesktopContentManagerUI.MaximizedListener
           
 class MyDoggyDesktopContentManagerUI.MinimizedListener
           
 class MyDoggyDesktopContentManagerUI.PopupMenuListener
           
 class MyDoggyDesktopContentManagerUI.PopupMouseListener
           
 class MyDoggyDesktopContentManagerUI.TitleListener
           
 class MyDoggyDesktopContentManagerUI.ToolTipTextListener
           
 
Nested classes/interfaces inherited from class org.noos.xing.mydoggy.plaf.ui.content.MyDoggyContentManagerUI
MyDoggyContentManagerUI.ContentDialogFocusListener, MyDoggyContentManagerUI.ContentManagerUIPersistenceDelegateFilter, MyDoggyContentManagerUI.ContentUIListener
 
Nested classes/interfaces inherited from class org.noos.xing.mydoggy.plaf.PropertyChangeEventSource
PropertyChangeEventSource.ExcludePropertyChangeListener
 
Field Summary
protected  int contentIndex
           
protected  JDesktopPane desktopPane
           
protected  JPopupMenu popupMenu
           
 
Fields inherited from class org.noos.xing.mydoggy.plaf.ui.content.MyDoggyContentManagerUI
closeable, contentManager, contentManagerUI, contentManagerUIListeners, contentUIListener, contentUIMap, contentValueAdjusting, detachable, installed, internalPropertyChangeSupport, lastSelected, maximizable, maximizedContent, minimizable, popupMenuEnabled, previousLastSelected, resourceManager, toolWindowManager, uninstalling, valueAdjusting
 
Fields inherited from class org.noos.xing.mydoggy.plaf.PropertyChangeEventSource
firePublicEventQuestion, plafChangeSupport, publicChangeSupport, publicEvent
 
Constructor Summary
MyDoggyDesktopContentManagerUI()
           
 
Method Summary
protected  Object addUIForContent(org.noos.xing.mydoggy.Content content, Object... constraints)
           
protected  JInternalFrame getInternalFrame(org.noos.xing.mydoggy.Content content)
           
 JPopupMenu getPopupMenu()
          Returns the default popup menu for the contents.
protected  void initComponents()
           
protected  void initListeners()
           
 PlafContentManagerUI install(org.noos.xing.mydoggy.ContentManagerUI oldContentManagerUI, org.noos.xing.mydoggy.ToolWindowManager manager)
          Configures this manager appropriate for the specified toolwindow manager.
protected  void removeUIForContent(org.noos.xing.mydoggy.Content content)
           
 void selectNextContent(org.noos.xing.mydoggy.Content content)
           
 void setPopupMenu(JPopupMenu popupMenu)
          Sets the default popup menu for the contents.
 void setSelected(org.noos.xing.mydoggy.Content content, boolean selected)
          Sets whether or not the content is selected.
protected  void setupActions()
           
 void uninstall()
          Reverses configuration which was done during install(...)
 void updateUI()
          Calls the updateUI method on all components used by this manager.
 
Methods inherited from class org.noos.xing.mydoggy.plaf.ui.content.MyDoggyContentManagerUI
addContent, addContentManagerUIListener, findAndRequestFocus, fireContentManagerUIProperty, fireContentUIDetached, fireContentUIRemoving, getContentManagerUiListener, getContentUI, getMaximizedContent, isCloseable, isContentManagerEnabled, isDetachable, isFocusAncestor, isInstalled, isMaximizable, isMinimizable, isPopupMenuEnabled, isSelected, propertyChange, removeContent, removeContentManagerUIListener, setCloseable, setContentManagerUI, setDetachable, setMaximizable, setMinimizable, setPopupMenuEnabled
 
Methods inherited from class org.noos.xing.mydoggy.plaf.PropertyChangeEventSource
addPlafPropertyChangeListener, addPlafPropertyChangeListener, addPlafPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, cleanup, firePlafPropertyChangeEvent, firePlafPropertyChangeEvent, firePropertyChangeEvent, firePropertyChangeEvent, firePropertyChangeEvent, firePropertyChangeEvent, firePropertyChangeEventPublicListenerOnly, getPlafPropertyChangeListeners, getPlafPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeListeners, initPropertyChangeSupport, removePlafPropertyChangeListener, removePlafPropertyChangeListener, removePlafPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.noos.xing.mydoggy.ContentManagerUI
addContentManagerUIListener, getContentManagerUiListener, getContentUI, isCloseable, isDetachable, isMaximizable, isMinimizable, isPopupMenuEnabled, removeContentManagerUIListener, setCloseable, setDetachable, setMaximizable, setMinimizable, setPopupMenuEnabled
 
Methods inherited from interface org.noos.xing.mydoggy.Observable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface org.noos.xing.mydoggy.plaf.ui.content.PlafContentManagerUI
addContent, isInstalled, isSelected, removeContent
 

Field Detail

desktopPane

protected JDesktopPane desktopPane

contentIndex

protected int contentIndex

popupMenu

protected JPopupMenu popupMenu
Constructor Detail

MyDoggyDesktopContentManagerUI

public MyDoggyDesktopContentManagerUI()
Method Detail

install

public PlafContentManagerUI install(org.noos.xing.mydoggy.ContentManagerUI oldContentManagerUI,
                                    org.noos.xing.mydoggy.ToolWindowManager manager)
Description copied from interface: PlafContentManagerUI
Configures this manager appropriate for the specified toolwindow manager. During this phase the new ContentManagerUI imports all properties the old manager and initialize all needed parts. Furthermore all previous registered content are added.

Specified by:
install in interface PlafContentManagerUI
Parameters:
oldContentManagerUI - the old ContentManagerUI
manager - the component where this UI delegate is being installed
Returns:
this PlafContentManagerUI.
See Also:
PlafContentManagerUI.uninstall()

uninstall

public void uninstall()
Description copied from interface: PlafContentManagerUI
Reverses configuration which was done during install(...).

Specified by:
uninstall in interface PlafContentManagerUI
See Also:
PlafContentManagerUI.install(org.noos.xing.mydoggy.ContentManagerUI, org.noos.xing.mydoggy.ToolWindowManager)

getPopupMenu

public JPopupMenu getPopupMenu()
Description copied from interface: PlafContentManagerUI
Returns the default popup menu for the contents.

Specified by:
getPopupMenu in interface PlafContentManagerUI
Returns:
the default PopupMenu for the contents.

setPopupMenu

public void setPopupMenu(JPopupMenu popupMenu)
Description copied from interface: PlafContentManagerUI
Sets the default popup menu for the contents. If a content has no specific popup menu then the content manager will show popupMenu.

Specified by:
setPopupMenu in interface PlafContentManagerUI
Parameters:
popupMenu - the default popup menu for the contents.

setSelected

public void setSelected(org.noos.xing.mydoggy.Content content,
                        boolean selected)
Description copied from interface: PlafContentManagerUI
Sets whether or not the content is selected.

Specified by:
setSelected in interface PlafContentManagerUI
Parameters:
content - on which change the selection state.
selected - whether or not the content should be selected.

updateUI

public void updateUI()
Description copied from interface: PlafContentManagerUI
Calls the updateUI method on all components used by this manager.

Specified by:
updateUI in interface PlafContentManagerUI

selectNextContent

public void selectNextContent(org.noos.xing.mydoggy.Content content)
Specified by:
selectNextContent in interface PlafContentManagerUI

initComponents

protected void initComponents()

initListeners

protected void initListeners()

setupActions

protected void setupActions()

addUIForContent

protected Object addUIForContent(org.noos.xing.mydoggy.Content content,
                                 Object... constraints)
Specified by:
addUIForContent in class MyDoggyContentManagerUI<org.noos.xing.mydoggy.DesktopContentUI>

removeUIForContent

protected void removeUIForContent(org.noos.xing.mydoggy.Content content)
Specified by:
removeUIForContent in class MyDoggyContentManagerUI<org.noos.xing.mydoggy.DesktopContentUI>

getInternalFrame

protected JInternalFrame getInternalFrame(org.noos.xing.mydoggy.Content content)


Copyright © 2012. All Rights Reserved.