/**
* Create the Shell, setting up any elements that are not set up by the main Composite.
* @param arrayModificationHandler The ArrayModificationHandler the holds the represented array.
* @param myDimension The dimension of a probably multidimensional array this Window represents.
* @param dimensionsIndexes Dimension indexes of the higher-level dimensions the array represented might be a part of.
*/
private void createShell(ArrayModificationHandler arrayModificationHandler, int myDimension, int[] dimensionsIndexes) {
this.shell = new Shell(this.display, SWT.BORDER | SWT.CLOSE | SWT.TITLE | SWT.MIN);
this.shell.setText(Globals.WINDOWS_TITLE + Globals.WINDOWS_TITLE_CONNECTOR + "Array Entries");
this.shell.setLayout(new FillLayout(SWT.VERTICAL));
// Initialize the composite.
new ArrayEntriesComposite(this, this.shell, this.display, SWT.NONE, arrayModificationHandler, myDimension, dimensionsIndexes);
// Compute the needed size.
Point point = this.shell.computeSize(SWT.DEFAULT, SWT.DEFAULT);
point.x += 2;
point.y += 2;
int[] posXY = StaticGuiSupport.getCenteredPosition(point.x, point.y, this.parent.getShell());
this.shell.setBounds(posXY[0], posXY[1], point.x, point.y);
}
ArrayEntriesWindow.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:tap17-muggl-javaee
作者:
评论列表
文章目录