cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Padding Bottom property to an UI in dynamic coding

Former Member
0 Kudos

Hi

I am writing a dynamic code in the doModify() method to create a set of UI elements within a Transparent container at runtime.

I need more spacing between two rows of UI elements. So I thought of adding the Padding Bottom property to the UI elements. Since the UIs are generated at runtime, I need to specify the Padding Bottom value at runtime as well.

Please advise how to achieve that.

Thanks and Regards,

Sayan Ghosh

Accepted Solutions (1)

Accepted Solutions (1)

former_member192152
Active Participant
0 Kudos

I hope that helps you!

IWDTransparentContainer trspContHeaderButtonsLeft = (IWDTransparentContainer) view.createElement(IWDTransparentContainer.class, "trspContHeaderButtonsLeft");

{

IWDGridLayout gridLayouttrspContHeaderButtonsLeft = (IWDGridLayout) trspContHeaderButtonsLeft.createLayout(IWDGridLayout.class);

{

gridLayouttrspContHeaderButtonsLeft.setColCount(6);

}

IWDGridData gridDatatrspContHeaderButtonsLeft = (IWDGridData) trspContHeaderButtonsLeft.createLayoutData(IWDGridData.class);

{

gridDatatrspContHeaderButtonsLeft.setColSpan(1);

gridDatatrspContHeaderButtonsLeft.setHAlign(WDCellHAlign.FORCED_LEFT);

gridDatatrspContHeaderButtonsLeft.setWidth("1%");

}

}

regards,

Angelo

Answers (0)