@Dependent public class ComponentColumn extends Object implements Column
Modifier and Type | Class and Description |
---|---|
static interface |
ComponentColumn.View |
DEFAULT_COLUMN_HEIGHT, DEFAULT_COLUMN_WIDTH
Constructor and Description |
---|
ComponentColumn(ComponentColumn.View view,
DnDManager dndManager,
LayoutDragComponentHelper layoutDragComponentHelper,
javax.enterprise.event.Event<ColumnResizeEvent> columnResizeEvent,
javax.enterprise.event.Event<LayoutEditorElementSelectEvent> columnSelectEvent,
javax.enterprise.event.Event<LayoutEditorElementUnselectEvent> columnUnselectEvent,
org.jboss.errai.ioc.client.api.ManagedInstance<ComponentColumnPart> componentColumnManagedInstance) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildElements, visit
@Inject public ComponentColumn(ComponentColumn.View view, DnDManager dndManager, LayoutDragComponentHelper layoutDragComponentHelper, javax.enterprise.event.Event<ColumnResizeEvent> columnResizeEvent, javax.enterprise.event.Event<LayoutEditorElementSelectEvent> columnSelectEvent, javax.enterprise.event.Event<LayoutEditorElementUnselectEvent> columnUnselectEvent, org.jboss.errai.ioc.client.api.ManagedInstance<ComponentColumnPart> componentColumnManagedInstance)
@PostConstruct public void post()
public void init(LayoutEditorElement parent, Integer columnWidth, LayoutComponent layoutComponent, ParameterizedCommand<ColumnDrop> dropCommand, ParameterizedCommand<Column> removeCommand, Supplier<LayoutTemplate> currentLayoutTemplateSupplier, boolean newComponent)
public LayoutEditorElementType geElementType()
geElementType
in interface LayoutEditorElement
public LayoutEditorElement getParentElement()
getParentElement
in interface LayoutEditorElement
public void setParentElement(LayoutEditorElement parentElement)
public boolean isSelectable()
public void setSelectable(boolean selectable)
setSelectable
in interface LayoutEditorElement
public boolean isSelected()
isSelected
in interface LayoutEditorElement
public void setSelected(boolean selected)
setSelected
in interface LayoutElementWithProperties
public void setupParts()
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
protected boolean hasConfiguration()
public void setDropCommand(ParameterizedCommand<ColumnDrop> dropCommand)
public void remove()
public void edit()
public boolean shouldPreviewDrop()
public void dragStartComponent()
public void dragEndComponent()
public LayoutComponent getLayoutComponent()
getLayoutComponent
in interface Column
public boolean hasInnerRows()
hasInnerRows
in interface Column
public void calculateWidth()
calculateWidth
in interface Column
public void reduceWidth()
reduceWidth
in interface Column
public void incrementWidth()
incrementWidth
in interface Column
public void setupResize(boolean canResizeLeft, boolean canResizeRight)
setupResize
in interface Column
public boolean canResizeLeft()
public void resizeLeft()
public boolean canResizeRight()
public void resizeRight()
public void recalculateWidth()
public Integer getColumnWidth()
getColumnWidth
in interface Column
public void setColumnWidth(Integer size)
setColumnWidth
in interface Column
public void onDrop(ColumnDrop.Orientation orientation, String dndData)
public boolean isInnerColumn()
isInnerColumn
in interface Column
public void setColumnHeight(Integer columnHeight)
setColumnHeight
in interface Column
public void updateView()
public UberElement<ComponentColumn> getView()
public LayoutDragComponentHelper getLayoutDragComponentHelper()
public boolean enableSideDnD()
public String getId()
getId
in interface LayoutElementWithProperties
public void setId(String id)
public void setup(String id, LayoutTemplate.Style pageStyle)
public Integer getColumnHeight()
getColumnHeight
in interface Column
public void onSelected()
public List<LayoutEditorElementPart> getLayoutEditorElementParts()
getLayoutEditorElementParts
in interface LayoutEditorElement
public LayoutDragComponent getLayoutDragComponent()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.