bibliothek.gui.dock.station.toolbar.layout
Class DockableGridPlaceholderList<P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>

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.Dockable,bibliothek.gui.DockStation,P>
          extended by bibliothek.gui.dock.station.toolbar.layout.DockableGridPlaceholderList<P>
Type Parameters:
P - the kind of object that represents a Dockable

public class DockableGridPlaceholderList<P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
extends GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P>

Represents a list of lists of Dockables and placeholders.
Note: this class does not validate its content in any way, it is the clients responsibility to keep the list clean. A good wrapper is PlaceholderToolbarGrid, which adds several convenient methods and ensures that the list of lists always is cleaned up correctly.

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
DockableGridPlaceholderList()
           
 
Method Summary
protected  bibliothek.gui.Dockable[] getItemChildren(bibliothek.gui.DockStation station)
          Gets all the children of station
protected  bibliothek.util.Path getItemPlaceholder(bibliothek.gui.Dockable dockable)
          Gest the placeholder of dockable.
protected  bibliothek.gui.dock.station.support.PlaceholderMap getItemPlaceholders(bibliothek.gui.DockStation station)
          Gets all the placeholders of station
protected  bibliothek.gui.DockStation itemToStation(bibliothek.gui.Dockable dockable)
          Converts the item dockable to a station.
protected  void setItemPlaceholders(bibliothek.gui.DockStation 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
baseToLevel, bind, clear, dockables, getDockableAt, getDockableIndex, getItem, getItem, getListIndex, getMap, getMetaMap, 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

DockableGridPlaceholderList

public DockableGridPlaceholderList()
Method Detail

itemToStation

protected bibliothek.gui.DockStation itemToStation(bibliothek.gui.Dockable dockable)
Description copied from class: GridPlaceholderList
Converts the item dockable to a station.

Specified by:
itemToStation in class GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Parameters:
dockable - the item to convert
Returns:
the converted item or null

getItemChildren

protected bibliothek.gui.Dockable[] getItemChildren(bibliothek.gui.DockStation station)
Description copied from class: GridPlaceholderList
Gets all the children of station

Specified by:
getItemChildren in class GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Parameters:
station - the station whose children are searched
Returns:
all the children

getItemPlaceholder

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

Specified by:
getItemPlaceholder in class GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Parameters:
dockable - some element of this grid
Returns:
the placeholder or null

getItemPlaceholders

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

Specified by:
getItemPlaceholders in class GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Parameters:
station - some station
Returns:
all the placeholders, can be null

setItemPlaceholders

protected void setItemPlaceholders(bibliothek.gui.DockStation 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.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Parameters:
station - the station whose layout is to be updated
map - the new placeholders, never null