|
|
|
@ -17,6 +17,7 @@ import com.fr.stable.StringUtils;
|
|
|
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineClientProperties.ADAPTIVE_COMBO_BOX; |
|
|
|
|
import static com.fine.theme.utils.FineClientProperties.COMBO_BOX_TYPE; |
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class MaxMemRowCountPanel extends UIToolbar { |
|
|
|
@ -24,7 +25,7 @@ public class MaxMemRowCountPanel extends UIToolbar {
|
|
|
|
|
private static final int MAX_IN_MEMORY = 1; |
|
|
|
|
private static final String[] CACHE_LIST = {com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Save_All_Records_In_Memory"), |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Max_Mem_Row_Count") }; |
|
|
|
|
private static final int MAX_WIDTH = getMaxComBoBoxWidth() > 200 ? 350 : 280; |
|
|
|
|
private static final int MAX_WIDTH = getMaxComBoBoxWidth(); |
|
|
|
|
private static final int MAX_COMPONENT_COUNT_OF_MAX_MEMORY = 4; |
|
|
|
|
private static int getMaxComBoBoxWidth() { |
|
|
|
|
int maxWidth = GraphHelper.getWidth(CACHE_LIST[0]); |
|
|
|
@ -34,6 +35,7 @@ public class MaxMemRowCountPanel extends UIToolbar {
|
|
|
|
|
maxWidth = width; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
maxWidth = maxWidth > scale(200) ? scale(350) : scale(280); |
|
|
|
|
return maxWidth; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|