Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to add a text Box in on TeamFormLayout

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".

0 votes



One answer

Permanent link
This was resolved by putting a border around the text box control.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Aug 19 '09, 12:16 p.m.

Question was seen: 5,615 times

Last updated: Aug 19 '09, 12:16 p.m.

Confirmation Cancel Confirm