|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.gui.controlpane; |
|
|
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.ilist.ListModelElement; |
|
|
|
@ -50,11 +51,13 @@ public class UINameableListCellRenderer extends
|
|
|
|
|
editButton.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 1, UIConstants.LIST_ITEM_SPLIT_LINE)); |
|
|
|
|
editButton.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
|
label = new UILabel(); |
|
|
|
|
label.setHorizontalAlignment(SwingConstants.LEADING); |
|
|
|
|
label.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0)); |
|
|
|
|
initialLabelForeground = label.getForeground(); |
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
this.add(editButton, BorderLayout.WEST); |
|
|
|
|
this.add(editButton, BorderLayout.LINE_START); |
|
|
|
|
this.add(label, BorderLayout.CENTER); |
|
|
|
|
BidiUtils.applyOrientationByLocale(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Border getNoFocusBorder() { |
|
|
|
|