There are 5 code examples for org.eclipse.swt.layout.RowLayout.
The API names are highlighted below.
You can use
button
to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.
Project Name: OpenII Package: org.mitre.openii.dialogs.mappings.importer
Source Code: SchemaSelectionPane.java (Click to view .java file)
Method Code:
/**
* Constructs the selection pane
*/
SchemaSelectionPane(Composite parent,Project project,String text){
this.project=project;
BasicWidgets.createLabel(parent,text);
schemaPane=new Composite(parent,SWT.NONE);
RowLayout layout=new RowLayout(SWT.HORIZONTAL);
layout.marginLeft=0;
layout.marginTop=0;
layout.marginBottom=1;
layout.center=true;
schemaPane.setLayout(layout);
schemaList=new ComboViewer(schemaPane,SWT.NONE);
schemaList.getControl().setLayoutData(new RowData(200,13));
setProjectFilter(true);
schemaLabel=new Label(schemaPane,SWT.NONE);
schemaLabel.setLayoutData(new RowData(100,13));
}
Project Name: OpenII Package: org.mitre.openii.dialogs.projects
Source Code: EditProjectDialog.java (Click to view .java file)
Method Code:
/**
* Creates the contents for the Import Schema Dialog
*/
protected Control createDialogArea(Composite parent){
Composite pane=new Composite(parent,SWT.DIALOG_TRIM);
RowLayout layout=new RowLayout(SWT.VERTICAL);
layout.fill=true;
pane.setLayout(layout);
createInfoPane(pane);
createSchemaPane(pane);
createMappingPane(pane);
return pane;
}
Project Name: OpenII Package: org.mitre.openii.editors.unity
Source Code: ContextPane.java (Click to view .java file)
Method Code:
public void createContextPane(Composite parent){
GridLayout viewlayout=new GridLayout(2,false);
viewlayout.marginHeight=0;
viewlayout.marginWidth=0;
viewlayout.verticalSpacing=0;
viewlayout.horizontalSpacing=0;
viewlayout.marginBottom=0;
parent.setLayout(viewlayout);
GridData viewGridData=new GridData();
viewGridData.horizontalAlignment=GridData.FILL;
viewGridData.verticalAlignment=GridData.FILL;
viewGridData.grabExcessHorizontalSpace=true;
viewGridData.grabExcessVerticalSpace=true;
parent.setLayoutData(viewGridData);
Composite synsetLabelC=new Composite(parent,SWT.NONE);
RowLayout labellayout=new RowLayout();
synsetLabelC.setLayout(labellayout);
synsetLabelC.setLayoutData(new GridData(SWT.BEGINNING,SWT.CENTER,true,false));
synsetLabel3=new Label(synsetLabelC,SWT.NONE);
synsetLabel3.setText("");
synsetLabel3.setFont(LargeBoldFont);
Composite buttons=new Composite(parent,SWT.NONE);
RowLayout tableButtonlayout=new RowLayout();
buttons.setLayout(tableButtonlayout);
buttons.setLayoutData(new GridData(SWT.END,SWT.CENTER,false,false));
contextView=new ScrolledComposite(parent,SWT.V_SCROLL | SWT.H_SCROLL);
contextViewGridData=new GridData();
contextViewGridData.horizontalSpan=2;
contextViewGridData.minimumHeight=0;
contextViewGridData.verticalIndent=0;
contextViewGridData.horizontalAlignment=GridData.FILL;
contextViewGridData.verticalAlignment=GridData.BEGINNING;
contextViewGridData.grabExcessHorizontalSpace=true;
contextViewGridData.grabExcessVerticalSpace=true;
contextView.setLayoutData(contextViewGridData);
contextViewLayout=new GridLayout(2,false);
contextViewLayout.marginHeight=4;
contextViewLayout.marginWidth=4;
contextView.setLayout(contextViewLayout);
new Composite(contextView,SWT.NONE);
contextView.setExpandVertical(true);
contextView.setExpandHorizontal(true);
addListeners();
}
Project Name: OpenII Package: org.mitre.openii.editors.vocabulary
Source Code: VocabViewCanvas.java (Click to view .java file)
Method Code:
/**
* creates the dialog that allows a user to add a row to the table
*/
private void createRowCreationDialog(){
Display display=viewsParent.getDisplay();
final Shell rowCreationDialog=new Shell(display,SWT.TITLE | SWT.APPLICATION_MODAL);
rowCreationDialog.setText("Create");
rowCreationDialog.setLayout(new GridLayout(2,false));
Label label=new Label(rowCreationDialog,SWT.RIGHT);
label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
label.setText("Vocabularly Term Name: ");
final Text text=new Text(rowCreationDialog,SWT.BORDER);
GridData gd0=new GridData(GridData.FILL_HORIZONTAL);
text.setLayoutData(gd0);
text.setText("<name>");
Composite okayRemovePane=new Composite(rowCreationDialog,SWT.NONE);
RowLayout rowLayout=new RowLayout();
okayRemovePane.setLayout(rowLayout);
Button okButton=new Button(okayRemovePane,SWT.NONE);
okButton.setText("Ok");
okButton.addListener(SWT.Selection,new Listener(){
public void handleEvent( Event event){
addRow(text.getText());
rowCreationDialog.dispose();
}
}
);
Button cancelButton=new Button(okayRemovePane,SWT.NONE);
cancelButton.setText("Cancel");
cancelButton.addListener(SWT.Selection,new Listener(){
public void handleEvent( Event event){
rowCreationDialog.dispose();
}
}
);
rowCreationDialog.pack();
rowCreationDialog.open();
}
Project Name: OpenII Package: org.mitre.openii.widgets.matchers
Source Code: MatchersPane.java (Click to view .java file)
Method Code:
/**
* Constructs the Matchers Pane
*/
public MatchersPane(Composite parent,SelectionListener listener){
Group group=new Group(parent,SWT.NONE);
group.setText("Matchers");
RowLayout layout=new RowLayout();
layout.pack=false;
group.setLayout(layout);
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
for ( Matcher matcher : MatcherManager.getVisibleMatchers()) checkboxes.add(new MatcherCheckBox(group,matcher,listener));
}