obo
6 months ago
2 changed files with 2 additions and 52 deletions
@ -1,51 +0,0 @@ |
|||||||
package com.fr.design.gui.ilable; |
|
||||||
|
|
||||||
import com.fr.base.i18n.BidiUtils; |
|
||||||
|
|
||||||
import javax.swing.Icon; |
|
||||||
import javax.swing.JLabel; |
|
||||||
|
|
||||||
/** |
|
||||||
* description |
|
||||||
* |
|
||||||
* @author obo |
|
||||||
* @since 11.0 |
|
||||||
* Created on 2024/07/16 |
|
||||||
*/ |
|
||||||
public class LocaleOrientationLabel extends JLabel { |
|
||||||
|
|
||||||
public LocaleOrientationLabel(String text, Icon image, int horizontalAlignment) { |
|
||||||
super(text, image, horizontalAlignment); |
|
||||||
if (image != null && text != null) { |
|
||||||
setIconTextGap(4); |
|
||||||
} |
|
||||||
this.setComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
||||||
} |
|
||||||
|
|
||||||
public LocaleOrientationLabel(String text, int horizontalAlignment) { |
|
||||||
super(text, horizontalAlignment); |
|
||||||
this.setComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
||||||
} |
|
||||||
|
|
||||||
public LocaleOrientationLabel(String text) { |
|
||||||
super(text); |
|
||||||
this.setComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
||||||
} |
|
||||||
|
|
||||||
public LocaleOrientationLabel(Icon image, int horizontalAlignment) { |
|
||||||
super(image, horizontalAlignment); |
|
||||||
this.setComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
||||||
} |
|
||||||
|
|
||||||
public LocaleOrientationLabel(Icon image) { |
|
||||||
super(image); |
|
||||||
this.setComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
||||||
} |
|
||||||
|
|
||||||
public LocaleOrientationLabel() { |
|
||||||
super(); |
|
||||||
this.setComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
} |
|
Loading…
Reference in new issue