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(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()
CustomizationMenuContentComponent 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 CustomizationMenuContentnull if this item is not bound.public void setController(DockController controller)
CustomizationMenuContentDockController in whose realm it is used.setController in interface CustomizationMenuContentcontroller - the controller, can be nullpublic void bind(CustomizationMenuCallback callback)
CustomizationMenuContentbind in interface CustomizationMenuContentcallback - access to more detailed information about the DockStation that is
showing the menupublic void unbind()
CustomizationMenuContent#bind().unbind in interface CustomizationMenuContentpublic 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 nullpublic 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 itemitem - the item to add, not nullpublic 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 itemnullCopyright © 2018. All rights reserved.