@Dependent public class ColumnWithComponents extends Object implements Column
Modifier and Type | Class and Description |
---|---|
static interface |
ColumnWithComponents.View |
DEFAULT_COLUMN_HEIGHT, DEFAULT_COLUMN_WIDTH
Constructor and Description |
---|
ColumnWithComponents(ColumnWithComponents.View view,
javax.enterprise.inject.Instance<Row> rowInstance,
DnDManager dndManager,
LayoutDragComponentHelper layoutDragComponentHelper,
javax.enterprise.event.Event<ColumnResizeEvent> columnResizeEvent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInnerColumn
getLayoutEditorElementParts, visit
@Inject public ColumnWithComponents(ColumnWithComponents.View view, javax.enterprise.inject.Instance<Row> rowInstance, DnDManager dndManager, LayoutDragComponentHelper layoutDragComponentHelper, javax.enterprise.event.Event<ColumnResizeEvent> columnResizeEvent)
@PostConstruct public void post()
@PreDestroy public void preDestroy()
public void init(LayoutEditorElement parent, Integer columnWidth, LayoutTemplate.Style pageStyle, ParameterizedCommand<ColumnDrop> dropCommand, ParameterizedCommand<ColumnDrop> removeComponentCommand, ParameterizedCommand<Column> removeCommand, Supplier<LayoutTemplate> currentLayoutTemplateSupplier, Integer columnHeight)
public LayoutEditorElementType geElementType()
geElementType
in interface LayoutEditorElement
public LayoutEditorElement getParentElement()
getParentElement
in interface LayoutEditorElement
public List<? extends LayoutEditorElement> getChildElements()
getChildElements
in interface LayoutEditorElement
public void setSelectable(boolean selectable)
setSelectable
in interface LayoutEditorElement
public boolean isSelected()
isSelected
in interface LayoutEditorElement
public void setSelected(boolean status)
setSelected
in interface LayoutElementWithProperties
public Map<String,String> getProperties()
getProperties
in interface LayoutElementWithProperties
public void setProperty(String property, String value)
setProperty
in interface LayoutElementWithProperties
public void removeProperty(String property)
removeProperty
in interface LayoutElementWithProperties
public void clearProperties()
clearProperties
in interface LayoutElementWithProperties
public List<PropertyEditorCategory> getPropertyCategories()
getPropertyCategories
in interface LayoutElementWithProperties
public void onDrop(ColumnDrop.Orientation orientation, String dndData)
public boolean hasComponent(Column targetColumn)
public void remove(Column targetColumn)
public boolean canResizeLeft()
public void resizeLeft()
public boolean canResizeRight()
public void resizeRight()
protected Row createInstanceRow()
public void withComponents(ComponentColumn... _columns)
public void setColumnHeight(Integer columnHeight)
setColumnHeight
in interface Column
public UberElement<ColumnWithComponents> getView()
public Integer getColumnWidth()
getColumnWidth
in interface Column
public void setColumnWidth(Integer columnWidth)
setColumnWidth
in interface Column
public void reduceWidth()
reduceWidth
in interface Column
public void incrementWidth()
incrementWidth
in interface Column
public ParameterizedCommand<Column> getRemoveColumnCommand()
public LayoutComponent getLayoutComponent()
getLayoutComponent
in interface Column
public boolean hasInnerRows()
hasInnerRows
in interface Column
public void calculateWidth()
calculateWidth
in interface Column
public Row getRow()
protected void destroy(Object o)
public void calculateSizeChilds()
public void setupResize(boolean canResizeLeft, boolean canResizeRight)
setupResize
in interface Column
public String getId()
getId
in interface LayoutElementWithProperties
public Integer getColumnHeight()
getColumnHeight
in interface Column
public void setId(String id)
public boolean shouldPreviewDrop()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.