Description
Vidge it is a set of templates , tools and abstract classes purposed for faster and more
standartize building of the Eclipse RCP applications. With Vidge you may to create a tables with
many advanced properties like sorting,filtering,pagination,enumeration in one string of java code.
Automatically build user interface and databinding without changes of you code.
By example: If we want to show a list of objects Word - we must create object WordForm:
public class WordForm implements IForm {
public WordForm() {
}
public WordForm(Word word) {
input = word;
}
private Word input;
@Override
public Word getInput() {
return input;
}
@Override
public void setInput(Word input) {
this.input = input;
}
@VisualProperty(order = 1)
public String getWord() {
return input.getWord();
}
@VisualProperty(order = 2)
public String getOwner() {
return input.getOwner();
}
@VisualProperty(order = 3)
public Integer getFrequency() {
return input.getFrequency();
}
@VisualProperty(order = 4)
public String getRemark() {
return input.getRemark();
}
}
Here we mark with annotations how and where we want to see a fields in a visual form.
And invoke a ObjectChooser with WordForm class and a list of words - thats all.
@Override
public void createPartControl(Composite parent) {
chooser = new ObjectChooser(parent, ObjectChooser.TITLE | ObjectChooser.TOOLKIT, WordForm.class, new ArrayList());
chooser.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
..........
}
});
chooser.addDoubleClickListener(new IDoubleClickListener() {
@Override
public void doubleClick(DoubleClickEvent event) {
..........
}
});
super.createPartControl(parent);
}
And we can see following:

Also you may to build forms and wizards for any management purposes automatically and it forms will
transmit all changes from form to you object, validate user input. By example:
PlainForm plainForm = new PlainForm(form, new FormRegistry());
Composite composite = plainForm.getPane(parentComposite, SWT.FILL);
composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
So this composite - it is a bulded visual form , parameter form - may be instance a WordForm, but this form has
not setters so you may only read word parameters, if you add setters - if will stay editable
It is look like:

|