|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.toolbar.menu.CustomizationMenuContentGrid
public class CustomizationMenuContentGrid
A CustomizationMenuContent
using a GridLayout
to show a set of other
CustomizationMenuContent
s.
Constructor Summary | |
---|---|
CustomizationMenuContentGrid(int columns,
int rows)
Creates a new grid. |
Method Summary | |
---|---|
void |
add(CustomizationMenuContent item)
Adds item to this grid. |
void |
add(int index,
CustomizationMenuContent item)
Adds item to this grid. |
void |
bind(CustomizationMenuCallback callback)
Informs this item that is going to be used. |
CustomizationMenuContent |
getItem(int index)
Gets the index 'th item of this grid. |
int |
getItemCount()
Gets the number of items on this grid. |
Component |
getView()
Gets a Component which represents this item. |
void |
remove(CustomizationMenuContent item)
Removes item from this grid. |
void |
remove(int index)
Removes the index 'th item from this grid. |
void |
setController(bibliothek.gui.DockController controller)
Informs this content about the DockController in whose realm it is used. |
void |
unbind()
Informs this item that it is no longer used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomizationMenuContentGrid(int columns, int rows)
columns
- the width of the grid in the number of componentsrows
- the height of the grid in the number of componentsMethod Detail |
---|
public Component getView()
CustomizationMenuContent
Component
which represents this item. If #bind()
has not yet
been called, or CustomizationMenuContent.unbind()
has been called, then a result of null
is valid.
getView
in interface CustomizationMenuContent
null
if this item is not bound
.public void setController(bibliothek.gui.DockController controller)
CustomizationMenuContent
DockController
in whose realm it is used.
setController
in interface CustomizationMenuContent
controller
- the controller, can be null
public void bind(CustomizationMenuCallback callback)
CustomizationMenuContent
bind
in interface CustomizationMenuContent
callback
- access to more detailed information about the DockStation
that is
showing the menupublic void unbind()
CustomizationMenuContent
#bind()
.
unbind
in interface CustomizationMenuContent
public void add(CustomizationMenuContent item)
item
to this grid. It is the clients responsibility to ensure that item
is not already used by another object. If the menu is currently visible, then calling this method
has no immediate effect.
item
- the item to add, not null
public void add(int index, CustomizationMenuContent item)
item
to this grid. It is the clients responsibility to ensure that item
is not already used by another object. If the menu is currently visible, then calling this method
has no immediate effect.
index
- the location where to insert item
item
- the item to add, not null
public void remove(int index)
index
'th item from this grid. If the menu is currently visible, then
calling this method has no immediate effect.
index
- the index of the item to removepublic void remove(CustomizationMenuContent item)
item
from this grid. If the menu is currently visible, then calling
this method has no immediate effect.
item
- the item to removepublic int getItemCount()
public CustomizationMenuContent getItem(int index)
index
'th item of this grid.
index
- the index of the item
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |