|
|
@ -21,7 +21,6 @@ import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
public abstract class AbstractSortItemPane extends JPanel { |
|
|
|
public abstract class AbstractSortItemPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
protected int sortItemPaneWidth; |
|
|
|
protected int sortItemPaneWidth; |
|
|
|
protected int sortItemPaneRightWidth; |
|
|
|
protected int sortItemPaneRightWidth; |
|
|
|
List<SortExpressionPane> sortExpressionPanes = new ArrayList<>(); |
|
|
|
List<SortExpressionPane> sortExpressionPanes = new ArrayList<>(); |
|
|
@ -73,7 +72,6 @@ public abstract class AbstractSortItemPane extends JPanel { |
|
|
|
this.add(sortRulePane); |
|
|
|
this.add(sortRulePane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void initSortBasisPanel() { |
|
|
|
void initSortBasisPanel() { |
|
|
|
sortBasisPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, AbstractSortPane.PANE_COMPONENT_V_GAP)); |
|
|
|
sortBasisPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, AbstractSortPane.PANE_COMPONENT_V_GAP)); |
|
|
|
sortBasisUiComboBox = new UIComboBox(getSortNames()); |
|
|
|
sortBasisUiComboBox = new UIComboBox(getSortNames()); |
|
|
@ -90,8 +88,6 @@ public abstract class AbstractSortItemPane extends JPanel { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sortBasisPanel.add(new UILabel(Toolkit.i18nText("Fine-Design_Sort_Sort_Basis"), SwingConstants.LEFT)); |
|
|
|
sortBasisPanel.add(new UILabel(Toolkit.i18nText("Fine-Design_Sort_Sort_Basis"), SwingConstants.LEFT)); |
|
|
|
sortBasisPanel.add(AbstractSortPane.createIntervalUILabel()); |
|
|
|
sortBasisPanel.add(AbstractSortPane.createIntervalUILabel()); |
|
|
|
sortBasisPanel.add(sortBasisUiComboBox); |
|
|
|
sortBasisPanel.add(sortBasisUiComboBox); |
|
|
@ -124,7 +120,6 @@ public abstract class AbstractSortItemPane extends JPanel { |
|
|
|
} else if (sortExpression.getSortRule() == SortRule.NO_SORT) { |
|
|
|
} else if (sortExpression.getSortRule() == SortRule.NO_SORT) { |
|
|
|
sortRuleUiComboBox.setSelectedIndex(2); |
|
|
|
sortRuleUiComboBox.setSelectedIndex(2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < sortExpressionPanes.size(); i++) { |
|
|
|
for (int i = 0; i < sortExpressionPanes.size(); i++) { |
|
|
|
if (StringUtils.equals(sortExpression.getSortName(), sortExpressionPanes.get(i).getSortName())) { |
|
|
|
if (StringUtils.equals(sortExpression.getSortName(), sortExpressionPanes.get(i).getSortName())) { |
|
|
|
if (currentSortExpressionPane != null) { |
|
|
|
if (currentSortExpressionPane != null) { |
|
|
|