@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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitpublic 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)
public void init(ParameterizedCommand<RowDrop> dropOnRowCommand, ParameterizedCommand<Row> removeCommand, ParameterizedCommand<ColumnDrop> removeComponentCommand, Supplier<LayoutTemplate> currentLayoutTemplateSupplier, Integer height)
public void init(ParameterizedCommand<RowDrop> dropOnRowCommand, ParameterizedCommand<Row> removeCommand, ParameterizedCommand<ColumnDrop> removeComponentCommand, ColumnWithComponents parentColumnWithComponents, Supplier<LayoutTemplate> currentLayoutTemplateSupplier, Integer height)
public void load(ParameterizedCommand<RowDrop> dropOnRowCommand, LayoutRow layoutRow, ParameterizedCommand<Row> removeCommand, ParameterizedCommand<ColumnDrop> removeComponentCommand, Supplier<LayoutTemplate> currentLayoutTemplateSupplier)
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()
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 LayoutEditorElementpublic void setProperty(String property, String value)
setProperty in interface LayoutEditorElementpublic void removeProperty(String property)
removeProperty in interface LayoutEditorElementpublic void clearProperties()
clearProperties in interface LayoutEditorElementpublic List<PropertyEditorCategory> getPropertyCategories()
getPropertyCategories in interface LayoutEditorElementpublic UberElement<Row> getView()
public boolean isDropEnable()
public void setSelectable(boolean selectable)
setSelectable in interface LayoutEditorElementpublic boolean isSelectable()
public boolean isSelected()
isSelected in interface LayoutEditorElementpublic void setSelected(boolean selected)
setSelected in interface LayoutEditorElementprotected void destroy(Object o)
public void calculateSizeChilds()
public String getId()
getId in interface LayoutEditorElementpublic LayoutEditorElementType geElementType()
geElementType in interface LayoutEditorElementpublic LayoutEditorElement getParentElement()
getParentElement in interface LayoutEditorElementpublic 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 LayoutEditorElementCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.