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

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.layout.PlaceholderToolbarGrid<D,S,P>
      extended by bibliothek.gui.dock.station.toolbar.layout.ModeledPlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P>
          extended by bibliothek.gui.dock.station.toolbar.layout.DockablePlaceholderToolbarGrid<P>
Type Parameters:
P - the kind of object that represents a Dockable

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

An implementation of PlaceholderToolbarGrid that uses Dockables and DockStations.

Author:
Benjamin Sigg

Constructor Summary
DockablePlaceholderToolbarGrid()
          Creates and initializes a new grid
 
Method Summary
protected  bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> createColumn()
          Creates one column.
protected  GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> createGrid()
          Creates a new GridPlaceholderList.
protected  void fill(bibliothek.gui.Dockable dockable, bibliothek.gui.dock.station.support.ConvertedPlaceholderListItem item)
          Called by PlaceholderToolbarGrid.toMap(Map), this method should read persistent data from dockable and write that data into item.
protected  Set<bibliothek.util.Path> getPlaceholders(bibliothek.gui.Dockable dockable)
          Gets all placeholders that are associated with dockable.
 
Methods inherited from class bibliothek.gui.dock.station.toolbar.layout.ModeledPlaceholderToolbarGrid
getModel, onInserted, onInserted, onInserted, onRemoved, onRemoved, onRemoved
 
Methods inherited from class bibliothek.gui.dock.station.toolbar.layout.PlaceholderToolbarGrid
allColumns, bind, clear, columns, fromMap, fromMap, get, get, get, getColumn, getColumn, getColumn, getColumnContent, getColumnCount, getLine, getLine, getLine, getLine, getLineCount, getStrategy, getTotalColumnCount, hasPlaceholder, init, insert, insert, insert, insertPlaceholder, items, move, put, remove, setStrategy, size, toMap, toMap, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockablePlaceholderToolbarGrid

public DockablePlaceholderToolbarGrid()
Creates and initializes a new grid

Method Detail

createColumn

protected bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> createColumn()
Description copied from class: PlaceholderToolbarGrid
Creates one column.

Specified by:
createColumn in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Returns:
a new, empty list

createGrid

protected GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> createGrid()
Description copied from class: PlaceholderToolbarGrid
Creates a new GridPlaceholderList.

Specified by:
createGrid in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Returns:
the new, empty grid

getPlaceholders

protected Set<bibliothek.util.Path> getPlaceholders(bibliothek.gui.Dockable dockable)
Description copied from class: PlaceholderToolbarGrid
Gets all placeholders that are associated with dockable.

Specified by:
getPlaceholders in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Parameters:
dockable - some element used by this grid
Returns:
the placeholders

fill

protected void fill(bibliothek.gui.Dockable dockable,
                    bibliothek.gui.dock.station.support.ConvertedPlaceholderListItem item)
Description copied from class: PlaceholderToolbarGrid
Called by PlaceholderToolbarGrid.toMap(Map), this method should read persistent data from dockable and write that data into item.

Specified by:
fill in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
Parameters:
dockable - the dockable to read
item - the item to write into