It's all about the answers!

Ask a question

How to add a text Box in on TeamFormLayout


kaushambi Singh (5611611) | asked Aug 19 '09, 12:16 p.m.
Refering to the section: ContributingAttributePresentations, I want to add a text box on my editor to perform some operation .There is an example given of StarAttributePart.java
A button is added on the form layout.I want to add a text box bbelow the button but I only see the content of the text and not the textbox.I added the box in the similar way as the button was added but could not get the textbox displayed.

Private Text txtimp;
public void setVisible(boolean visible) {
List<Control> changedControls= new ArrayList<Control>();
if(txtImpact !=null && !txtImp.isDisposed()) {
TeamFormUtil.setVisible(txtImp, visible);
changedControls.add(txtImpact);
}
Util.updateFormLayout(changedControls.toArray(new Control));
};
public void createContent(ITeamFormLayout formLayout) {
public final WorkItemEditorToolkit toolkit= (WorkItemEditorToolkit) getSite().getToolkit();
Composite parent= formLayout.getContainer();
txtImp=toolkit.createText(parent,"abc",SWT.SINGLE);
formLayout.add(txtImpact,ITeamFormConfiguration.CONTENT_GUIDE);
}

Rest of the thing were same and I don't think to make a text box visible on formlayout, we require anything else. Let me know what has been missed out. I recived no error while launcing,but I could only see the the textbox content which is "abc".

One answer



permanent link
derry davis (23222016) | answered Aug 24 '09, 10:24 p.m.
This was resolved by putting a border around the text box control.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.