public class DetailPanel
extends com.vaadin.ui.VerticalLayout
setDetailContainer(ComponentContainer)
and setFixedButtons(Component)
to add main components. By default, the detailContent will
be a verticallayout which has 100% width and undefined height and margins enabled. Add components
to detail container using addDetailComponent(Component)
etc.com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.MarginInfo, com.vaadin.ui.Layout.SpacingHandler
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.Panel |
mainPanel |
Constructor and Description |
---|
DetailPanel() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(com.vaadin.ui.Component c) |
void |
addComponent(com.vaadin.ui.Component c,
int index) |
void |
addComponentAsFirst(com.vaadin.ui.Component c) |
void |
addDetailComponent(com.vaadin.ui.Component c)
Add component to detail-container.
|
void |
addDetailComponent(com.vaadin.ui.Component c,
int index)
Add component to detail-container.
|
com.vaadin.ui.Panel |
getMainPanel() |
void |
setDetailContainer(com.vaadin.ui.ComponentContainer component)
Set the actual content of the panel.
|
void |
setDetailExpandRatio(com.vaadin.ui.Component component,
float ratio)
Set expand-ratio of detail-component
|
void |
setFixedButtons(com.vaadin.ui.Component component)
Set the component that is rendered in a fixed position
below the content.
|
addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, paintContent, removeComponent, removeListener, replaceComponent, setComponentAlignment, setComponentAlignment, setComponentAlignment, setExpandRatio, setSpacing
changeVariables, fireClick, getMargin, setMargin, setMargin, setMargin
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addListener, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible
public void setDetailContainer(com.vaadin.ui.ComponentContainer component)
public void setFixedButtons(com.vaadin.ui.Component component)
public void addComponent(com.vaadin.ui.Component c)
addComponent
in interface com.vaadin.ui.ComponentContainer
addComponent
in class com.vaadin.ui.AbstractOrderedLayout
public void addDetailComponent(com.vaadin.ui.Component c)
public void addComponent(com.vaadin.ui.Component c, int index)
addComponent
in class com.vaadin.ui.AbstractOrderedLayout
public void addDetailComponent(com.vaadin.ui.Component c, int index)
public void setDetailExpandRatio(com.vaadin.ui.Component component, float ratio)
public void addComponentAsFirst(com.vaadin.ui.Component c)
addComponentAsFirst
in class com.vaadin.ui.AbstractOrderedLayout
public com.vaadin.ui.Panel getMainPanel()
Copyright © 2016 Alfresco. All rights reserved.