本文整理汇总了Java中javafx.scene.layout.ColumnConstraints.setFillWidth方法的典型用法代码示例。如果您正苦于以下问题:Java ColumnConstraints.setFillWidth方法的具体用法?Java ColumnConstraints.setFillWidth怎么用?Java ColumnConstraints.setFillWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.layout.ColumnConstraints
的用法示例。
在下文中一共展示了ColumnConstraints.setFillWidth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createGrid
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private GridPane createGrid() {
//-------------------------------------------------------------------- Grid
GRID.setHgap(GRID_GAP);
GRID.setVgap(GRID_GAP);
GRID.setPadding(new Insets(GRID_GAP));
GRID.setGridLinesVisible(false);
//-------------------------------------------------------------------- Constraints
for (int i = 0; i < 2; i++) {
final ColumnConstraints column = new ColumnConstraints();
column.setFillWidth(true);
column.setHgrow(Priority.NEVER);
GRID.getColumnConstraints().add(column);
}
GRID.getColumnConstraints().get(1).setHgrow(Priority.SOMETIMES);
//-------------------------------------------------------------------- End
return GRID;
}
示例2: createBody
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
/**
* Creates the node used for the body part of each cell.
*
* In this default implementation the body consists of a grid pane with
* three columns. The middle column is used for showing the title of
* calendar entries. This column will get whatever space is left after
* the icon and the time column have used what they need. This means
* that a very long title will automatically be truncated.
*
* @return the body node
*/
protected Node createBody() {
// icon column
ColumnConstraints iconColumn = new ColumnConstraints();
// title column
ColumnConstraints descriptionColumn = new ColumnConstraints();
descriptionColumn.setFillWidth(true);
descriptionColumn.setHgrow(Priority.SOMETIMES);
descriptionColumn.setMinWidth(0);
descriptionColumn.setPrefWidth(0);
// time column
ColumnConstraints timeColumn = new ColumnConstraints();
timeColumn.setHalignment(HPos.RIGHT);
gridPane = new GridPane();
gridPane.setGridLinesVisible(true);
gridPane.setMinWidth(0);
gridPane.setPrefWidth(0);
gridPane.getStyleClass().add(AGENDA_VIEW_BODY);
gridPane.getColumnConstraints().addAll(iconColumn, descriptionColumn, timeColumn);
return gridPane;
}
示例3: initializeGrid
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private void initializeGrid() {
grid = new GridPane();
//grid.setAlignment(Pos.CENTER);
grid.setHgap(10);
grid.setVgap(10);
grid.setPadding(new Insets(25, 25, 25, 25));
grid.setMaxSize(Region.USE_COMPUTED_SIZE, Region.USE_COMPUTED_SIZE);
ColumnConstraints c1 = new ColumnConstraints();
c1.setFillWidth(true);
c1.setHgrow(Priority.ALWAYS);
grid.getColumnConstraints().addAll(new ColumnConstraints(), c1, new ColumnConstraints());
RowConstraints r2 = new RowConstraints();
r2.setFillHeight(true);
r2.setVgrow(Priority.ALWAYS);
}
示例4: configureGrid
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private void configureGrid() {
grid.setHgap(10);
grid.setVgap(4);
grid.setPadding(new Insets(0, 10, 0, 10));
ColumnConstraints column1 = new ColumnConstraints(32);
ColumnConstraints column2 = new ColumnConstraints(USE_COMPUTED_SIZE , USE_COMPUTED_SIZE, Double.MAX_VALUE);
column2.setHgrow(Priority.NEVER);
ColumnConstraints column3 = new ColumnConstraints(30 , 50 , Double.MAX_VALUE);
column3.setHgrow(Priority.ALWAYS);
column3.setFillWidth(true);
ColumnConstraints column4 = new ColumnConstraints(USE_COMPUTED_SIZE , USE_COMPUTED_SIZE , Double.MAX_VALUE);
column4.setHgrow(Priority.NEVER);
ColumnConstraints column5 = new ColumnConstraints(30 , 50 , Double.MAX_VALUE);
column5.setHgrow(Priority.ALWAYS);
column5.setFillWidth(true);
ColumnConstraints column6 = new ColumnConstraints(10, 12, 16);
column6.setHgrow(Priority.NEVER);
column6.setFillWidth(false);
grid.getColumnConstraints().addAll(column1, column2, column3, column4, column5, column6);
}
示例5: initializeGrid
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private void initializeGrid() {
grid.setHgap(10);
grid.setVgap(5);
grid.setPadding(new Insets(0, 10, 0, 10));
// icon column
ColumnConstraints col1 = new ColumnConstraints();
col1.setFillWidth(false);
col1.setHgrow(Priority.NEVER);
grid.getColumnConstraints().add(col1);
// title column: grows
ColumnConstraints col2 = new ColumnConstraints();
col2.setFillWidth(true);
col2.setHgrow(Priority.ALWAYS);
grid.getColumnConstraints().add(col2);
// date column
ColumnConstraints col3 = new ColumnConstraints();
col3.setFillWidth(false);
col3.setHgrow(Priority.NEVER);
grid.getColumnConstraints().add(col3);
}
示例6: buildCells
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private void buildCells() {
positionToDateCellMap.clear();
dateToPositionMap.clear();
cellMap.clear();
YearMonth start = getSkinnable().getExtendedStartMonth();
YearMonth end = getSkinnable().getExtendedEndMonth();
int colIndex = 0;
grid.getColumnConstraints().clear();
grid.getChildren().clear();
while (!start.isAfter(end)) {
ColumnConstraints columnConstraints = new ColumnConstraints();
columnConstraints.setFillWidth(true);
columnConstraints.setMinWidth(Region.USE_PREF_SIZE);
columnConstraints.setMaxWidth(Double.MAX_VALUE);
grid.getColumnConstraints().add(columnConstraints);
buildCells(start, colIndex);
start = start.plusMonths(1);
colIndex++;
}
grid.getColumnConstraints().forEach(con -> con.setPercentWidth(100d / (double) grid.getColumnConstraints().size()));
updateEntries("cells were rebuild");
updateToday();
updateSelected();
}
示例7: updateVisibility
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private void updateVisibility() {
for (int row = 0; row < 6; row++) {
RowConstraints rowConstraints = new RowConstraints();
rowConstraints.setFillHeight(true);
rowConstraints.setMinHeight(Region.USE_PREF_SIZE);
rowConstraints.setMaxHeight(Region.USE_COMPUTED_SIZE);
rowConstraints.setPrefHeight(Region.USE_COMPUTED_SIZE);
rowConstraints.setVgrow(Priority.ALWAYS);
gridPane.getRowConstraints().add(rowConstraints);
}
ColumnConstraints weekColumn = new ColumnConstraints();
weekColumn.setHalignment(HPos.RIGHT);
weekColumn.setMaxWidth(Region.USE_COMPUTED_SIZE);
weekColumn.setMinWidth(Region.USE_PREF_SIZE);
weekColumn.setPrefWidth(Region.USE_COMPUTED_SIZE);
weekColumn.setFillWidth(true);
weekColumn.setHgrow(Priority.NEVER);
gridPane.getColumnConstraints().add(weekColumn);
for (int col = 0; col < 7; col++) {
ColumnConstraints columnConstraints = new ColumnConstraints();
columnConstraints.setHalignment(HPos.CENTER);
columnConstraints.setMaxWidth(Region.USE_COMPUTED_SIZE);
columnConstraints.setMinWidth(Region.USE_PREF_SIZE);
columnConstraints.setPrefWidth(Region.USE_COMPUTED_SIZE);
columnConstraints.setFillWidth(true);
columnConstraints.setHgrow(Priority.ALWAYS);
gridPane.getColumnConstraints().add(columnConstraints);
}
}
示例8: createContent
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
@Override
protected Node createContent() {
leftSide = createLeftHandSide();
rightSide = createRightHandSide();
leftColumn = new ColumnConstraints();
leftColumn.setPercentWidth(50);
leftColumn.setMinWidth(Region.USE_COMPUTED_SIZE);
leftColumn.setPrefWidth(Region.USE_COMPUTED_SIZE);
leftColumn.setMaxWidth(Double.MAX_VALUE);
leftColumn.setFillWidth(true);
rightColumn = new ColumnConstraints();
rightColumn.setPercentWidth(50);
rightColumn.setMinWidth(Region.USE_COMPUTED_SIZE);
rightColumn.setPrefWidth(Region.USE_COMPUTED_SIZE);
rightColumn.setMaxWidth(Double.MAX_VALUE);
rightColumn.setFillWidth(true);
RowConstraints rowConstraints = new RowConstraints();
rowConstraints.setPercentHeight(100);
rowConstraints.setFillHeight(true);
// no need to assign a style class, will be auto-assigned by superclass ("content")
gridPane = new GridPane();
gridPane.setHgap(20);
gridPane.getColumnConstraints().addAll(leftColumn, rightColumn);
gridPane.getRowConstraints().addAll(rowConstraints);
gridPane.add(leftSide, 0, 0);
gridPane.add(rightSide, 1, 0);
getSkinnable().widthProperty().addListener(it -> updateLayout());
return gridPane;
}
示例9: drawColumn
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
public void drawColumn() {
// Remove any previous constraints
columnGridPane.getRowConstraints().clear();
columnGridPane.getColumnConstraints().clear();
// Set the column Constraints
ColumnConstraints col0 = new ColumnConstraints();
col0.setMinWidth(5);
col0.setPrefWidth(Control.USE_COMPUTED_SIZE);
col0.setMaxWidth(Control.USE_COMPUTED_SIZE);
col0.setFillWidth(true);
col0.setHgrow(Priority.ALWAYS);
this.columnGridPane.getColumnConstraints().add(col0);
// Add the Y-Axis
// this.yAxisCenterStackPane.getChildren().add(axisCenter);
// this.axisCenterAnchorPane.widthProperty().addListener( stageSizeListener );
// this.axisCenterAnchorPane.heightProperty().addListener( stageSizeListener );
// Now add the X-Axis
axisLeftStackPane.getChildren().add(axisLeft);
this.axisLeftAnchorPane.widthProperty().addListener( stageSizeListener );
this.axisLeftAnchorPane.heightProperty().addListener( stageSizeListener );
axisCenterStackPane.getChildren().add(axisCenter);
this.axisCenterAnchorPane.widthProperty().addListener( stageSizeListener );
this.axisCenterAnchorPane.heightProperty().addListener( stageSizeListener );
axisRightStackPane.getChildren().add(axisRight);
this.axisRightAnchorPane.widthProperty().addListener( stageSizeListener );
this.axisRightAnchorPane.heightProperty().addListener( stageSizeListener );
}
示例10: buildTorrentOptionsPane
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private Node buildTorrentOptionsPane() {
final HBox labelPane = new HBox(5);
labelPane.getChildren().addAll(new Label("Label: "), labelCombo);
labelPane.setAlignment(Pos.CENTER);
HBox.setHgrow(labelCombo, Priority.ALWAYS);
labelCombo.setMaxWidth(Double.MAX_VALUE);
final GridPane torrentOptionsPane = new GridPane();
torrentOptionsPane.setVgap(5);
final ColumnConstraints nameColumnConstraints = new ColumnConstraints(200);
final ColumnConstraints valueColumnConstraints = new ColumnConstraints();
valueColumnConstraints.setFillWidth(true);
valueColumnConstraints.setMaxWidth(Double.MAX_VALUE);
valueColumnConstraints.setHalignment(HPos.LEFT);
torrentOptionsPane.getColumnConstraints().addAll(nameColumnConstraints, valueColumnConstraints);
torrentOptionsPane.add(skipHashCheckbox, 0, 0);
torrentOptionsPane.add(labelPane, 1, 0);
torrentOptionsPane.add(startTorrentCheckbox, 0, 1);
torrentOptionsPane.add(addToTopQueueCheckbox, 1, 1);
GridPane.setHgrow(labelPane, Priority.ALWAYS);
final TitledBorderPane borderedTorrentOptionsPane = new TitledBorderPane("Torrent Options",
torrentOptionsPane, BorderStyle.AMPLE, TitledBorderPane.PRIMARY_BORDER_COLOR_STYLE);
return borderedTorrentOptionsPane;
}
示例11: EntryHeaderView
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
public EntryHeaderView(Entry<?> entry, List<Calendar> calendars) {
this.entry = requireNonNull(entry);
requireNonNull(calendars);
getStylesheets().add(CalendarView.class.getResource("calendar.css").toExternalForm());
TextField titleField = new TextField(entry.getTitle());
Bindings.bindBidirectional(titleField.textProperty(), entry.titleProperty());
titleField.disableProperty().bind(entry.getCalendar().readOnlyProperty());
TextField locationField = new TextField(entry.getLocation());
Bindings.bindBidirectional(locationField.textProperty(), entry.locationProperty());
locationField.getStyleClass().add("location"); //$NON-NLS-1$
locationField.setEditable(true);
locationField.setPromptText(Messages.getString("EntryHeaderView.PROMPT_LOCATION")); //$NON-NLS-1$
locationField.setMaxWidth(500);
locationField.disableProperty().bind(entry.getCalendar().readOnlyProperty());
calendarSelector = new CalendarSelector();
calendarSelector.disableProperty().bind(entry.getCalendar().readOnlyProperty());
calendarSelector.getCalendars().setAll(calendars);
calendarSelector.setCalendar(entry.getCalendar());
Bindings.bindBidirectional(calendarSelector.calendarProperty(), entry.calendarProperty());
titleField.getStyleClass().add("default-style-entry-popover-title"); //$NON-NLS-1$
add(titleField, 0, 0);
add(calendarSelector, 1, 0, 1, 2);
add(locationField, 0, 1);
RowConstraints row1 = new RowConstraints();
row1.setValignment(VPos.TOP);
row1.setFillHeight(true);
RowConstraints row2 = new RowConstraints();
row2.setValignment(VPos.TOP);
row2.setFillHeight(true);
getRowConstraints().addAll(row1, row2);
ColumnConstraints col1 = new ColumnConstraints();
col1.setFillWidth(true);
col1.setHgrow(Priority.ALWAYS);
ColumnConstraints col2 = new ColumnConstraints();
col2.setFillWidth(true);
col2.setHgrow(Priority.NEVER);
getColumnConstraints().addAll(col1, col2);
getStyleClass().add("popover-header"); //$NON-NLS-1$
titleField.getStyleClass().add("title"); //$NON-NLS-1$
titleField.setPromptText(Messages.getString("EntryHeaderView.PROMPT_TITLE")); //$NON-NLS-1$
titleField.setMaxWidth(500);
Calendar calendar = entry.getCalendar();
titleField.getStyleClass().add(calendar.getStyle() + "-entry-popover-title"); //$NON-NLS-1$
entry.calendarProperty()
.addListener((observable, oldCalendar, newCalendar) -> {
if (oldCalendar != null) {
titleField.getStyleClass().remove(oldCalendar.getStyle() + "-entry-popover-title"); //$NON-NLS-1$
}
if (newCalendar != null) {
titleField.getStyleClass().add(newCalendar.getStyle() + "-entry-popover-title"); //$NON-NLS-1$
}
});
}
示例12: PrintViewSkin
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
public PrintViewSkin(PrintView control) {
super(control);
GridPane gridPane = new GridPane();
gridPane.getStyleClass().add("container");
gridPane.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
RowConstraints row1 = new RowConstraints();
RowConstraints row2 = new RowConstraints();
ColumnConstraints col1 = new ColumnConstraints();
ColumnConstraints col2 = new ColumnConstraints();
ColumnConstraints col3 = new ColumnConstraints();
row1.setVgrow(Priority.ALWAYS);
row2.setVgrow(Priority.NEVER);
col1.setHgrow(Priority.ALWAYS);
col2.setHgrow(Priority.NEVER);
col3.setHgrow(Priority.NEVER);
row1.setFillHeight(true);
row2.setFillHeight(true);
col1.setFillWidth(true);
col2.setFillWidth(true);
col3.setFillWidth(true);
col1.setMaxWidth(Double.MAX_VALUE);
col3.setMaxWidth(Region.USE_PREF_SIZE);
col3.setMinWidth(Region.USE_PREF_SIZE);
row1.setMaxHeight(Double.MAX_VALUE);
row2.setMinHeight(Region.USE_PREF_SIZE);
gridPane.getRowConstraints().setAll(row1, row2);
gridPane.getColumnConstraints().setAll(col1, col2, col3);
// preview pane
PreviewPane previewPane = control.getPreviewPane();
gridPane.add(previewPane, 0, 0);
GridPane.setRowSpan(previewPane, 2);
// settings
SettingsView settingsView = control.getSettingsView();
gridPane.add(settingsView, 2, 0);
// separator
Separator separator = new Separator();
separator.setOrientation(Orientation.VERTICAL);
GridPane.setRowSpan(separator, 2);
gridPane.add(separator, 1, 0);
// button bar
Button cancelBtn = new Button(Messages.getString("PrintView.CANCEL_BUTTON"));
cancelBtn.onActionProperty().bind(control.onCancelProperty());
Button continueBtn = new Button(Messages.getString("PrintView.CONTINUE_BUTTON"));
continueBtn.onActionProperty().bind(control.onContinueProperty());
HBox buttonsBar = new HBox();
buttonsBar.getStyleClass().add("button-bar");
buttonsBar.getChildren().addAll(cancelBtn, continueBtn);
gridPane.add(buttonsBar, 2, 1);
getChildren().add(gridPane);
}
示例13: updateColumns
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private void updateColumns() {
pane.getChildren().clear();
final CalendarHeaderView headerView = getSkinnable();
if (headerView.isVisible()) {
Callback<Calendar, Node> factory = headerView.getCellFactory();
List<ColumnConstraints> weekConstraints = new ArrayList<>();
int numberOfDays = headerView.getNumberOfDays();
for (int i = 0; i < numberOfDays; i++) {
ColumnConstraints con = new ColumnConstraints();
con.setPercentWidth((double) 100 / (double) numberOfDays);
weekConstraints.add(con);
GridPane dayGridPane = new GridPane();
dayGridPane.setMaxWidth(Double.MAX_VALUE);
GridPane.setHgrow(dayGridPane, Priority.ALWAYS);
GridPane.setVgrow(dayGridPane, Priority.ALWAYS);
GridPane.setFillHeight(dayGridPane, true);
GridPane.setFillWidth(dayGridPane, true);
List<ColumnConstraints> dayConstraints = new ArrayList<>();
/*
* We only care about visible calendars.
*/
List<Calendar> calendars = headerView.getCalendars().stream()
.filter(headerView::isCalendarVisible)
.collect(Collectors.toList());
int calendarCount = calendars.size();
double columnWidth = (double) 100 / (double) calendarCount;
for (int j = 0; j < calendarCount; j++) {
Calendar calendar = calendars.get(j);
ColumnConstraints calendarConstraint = new ColumnConstraints();
calendarConstraint.setPercentWidth(columnWidth);
calendarConstraint.setFillWidth(true);
calendarConstraint.setHgrow(Priority.ALWAYS);
dayConstraints.add(calendarConstraint);
Node calendarLabel = factory.call(calendar);
calendarLabel.getStyleClass().addAll(
"default-style-calendar-header", //$NON-NLS-1$
calendar.getStyle() + "-calendar-header"); //$NON-NLS-1$
dayGridPane.add(calendarLabel, j, 0);
GridPane.setHgrow(calendarLabel, Priority.ALWAYS);
GridPane.setVgrow(calendarLabel, Priority.ALWAYS);
GridPane.setFillHeight(calendarLabel, true);
GridPane.setFillWidth(calendarLabel, true);
calendarLabel.pseudoClassStateChanged(FIRST_COLUMN, j == 0);
calendarLabel.pseudoClassStateChanged(MIDDLE_COLUMN,
j > 0 && j < calendarCount - 1);
calendarLabel.pseudoClassStateChanged(LAST_COLUMN,
j == calendarCount - 1);
}
dayGridPane.getColumnConstraints().setAll(dayConstraints);
pane.add(dayGridPane, i, 0);
}
pane.getColumnConstraints().setAll(weekConstraints);
}
}
示例14: createPredefinedTagsGrid
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private GridPane createPredefinedTagsGrid() {
final GridPane grid = new GridPane();
grid.setHgap(GRID_GAP);
grid.setVgap(GRID_GAP);
grid.setPadding(new Insets(GRID_GAP));
grid.setGridLinesVisible(false);
//-------------------------------------------------------------------- Column #0
//
final Label idLabel = new Label("ID");
grid.add(idLabel, 0, 0);
GridPane.setHalignment(idLabel, HPos.RIGHT);
//
final Label nameLabel = new Label("Name");
grid.add(nameLabel, 0, 1);
GridPane.setHalignment(nameLabel, HPos.RIGHT);
//
final Label titleLabel = new Label("Title");
grid.add(titleLabel, 0, 2);
GridPane.setHalignment(titleLabel, HPos.RIGHT);
//
//-------------------------------------------------------------------- Column #1
//
grid.add(ID_TAG_FIELD, 1, 0);
grid.add(NAME_TAG_FIELD, 1, 1);
grid.add(TITLE_TAG_FIELD, 1, 2);
//
//-------------------------------------------------------------------- Constraints
//
for (int i = 0; i < 2; i++) {
final ColumnConstraints column = new ColumnConstraints();
column.setFillWidth(true);
column.setHgrow(Priority.NEVER);
grid.getColumnConstraints().add(column);
}
for (int i = 0; i < 3; i++) {
final RowConstraints row = new RowConstraints();
row.setFillHeight(true);
row.setVgrow(Priority.NEVER);
grid.getRowConstraints().add(row);
}
//
grid.getColumnConstraints().get(1).setHgrow(Priority.SOMETIMES);
//
//-------------------------------------------------------------------- Style
//
ID_TAG_FIELD.setStyle(READ_ONLY_STYLE);
NAME_TAG_FIELD.setStyle(READ_ONLY_STYLE);
TITLE_TAG_FIELD.setStyle(READ_ONLY_STYLE);
//
//-------------------------------------------------------------------- Editable
//
ID_TAG_FIELD.setEditable(false);
NAME_TAG_FIELD.setEditable(false);
TITLE_TAG_FIELD.setEditable(false);
//
return grid;
}
示例15: createForm
import javafx.scene.layout.ColumnConstraints; //导入方法依赖的package包/类
private Pane createForm() {
final GridPane grid = new GridPane();
grid.setHgap(SMALL_GRID_GAP);
grid.setVgap(SMALL_GRID_GAP);
grid.setPadding(new Insets(GRID_GAP));
grid.setGridLinesVisible(false);
//-------------------------------------------------------------------- Row #0
//
grid.add(CONTENT_PROGRESS, 0, 0);
CONTENT_PROGRESS.setMaxWidth(Double.MAX_VALUE);
CONTENT_PROGRESS.setMinHeight(0);
CONTENT_PROGRESS.setMinWidth(0);
CONTENT_PROGRESS.setProgress(0);
//
grid.add(CONTENT_VOLUME, 1, 0);
CONTENT_VOLUME.setMaxWidth(Double.MAX_VALUE);
CONTENT_PROGRESS.prefHeightProperty().bind(CONTENT_VOLUME.heightProperty());
CONTENT_VOLUME.setMin(0);
CONTENT_VOLUME.setMax(1);
CONTENT_VOLUME.setValue(0);
//
//-------------------------------------------------------------------- Row #1
//
grid.add(CONTENT_VIEWER, 0, 1);
CONTENT_VIEWER.volumeProperty().bindBidirectional(CONTENT_VOLUME.valueProperty());
grid.add(createCatalogPane(), 1, 1, 1, 2);
//
//-------------------------------------------------------------------- Row #2
//
grid.add(createDescriptionPane(), 0, 2);
//
//-------------------------------------------------------------------- Constraints
//
for (int i = 0; i < 2; i++) {
final ColumnConstraints column = new ColumnConstraints();
column.setFillWidth(true);
column.setHgrow(Priority.NEVER);
grid.getColumnConstraints().add(column);
}
for (int i = 0; i < 3; i++) {
final RowConstraints row = new RowConstraints();
row.setFillHeight(true);
row.setVgrow(Priority.NEVER);
grid.getRowConstraints().add(row);
}
//
grid.getColumnConstraints().get(0).setPrefWidth(RESOLUTION.getWidth());
grid.getColumnConstraints().get(0).setMinWidth(RESOLUTION.getWidth());
grid.getColumnConstraints().get(0).setMaxWidth(RESOLUTION.getWidth());
grid.getColumnConstraints().get(1).setHgrow(Priority.SOMETIMES);
//
grid.getRowConstraints().get(1).setPrefHeight(RESOLUTION.getHeight());
grid.getRowConstraints().get(1).setMinHeight(RESOLUTION.getHeight());
grid.getRowConstraints().get(1).setMaxHeight(RESOLUTION.getHeight());
grid.getRowConstraints().get(2).setVgrow(Priority.SOMETIMES);
//
//-------------------------------------------------------------------- Style
//
CONTENT_VIEWER.setStyle(READ_ONLY_STYLE);
SNAPSHOTS_GALLERY.setStyle(READ_ONLY_STYLE);
SNAPSHOTS_GALLERY2.setStyle(READ_ONLY_STYLE);
//
//-------------------------------------------------------------------- Editable
//
CATALOG_TREE.setEditable(false);
CONTENT_TAGS_TABLE.setEditable(false);
DESCRIPTION_AREA.setEditable(false);
//
return grid;
}