|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.utils.gui; |
|
|
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
|
import com.fr.design.gui.core.UITextComponent; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
@ -20,7 +21,10 @@ import java.util.Locale;
|
|
|
|
|
|
|
|
|
|
// Noninstantiable utility class
|
|
|
|
|
public class UIComponentUtils { |
|
|
|
|
private static final String HTML_TAG_TPL = "<html><body style='width: %dpx'>"; |
|
|
|
|
/** |
|
|
|
|
* html内联css实现文本靠右对齐rtl |
|
|
|
|
*/ |
|
|
|
|
private static final String HTML_TAG_TPL = BidiUtils.rtl() ? "<html><body style='text-align: right;width: %dpx'>" : "<html><body style='width: %dpx'>"; |
|
|
|
|
private static final String HTML_BODY_TAG = "<html><body>"; |
|
|
|
|
private static final String HTML_TAG = "<html>"; |
|
|
|
|
private static final int MIN_WIDTH = 10; |
|
|
|
|