@Dependent public class Row extends Object implements LayoutEditorElement
Modifier and Type | Class and Description |
---|---|
static interface |
Row.View |
Modifier and Type | Field and Description |
---|---|
static Integer |
ROW_DEFAULT_HEIGHT |
static int |
ROW_MIN_HEIGHT |
Constructor and Description |
---|
Row(Row.View view,
javax.enterprise.inject.Instance<ComponentColumn> columnInstance,
javax.enterprise.inject.Instance<ColumnWithComponents> columnWithComponentsInstance,
DnDManager dndManager,
LayoutDragComponentHelper layoutDragComponentHelper,
LayoutEditorCssHelper layoutCssHelper,
javax.enterprise.event.Event<ComponentDropEvent> componentDropEvent,
javax.enterprise.event.Event<ComponentRemovedEvent> componentRemovedEvent,
javax.enterprise.event.Event<RowResizeEvent> rowResizeEvent,
javax.enterprise.event.Event<LayoutEditorElementSelectEvent> rowSelectEvent,
javax.enterprise.event.Event<LayoutEditorElementUnselectEvent> rowUnselectEvent,
LayoutEditorFocusController layoutEditorFocusController) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLayoutEditorElementParts, visit
public static final Integer ROW_DEFAULT_HEIGHT
public static final int ROW_MIN_HEIGHT
@Inject public Row(Row.View view, javax.enterprise.inject.Instance<ComponentColumn> columnInstance, javax.enterprise.inject.Instance<ColumnWithComponents> columnWithComponentsInstance, DnDManager dndManager, LayoutDragComponentHelper layoutDragComponentHelper, LayoutEditorCssHelper layoutCssHelper, javax.enterprise.event.Event<ComponentDropEvent> componentDropEvent, javax.enterprise.event.Event<ComponentRemovedEvent> componentRemovedEvent, javax.enterprise.event.Event<RowResizeEvent> rowResizeEvent, javax.enterprise.event.Event<LayoutEditorElementSelectEvent> rowSelectEvent, javax.enterprise.event.Event<LayoutEditorElementUnselectEvent> rowUnselectEvent, LayoutEditorFocusController layoutEditorFocusController)
public void init(ParameterizedCommand<RowDrop> dropOnRowCommand, ParameterizedCommand<Row> removeCommand, ParameterizedCommand<ColumnDrop> removeComponentCommand, Supplier<LayoutTemplate> currentLayoutTemplateSupplier, Supplier<Boolean> lockSupplier, Integer height)
public void init(ParameterizedCommand<RowDrop> dropOnRowCommand, ParameterizedCommand<Row> removeCommand, ParameterizedCommand<ColumnDrop> removeComponentCommand, ColumnWithComponents parentColumnWithComponents, Supplier<LayoutTemplate> currentLayoutTemplateSupplier, Supplier<Boolean> lockSupplier, Integer height)
public void load(ParameterizedCommand<RowDrop> dropOnRowCommand, LayoutRow layoutRow, ParameterizedCommand<Row> removeCommand, ParameterizedCommand<ColumnDrop> removeComponentCommand, Supplier<LayoutTemplate> currentLayoutTemplateSupplier, Supplier<Boolean> lockSupplier)
public void dragStart()
public boolean canDrag()
public void dragEndMove()
public void addColumns(ComponentColumn... _columns)
public void withOneColumn(LayoutComponent layoutComponent, boolean newComponent)
protected ComponentColumn createComponentColumnInstance()
public ParameterizedCommand<ColumnDrop> dropCommand()
public void removeColumn(Column targetColumn)
public void removeChildColumn(Column targetColumn)
public boolean cointainsColumn(Column targetColumn)
public boolean rowIsEmpty()
protected boolean isDropInSameColumnWithComponent(ColumnDrop drop)
public void disableDrop()
protected ColumnWithComponents createColumnWithComponentsInstance()
public void drop(String dropData, RowDrop.Orientation orientation)
@PostConstruct public void post()
@PreDestroy public void preDestroy()
public void resizeColumns(@Observes ColumnResizeEvent resize)
public void updateView()
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 UberElement<Row> getView()
public boolean isDropEnable()
public void setSelectable(boolean selectable)
setSelectable
in interface LayoutEditorElement
public boolean isSelectable()
public boolean isSelected()
isSelected
in interface LayoutEditorElement
public void setSelected(boolean selected)
setSelected
in interface LayoutElementWithProperties
protected void destroy(Object o)
public void calculateSizeChilds()
public String getId()
getId
in interface LayoutElementWithProperties
public LayoutEditorElementType geElementType()
geElementType
in interface LayoutEditorElement
public LayoutEditorElement getParentElement()
getParentElement
in interface LayoutEditorElement
public void setup(LayoutEditorElement parent, String id, LayoutTemplate.Style pageStyle)
public Integer getHeight()
public void setHeight(Integer height)
public boolean canResizeUp()
public boolean canResizeDown()
public void resizeUp()
public void resizeDown()
public void incrementHeight()
public void reduceHeight()
public void setupResize(boolean canResizeUp, boolean canResizeDown)
public ColumnWithComponents getParentColumnWithComponents()
public void onSelected()
public List<Column> getChildElements()
getChildElements
in interface LayoutEditorElement
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.