|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.toolbar.layout.PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P>
bibliothek.gui.dock.station.toolbar.layout.DockablePlaceholderToolbarGrid<P>
P
- the kind of object that represents a Dockable
public class DockablePlaceholderToolbarGrid<P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
An implementation of PlaceholderToolbarGrid
that uses Dockable
s and DockStation
s.
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 . |
bibliothek.gui.dock.station.toolbar.layout.DockablePlaceholderToolbarGrid.Model |
getModel()
Gets access to a simplified view of this grid. |
protected Set<bibliothek.util.Path> |
getPlaceholders(bibliothek.gui.Dockable dockable)
Gets all placeholders that are associated with dockable . |
protected void |
onInserted()
Called if all columns were inserted at the same time. |
protected void |
onInserted(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column,
int index)
Called if a new column column was added to this grid. |
protected void |
onInserted(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column,
int columnIndex,
P item,
int itemIndex)
Called if item was added to the column column . |
protected void |
onRemoved()
Called if all columns were removed from this grid |
protected void |
onRemoved(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column,
int index)
Called if the column column was removed from this grid. |
protected void |
onRemoved(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column,
int columnIndex,
P item,
int itemIndex)
Called if item was removed to the column column . |
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 |
---|
public DockablePlaceholderToolbarGrid()
Method Detail |
---|
public bibliothek.gui.dock.station.toolbar.layout.DockablePlaceholderToolbarGrid.Model getModel()
null
protected bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> createColumn()
PlaceholderToolbarGrid
createColumn
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
protected GridPlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> createGrid()
PlaceholderToolbarGrid
GridPlaceholderList
.
createGrid
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
protected Set<bibliothek.util.Path> getPlaceholders(bibliothek.gui.Dockable dockable)
PlaceholderToolbarGrid
dockable
.
getPlaceholders
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
dockable
- some element used by this grid
protected void fill(bibliothek.gui.Dockable dockable, bibliothek.gui.dock.station.support.ConvertedPlaceholderListItem item)
PlaceholderToolbarGrid
PlaceholderToolbarGrid.toMap(Map)
, this method should read persistent data
from dockable
and write that data into item
.
fill
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
dockable
- the dockable to readitem
- the item to write intoprotected void onInserted(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column, int columnIndex, P item, int itemIndex)
PlaceholderToolbarGrid
item
was added to the column column
.
onInserted
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
column
- a visible columncolumnIndex
- the index of the columnitem
- a new item of column
itemIndex
- the index of the new itemprotected void onRemoved(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column, int columnIndex, P item, int itemIndex)
PlaceholderToolbarGrid
item
was removed to the column column
.
onRemoved
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
column
- a visible columncolumnIndex
- the index of the columnitem
- the removed item of column
itemIndex
- the index the item had before removingprotected void onInserted(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column, int index)
PlaceholderToolbarGrid
column
was added to this grid. The column may not contain any elements when
this method is called.
onInserted
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
column
- the new columnindex
- the index of the new columnprotected void onRemoved(bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P> column, int index)
PlaceholderToolbarGrid
column
was removed from this grid. The column may still contain elements when it
is removed.
onRemoved
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
column
- the removed columnindex
- the index the column had before it was removedprotected void onInserted()
PlaceholderToolbarGrid
onInserted
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
protected void onRemoved()
PlaceholderToolbarGrid
onRemoved
in class PlaceholderToolbarGrid<bibliothek.gui.Dockable,bibliothek.gui.DockStation,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |