Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CellRenderer alignment not supported #511

Open
rjahn opened this issue Oct 11, 2024 · 2 comments
Open

CellRenderer alignment not supported #511

rjahn opened this issue Oct 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rjahn
Copy link
Member

rjahn commented Oct 11, 2024

The cell renderer doesn't support alignments.

User: features
Test screen: CellProfile (LAST_NAME column)

The alignment isn't recognized at all.

@rjahn rjahn added the bug Something isn't working label Oct 11, 2024
@rjahn rjahn added this to the 2.5 milestone Oct 11, 2024
@gimmixAT
Copy link
Contributor

this should already be fixed now by 99ccfb1 -> last name is right aligned

@rjahn
Copy link
Member Author

rjahn commented Nov 25, 2024

the LAST_NAME is now right, but alignment doesn't work in general because:

If you set the alignment for the DOB column (CellProfileWorkScreen in Eclipse):

search for: mdbData.getRowDefinition().getColumnDefinition("LAST_NAME").getDataType().setCellEditor(tcedRight);

and add:

mdbData.getRowDefinition().getColumnDefinition("DOB").getDataType().setCellEditor(new UINumberCellEditor(IAlignmentConstants.ALIGN_RIGHT));

Alignment of DOB column works, but not formatted:

image

and if you set the alignment for a linked cell editor:

	UIEnumCellEditor eced = new UIEnumCellEditor(new Object[] {"A", "B", "C"});
	eced.setHorizontalAlignment(IAlignmentConstants.ALIGN_RIGHT);

the text is still left aligned.

Alignment should work for text, number, date, linked, image renderers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants