org.noos.xing.mydoggy.plaf.ui.content
Interface PlafContentManagerUI

All Known Implementing Classes:
MyDoggyDesktopContentManagerUI, MyDoggyMultiSplitContentManagerUI, MyDoggyTabbedContentManagerUI

public interface PlafContentManagerUI

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

Method Summary
 void addContent(PlafContent content, Object... constraints)
          Adds the ui part of a content.
 JPopupMenu getPopupMenu()
          Returns the default popup menu for the contents.
 PlafContentManagerUI install(org.noos.xing.mydoggy.ContentManagerUI oldContentManagerUI, org.noos.xing.mydoggy.ToolWindowManager manager)
          Configures this manager appropriate for the specified toolwindow manager.
 boolean isInstalled()
          Returns true is the manager is installed, false otherwise.
 boolean isSelected(org.noos.xing.mydoggy.Content content)
          Returns whether or not the specified content is currently selected.
 void removeContent(PlafContent content)
          Removes the ui part of a 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 uninstall()
          Reverses configuration which was done during install(...)
 void updateUI()
          Calls the updateUI method on all components used by this manager.
 

Method Detail

install

PlafContentManagerUI install(org.noos.xing.mydoggy.ContentManagerUI oldContentManagerUI,
                             org.noos.xing.mydoggy.ToolWindowManager manager)
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.

Parameters:
manager - the component where this UI delegate is being installed
oldContentManagerUI - the old ContentManagerUI
Returns:
this PlafContentManagerUI.
Since:
1.3.1
See Also:
uninstall()

uninstall

void uninstall()
Reverses configuration which was done during install(...).

Since:
1.3.1
See Also:
install(org.noos.xing.mydoggy.ContentManagerUI, org.noos.xing.mydoggy.ToolWindowManager)

isInstalled

boolean isInstalled()
Returns true is the manager is installed, false otherwise.

Returns:
true is the manager is installed, false otherwise.
Since:
1.3.1

addContent

void addContent(PlafContent content,
                Object... constraints)
Adds the ui part of a content.

Parameters:
content - the content ui part to be added.
constraints - one or more constraint used to add the ui part of the content.
Since:
1.4.0

removeContent

void removeContent(PlafContent content)
Removes the ui part of a content.

Parameters:
content - the content ui part to be removed.
Since:
1.3.1

isSelected

boolean isSelected(org.noos.xing.mydoggy.Content content)
Returns whether or not the specified content is currently selected.

Parameters:
content - on which check the selection state.
Returns:
true if the content is selected; false otherwise
Since:
1.3.1

setSelected

void setSelected(org.noos.xing.mydoggy.Content content,
                 boolean selected)
Sets whether or not the content is selected.

Parameters:
content - on which change the selection state.
selected - whether or not the content should be selected.
Since:
1.3.1

setPopupMenu

void setPopupMenu(JPopupMenu popupMenu)
Sets the default popup menu for the contents. If a content has no specific popup menu then the content manager will show popupMenu.

Parameters:
popupMenu - the default popup menu for the contents.
Since:
1.3.1

getPopupMenu

JPopupMenu getPopupMenu()
Returns the default popup menu for the contents.

Returns:
the default PopupMenu for the contents.
Since:
1.3.1

updateUI

void updateUI()
Calls the updateUI method on all components used by this manager.

Since:
1.3.1

selectNextContent

void selectNextContent(org.noos.xing.mydoggy.Content content)
Parameters:
content -
Since:
1.4.2


Copyright © 2012. All Rights Reserved.