public class CustomizationMenuContentVerticalBox extends Object implements CustomizationMenuContent
Constructor and Description |
---|
CustomizationMenuContentVerticalBox() |
Modifier and Type | Method and Description |
---|---|
void |
add(CustomizationMenuContent item)
Adds
item to this box. |
void |
add(int index,
CustomizationMenuContent item)
Adds
item to this box. |
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 box. |
void |
remove(int index)
Removes the
index 'th item from this box. |
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.
|
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 box. 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 box. 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 box. 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 box. 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 itemnull