Package com.explodingpixels.macwidgets
Interface SourceListExpansionListener
-
public interface SourceListExpansionListenerAn interface for listening for expansion events. It handles expansion events for bothSourceListItemandSourceListCategory.
-
-
Method Summary
-
-
-
Method Detail
-
shouldExpandSourceListItem
boolean shouldExpandSourceListItem(SourceListItem item)
Called before expanding aSourceListItemin aSourceList. Determines whether an item is allowed to be expanded or not- Parameters:
item- the item that requests to be expanded.- Returns:
- true if the item is expandable, false otherwise
-
sourceListItemExpanded
void sourceListItemExpanded(SourceListItem item)
Called when aSourceListItemis expanded in aSourceList. The method will only be called ifshouldExpandSourceListItem(SourceListItem)returns true.- Parameters:
item- the item that was expanded.
-
shouldCollapseSourceListItem
boolean shouldCollapseSourceListItem(SourceListItem item)
Called before collapsing aSourceListItemin aSourceList. Determines whether an item is allowed to be collapsed or not- Parameters:
item- the item that requests to be collapsed.- Returns:
- true if the item is collapsable, false otherwise
-
sourceListItemCollapsed
void sourceListItemCollapsed(SourceListItem item)
Called when aSourceListItemis collapsed in aSourceList. The method will only be called ifshouldCollapseSourceListItem(SourceListItem)returns true.- Parameters:
item- the item that was collapsed.
-
shouldExpandSourceListCategory
boolean shouldExpandSourceListCategory(SourceListCategory category)
Called before expanding aSourceListCategoryin aSourceList. Determines whether a category is allowed to be expanded or not- Parameters:
category- the category that requests to be expanded.- Returns:
- true if the item is expandable, false otherwise
-
sourceListCategoryExpanded
void sourceListCategoryExpanded(SourceListCategory category)
Called when aSourceListCategoryis expanded in aSourceList. The method will only be called ifshouldExpandSourceListCategory(SourceListCategory)returns true.- Parameters:
category- the category that was expanded.
-
shouldToCollapseSourceListCategory
boolean shouldToCollapseSourceListCategory(SourceListCategory category)
Called before collapsing aSourceListCategoryin aSourceList. Determines whether a category is allowed to be collapsed or not- Parameters:
category- the category that requests to be collapsed.- Returns:
- true if the item is collapsable, false otherwise
-
sourceListCategoryCollapsed
void sourceListCategoryCollapsed(SourceListCategory category)
Called when aSourceListCategoryis collapsed in aSourceList. The method will only be called ifshouldToCollapseSourceListCategory(SourceListCategory)returns true.- Parameters:
category- the category that was collapsed.
-
-