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

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.TabbedContentUI>
          extended by org.noos.xing.mydoggy.plaf.ui.content.MyDoggyTabbedContentManagerUI
All Implemented Interfaces:
PropertyChangeListener, EventListener, org.noos.xing.mydoggy.ContentManagerUI, org.noos.xing.mydoggy.Observable, Cleaner, PlafContentManagerUI, org.noos.xing.mydoggy.TabbedContentManagerUI

public class MyDoggyTabbedContentManagerUI
extends MyDoggyContentManagerUI<org.noos.xing.mydoggy.TabbedContentUI>
implements org.noos.xing.mydoggy.TabbedContentManagerUI, PlafContentManagerUI

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

Nested Class Summary
 class MyDoggyTabbedContentManagerUI.ComponentListener
           
 class MyDoggyTabbedContentManagerUI.DetachedListener
           
 class MyDoggyTabbedContentManagerUI.DisabledIconListener
           
 class MyDoggyTabbedContentManagerUI.EnabledListener
           
 class MyDoggyTabbedContentManagerUI.FocusOwnerPropertyChangeListener
           
 class MyDoggyTabbedContentManagerUI.ForegroundListener
           
 class MyDoggyTabbedContentManagerUI.IconListener
           
 class MyDoggyTabbedContentManagerUI.MaximizedListener
           
 class MyDoggyTabbedContentManagerUI.MinimizedListener
           
 class MyDoggyTabbedContentManagerUI.MnemonicListener
           
 class MyDoggyTabbedContentManagerUI.TabbedContentManagerDragListener
           
 class MyDoggyTabbedContentManagerUI.TitleListener
           
 class MyDoggyTabbedContentManagerUI.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
 
Nested classes/interfaces inherited from interface org.noos.xing.mydoggy.TabbedContentManagerUI
org.noos.xing.mydoggy.TabbedContentManagerUI.TabLayout, org.noos.xing.mydoggy.TabbedContentManagerUI.TabPlacement
 
Field Summary
protected  Component componentInFocusRequest
           
protected  MyDoggyTabbedContentManagerUI.FocusOwnerPropertyChangeListener focusOwnerPropertyChangeListener
           
protected  RemoveNotifyDragListener removeNotifyDragListener
           
protected  boolean showAlwaysTab
           
protected  TabbedContentPane tabbedContentPane
           
 
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
MyDoggyTabbedContentManagerUI()
           
 
Method Summary
protected  int addTab(org.noos.xing.mydoggy.Content content, Object... constaints)
           
protected  Object addUIForContent(org.noos.xing.mydoggy.Content content, Object... constaints)
           
 JPopupMenu getPopupMenu()
          Returns the default popup menu for the contents.
 org.noos.xing.mydoggy.TabbedContentManagerUI.TabLayout getTabLayout()
           
 org.noos.xing.mydoggy.TabbedContentManagerUI.TabPlacement getTabPlacement()
           
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.
 boolean isShowAlwaysTab()
           
protected  void removeListeners()
           
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.
 void setShowAlwaysTab(boolean showAlwaysTab)
           
 void setTabLayout(org.noos.xing.mydoggy.TabbedContentManagerUI.TabLayout tabLayout)
           
 void setTabPlacement(org.noos.xing.mydoggy.TabbedContentManagerUI.TabPlacement tabPlacement)
           
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

tabbedContentPane

protected TabbedContentPane tabbedContentPane

showAlwaysTab

protected boolean showAlwaysTab

componentInFocusRequest

protected Component componentInFocusRequest

focusOwnerPropertyChangeListener

protected MyDoggyTabbedContentManagerUI.FocusOwnerPropertyChangeListener focusOwnerPropertyChangeListener

removeNotifyDragListener

protected RemoveNotifyDragListener removeNotifyDragListener
Constructor Detail

MyDoggyTabbedContentManagerUI

public MyDoggyTabbedContentManagerUI()
Method Detail

setTabPlacement

public void setTabPlacement(org.noos.xing.mydoggy.TabbedContentManagerUI.TabPlacement tabPlacement)
Specified by:
setTabPlacement in interface org.noos.xing.mydoggy.TabbedContentManagerUI

getTabPlacement

public org.noos.xing.mydoggy.TabbedContentManagerUI.TabPlacement getTabPlacement()
Specified by:
getTabPlacement in interface org.noos.xing.mydoggy.TabbedContentManagerUI

setTabLayout

public void setTabLayout(org.noos.xing.mydoggy.TabbedContentManagerUI.TabLayout tabLayout)
Specified by:
setTabLayout in interface org.noos.xing.mydoggy.TabbedContentManagerUI

getTabLayout

public org.noos.xing.mydoggy.TabbedContentManagerUI.TabLayout getTabLayout()
Specified by:
getTabLayout in interface org.noos.xing.mydoggy.TabbedContentManagerUI

isShowAlwaysTab

public boolean isShowAlwaysTab()
Specified by:
isShowAlwaysTab in interface org.noos.xing.mydoggy.TabbedContentManagerUI

setShowAlwaysTab

public void setShowAlwaysTab(boolean showAlwaysTab)
Specified by:
setShowAlwaysTab in interface org.noos.xing.mydoggy.TabbedContentManagerUI

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)

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.

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.

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()

removeListeners

protected void removeListeners()

addUIForContent

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

removeUIForContent

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

addTab

protected int addTab(org.noos.xing.mydoggy.Content content,
                     Object... constaints)

setupActions

protected void setupActions()


Copyright © 2012. All Rights Reserved.