bibliothek.gui.dock.station.toolbar.layout
Class PerspectiveGridPlaceholderList

java.lang.Object
  extended by bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P>,GridPlaceholderList.ColumnItem<D,S,P>,GridPlaceholderList.Column<D,S,P>>
      extended by bibliothek.gui.dock.station.toolbar.layout.GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
          extended by bibliothek.gui.dock.station.toolbar.layout.PerspectiveGridPlaceholderList

public class PerspectiveGridPlaceholderList
extends GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>

Represents a list of lists of PerspectiveDockables and placeholders.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.toolbar.layout.GridPlaceholderList
GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>, GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.support.PlaceholderList
bibliothek.gui.dock.station.support.PlaceholderList.Filter<M>, bibliothek.gui.dock.station.support.PlaceholderList.Item, bibliothek.gui.dock.station.support.PlaceholderList.Level
 
Constructor Summary
PerspectiveGridPlaceholderList()
           
 
Method Summary
protected  bibliothek.gui.dock.perspective.PerspectiveDockable[] getItemChildren(bibliothek.gui.dock.perspective.PerspectiveStation station)
          Gets all the children of station
protected  bibliothek.util.Path getItemPlaceholder(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
          Gest the placeholder of dockable.
protected  bibliothek.gui.dock.station.support.PlaceholderMap getItemPlaceholders(bibliothek.gui.dock.perspective.PerspectiveStation station)
          Gets all the placeholders of station
protected  bibliothek.gui.dock.perspective.PerspectiveStation itemToStation(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
          Converts the item dockable to a station.
protected  void setItemPlaceholders(bibliothek.gui.dock.perspective.PerspectiveStation station, bibliothek.gui.dock.station.support.PlaceholderMap map)
          Sets the placeholders that are to be used by station
 
Methods inherited from class bibliothek.gui.dock.station.toolbar.layout.GridPlaceholderList
createColumn, getChildren, getConverter, getPlaceholder, getPlaceholders, setConverter, setPlaceholders, toStation, toString
 
Methods inherited from class bibliothek.gui.dock.station.support.PlaceholderList
addPlaceholder, baseToLevel, bind, clear, dockables, getDockableAt, getDockableIndex, getItem, getItem, getListIndex, getListIndex, getMap, getMetaMap, getNextListIndex, getStrategy, hasPlaceholder, insertAllPlaceholders, levelToBase, list, listPlaceholders, purePlaceholders, put, put, read, read, remove, remove, removeAll, removeAll, setStrategy, size, toMap, toString, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerspectiveGridPlaceholderList

public PerspectiveGridPlaceholderList()
Method Detail

itemToStation

protected bibliothek.gui.dock.perspective.PerspectiveStation itemToStation(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Description copied from class: GridPlaceholderList
Converts the item dockable to a station.

Specified by:
itemToStation in class GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
Parameters:
dockable - the item to convert
Returns:
the converted item or null

getItemChildren

protected bibliothek.gui.dock.perspective.PerspectiveDockable[] getItemChildren(bibliothek.gui.dock.perspective.PerspectiveStation station)
Description copied from class: GridPlaceholderList
Gets all the children of station

Specified by:
getItemChildren in class GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
Parameters:
station - the station whose children are searched
Returns:
all the children

getItemPlaceholder

protected bibliothek.util.Path getItemPlaceholder(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Description copied from class: GridPlaceholderList
Gest the placeholder of dockable.

Specified by:
getItemPlaceholder in class GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
Parameters:
dockable - some element of this grid
Returns:
the placeholder or null

getItemPlaceholders

protected bibliothek.gui.dock.station.support.PlaceholderMap getItemPlaceholders(bibliothek.gui.dock.perspective.PerspectiveStation station)
Description copied from class: GridPlaceholderList
Gets all the placeholders of station

Specified by:
getItemPlaceholders in class GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
Parameters:
station - some station
Returns:
all the placeholders, can be null

setItemPlaceholders

protected void setItemPlaceholders(bibliothek.gui.dock.perspective.PerspectiveStation station,
                                   bibliothek.gui.dock.station.support.PlaceholderMap map)
Description copied from class: GridPlaceholderList
Sets the placeholders that are to be used by station

Specified by:
setItemPlaceholders in class GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
Parameters:
station - the station whose layout is to be updated
map - the new placeholders, never null