Package com.explodingpixels.macwidgets
Interface SourceListExpansionListener
public interface SourceListExpansionListener
An interface for listening for expansion events.
It handles expansion events for both
SourceListItem and SourceListCategory.-
Method Summary
Modifier and TypeMethodDescriptionbooleanCalled before collapsing aSourceListItemin aSourceList.booleanCalled before expanding aSourceListCategoryin aSourceList.booleanCalled before expanding aSourceListItemin aSourceList.booleanCalled before collapsing aSourceListCategoryin aSourceList.voidCalled when aSourceListCategoryis collapsed in aSourceList.voidsourceListCategoryExpanded(SourceListCategory category) Called when aSourceListCategoryis expanded in aSourceList.voidCalled when aSourceListItemis collapsed in aSourceList.voidCalled when aSourceListItemis expanded in aSourceList.
-
Method Details
-
shouldExpandSourceListItem
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
Called when aSourceListItemis expanded in aSourceList. The method will only be called ifshouldExpandSourceListItem(SourceListItem)returns true.- Parameters:
item- the item that was expanded.
-
shouldCollapseSourceListItem
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
Called when aSourceListItemis collapsed in aSourceList. The method will only be called ifshouldCollapseSourceListItem(SourceListItem)returns true.- Parameters:
item- the item that was collapsed.
-
shouldExpandSourceListCategory
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
Called when aSourceListCategoryis expanded in aSourceList. The method will only be called ifshouldExpandSourceListCategory(SourceListCategory)returns true.- Parameters:
category- the category that was expanded.
-
shouldToCollapseSourceListCategory
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
Called when aSourceListCategoryis collapsed in aSourceList. The method will only be called ifshouldToCollapseSourceListCategory(SourceListCategory)returns true.- Parameters:
category- the category that was collapsed.
-