@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,
javax.enterprise.event.Event<LockRequiredEvent> lockRequiredEvent,
org.jboss.errai.ioc.client.api.ManagedInstance<ComponentColumnPart> componentColumnManagedInstance) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildElements, 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, javax.enterprise.event.Event<LockRequiredEvent> lockRequiredEvent, 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, Supplier<Boolean> lockSupplier, boolean newComponent)
public LayoutEditorElementType geElementType()
geElementType in interface LayoutEditorElementpublic LayoutEditorElement getParentElement()
getParentElement in interface LayoutEditorElementpublic void setParentElement(LayoutEditorElement parentElement)
public boolean isSelectable()
public void setSelectable(boolean selectable)
setSelectable in interface LayoutEditorElementpublic boolean isSelected()
isSelected in interface LayoutEditorElementpublic void setSelected(boolean selected)
setSelected in interface LayoutElementWithPropertiespublic void setupParts()
public Map<String,String> getProperties()
getProperties in interface LayoutElementWithPropertiespublic void setProperty(String property, String value)
setProperty in interface LayoutElementWithPropertiespublic void removeProperty(String property)
removeProperty in interface LayoutElementWithPropertiespublic void clearProperties()
clearProperties in interface LayoutElementWithPropertiespublic List<PropertyEditorCategory> getPropertyCategories()
getPropertyCategories in interface LayoutElementWithPropertiesprotected 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 Columnpublic boolean hasInnerRows()
hasInnerRows in interface Columnpublic void calculateWidth()
calculateWidth in interface Columnpublic void reduceWidth()
reduceWidth in interface Columnpublic void incrementWidth()
incrementWidth in interface Columnpublic void setupResize(boolean canResizeLeft,
boolean canResizeRight)
setupResize in interface Columnpublic boolean canResizeLeft()
public void resizeLeft()
public boolean canResizeRight()
public void resizeRight()
public void recalculateWidth()
public Integer getColumnWidth()
getColumnWidth in interface Columnpublic void setColumnWidth(Integer size)
setColumnWidth in interface Columnpublic void onDrop(ColumnDrop.Orientation orientation, String dndData)
public void requiredLock()
public boolean isInnerColumn()
isInnerColumn in interface Columnpublic void setColumnHeight(Integer columnHeight)
setColumnHeight in interface Columnpublic void updateView()
public UberElement<ComponentColumn> getView()
public LayoutDragComponentHelper getLayoutDragComponentHelper()
public boolean enableSideDnD()
public String getId()
getId in interface LayoutElementWithPropertiespublic void setId(String id)
public void setup(String id, LayoutTemplate.Style pageStyle)
public Integer getColumnHeight()
getColumnHeight in interface Columnpublic void onSelected()
public void onDragEnd(@Observes
DragComponentEndEvent dragComponentEndEvent)
public List<LayoutEditorElementPart> getLayoutEditorElementParts()
getLayoutEditorElementParts in interface LayoutEditorElementpublic LayoutDragComponent getLayoutDragComponent()
Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.