|
|
|
@ -1,13 +1,13 @@
|
|
|
|
|
package com.fr.plugin.cell.highlight.ui; |
|
|
|
|
|
|
|
|
|
import com.fr.design.condition.ConditionAttrSingleConditionPane; |
|
|
|
|
import com.fr.design.condition.ConditionAttributesPane; |
|
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
|
import com.fr.design.gui.icombobox.UIDictionaryComboBox; |
|
|
|
|
import com.fr.general.Inter; |
|
|
|
|
import com.fanruan.api.design.ui.condition.ConditionAttrSingleConditionPane; |
|
|
|
|
import com.fanruan.api.design.ui.component.UIComboBox; |
|
|
|
|
import com.fanruan.api.design.ui.component.UIDictionaryComboBox; |
|
|
|
|
import com.fr.plugin.cell.highlight.fun.AlignHighlightAction; |
|
|
|
|
import com.fr.report.cell.cellattr.highlight.HighlightAction; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
import com.fanruan.api.macro.Constants; |
|
|
|
|
import com.fanruan.api.design.DesignKit; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
|
|
|
|
@ -25,22 +25,22 @@ public class AlignHighlightPane extends ConditionAttrSingleConditionPane<Highlig
|
|
|
|
|
this.alignComboBox = new UIDictionaryComboBox<Integer>( |
|
|
|
|
new Integer[]{Constants.LEFT, Constants.CENTER, Constants.RIGHT}, |
|
|
|
|
new String[]{ |
|
|
|
|
Inter.getLocText("Plugin-Highlight_Align_Left"), |
|
|
|
|
Inter.getLocText("Plugin-Highlight_Align_Center"), |
|
|
|
|
Inter.getLocText("Plugin-Highlight_Align_Right")} |
|
|
|
|
DesignKit.i18nText("Plugin-Highlight_Align_Left"), |
|
|
|
|
DesignKit.i18nText("Plugin-Highlight_Align_Center"), |
|
|
|
|
DesignKit.i18nText("Plugin-Highlight_Align_Right")} |
|
|
|
|
); |
|
|
|
|
add(alignComboBox); |
|
|
|
|
this.scopeComboBox = new UIComboBox(new String[]{ |
|
|
|
|
Inter.getLocText("Plugin-Highlight_Align_Current_Cell"), |
|
|
|
|
Inter.getLocText("Plugin-Highlight_Align_Current_Row"), |
|
|
|
|
Inter.getLocText("Plugin-Highlight_Align_Current_Column")}); |
|
|
|
|
DesignKit.i18nText("Plugin-Highlight_Align_Current_Cell"), |
|
|
|
|
DesignKit.i18nText("Plugin-Highlight_Align_Current_Row"), |
|
|
|
|
DesignKit.i18nText("Plugin-Highlight_Align_Current_Column")}); |
|
|
|
|
|
|
|
|
|
this.add(this.scopeComboBox); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String nameForPopupMenuItem() { |
|
|
|
|
return Inter.getLocText("Plugin-Highlight_Align"); |
|
|
|
|
return DesignKit.i18nText("Plugin-Highlight_Align"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|