Package com.orchestranetworks.addon.dmdv.template.bean
package com.orchestranetworks.addon.dmdv.template.bean
Provides common classes to build a node template.
-
Example of creating an instance of NodeTemplate:
NodeTemplate template = new NodeTemplate(); template.setShapeType(ShapeType.RECTANGLE); NodePanel rootPanel = new NodePanel(); rootPanel.setContentAlignment(AlignmentType.MIDDLE_LEFT); rootPanel.setPanelLayout(PanelLayout.HORIZONTAL); rootPanel.setWidth(200); rootPanel.setMargin(MarginType.TOP, 3); template.setPanel(rootPanel);
-
Example of creating an instance of NodeImage:
NodeImage avatar = new NodeImage(); avatar.setBindingSource("${/Picture/attachment}"); avatar.setOpacity(0.7); avatar.setWidth(60); avatar.setHeight(60); avatar.setMargin(MarginType.RIGHT, 3);
-
Example of creating an instance of NodeTextBlock:
NodeTextBlock textBlock = new NodeTextBlock(); textBlock.setBindingText("${/Civilstatus}. ${/Firstname} ${/Lastname}"); textBlock.setTextAlign(TextAlignmentType.LEFT); textBlock.setFontSize(17); labelPanel.addElement(textBlock);
-
Example of creating an instance of NodeIndicator:
NodeIndicator indicator = new NodeIndicator(); indicator.setOpacity(0.7); indicator.setWidth(40); indicator.setHeight(40);
-
Example of creating an instance of NodeExpanderButton:
NodeExpanderButton expander = new NodeExpanderButton(); expander.setTargetElement(propertyPanel); expander.setAlignment(AlignmentType.CENTER);
-
Example of creating an instance of NodeDataTable:
NodeDataTable dataTablePanel = new NodeDataTable(); dataTablePanel.setNumberOfColumns(2); dataTablePanel.setColumnsWidth(new int[] { 55, 140 }); dataTablePanel.setRowSeparatorColor("#808080"); dataTablePanel.addRowData("Name", "${/name}"); dataTablePanel.addRowData("Title", "${/title}");
-
ClassDescriptionRepresents an element's relative position in relation to another element.Defines the panel's border style.Represents the element's relative position in relation to another element.Defines a data table that displays data in a tabular form.Represents a node element.Defines the type of elements that can be used in a node.Represents a button used to expand or collapse an element.Represents an image element.Represents an image for indicator.Defines an element that holds other elements.Represents a node template that is a composition of elements and properties.Represents a text block that displays a text string in a given font size.Possible panel layouts.Possible node shapes.Possible text alignment settings.