Пример #1
0
 @Override
 public void preserveValues(ExpandItem item) {
   WidgetLCAUtil.preserveBounds(item, getBounds(item));
   ItemLCAUtil.preserve(item);
   preserveProperty(item, PROP_EXPANDED, item.getExpanded());
   preserveProperty(item, PROP_HEADER_HEIGHT, item.getHeaderHeight());
 }
Пример #2
0
 private static void preserveSelectionBgGradient(CTabFolder folder) {
   ICTabFolderAdapter adapter = getCTabFolderAdapter(folder);
   IWidgetGraphicsAdapter gfxAdapter = adapter.getUserSelectionBackgroundGradient();
   Color[] bgGradientColors = gfxAdapter.getBackgroundGradientColors();
   int[] bgGradientPercents = gfxAdapter.getBackgroundGradientPercents();
   Boolean bgGradientVertical = Boolean.valueOf(gfxAdapter.isBackgroundGradientVertical());
   preserveProperty(folder, PROP_SELECTION_BG_GRADIENT_COLORS, bgGradientColors);
   preserveProperty(folder, PROP_SELECTION_BG_GRADIENT_PERCENTS, bgGradientPercents);
   preserveProperty(folder, PROP_SELECTION_BG_GRADIENT_VERTICAL, bgGradientVertical);
 }
Пример #3
0
 @Override
 public void preserveValues(CTabFolder folder) {
   preserveProperty(folder, PROP_TAB_POSITION, getTabPosition(folder));
   preserveProperty(folder, PROP_TAB_HEIGHT, folder.getTabHeight());
   preserveProperty(folder, PROP_MIN_MAX_STATE, getMinMaxState(folder));
   preserveProperty(folder, PROP_MINIMIZE_BOUNDS, getMinimizeBounds(folder));
   preserveProperty(folder, PROP_MINIMIZE_VISIBLE, folder.getMinimizeVisible());
   preserveProperty(folder, PROP_MAXIMIZE_BOUNDS, getMaximizeBounds(folder));
   preserveProperty(folder, PROP_MAXIMIZE_VISIBLE, folder.getMaximizeVisible());
   preserveProperty(folder, PROP_CHEVRON_BOUNDS, getChevronBounds(folder));
   preserveProperty(folder, PROP_CHEVRON_VISIBLE, getChevronVisible(folder));
   preserveProperty(folder, PROP_UNSELECTED_CLOSE_VISIBLE, folder.getUnselectedCloseVisible());
   preserveProperty(folder, PROP_SELECTION, folder.getSelection());
   preserveProperty(folder, PROP_SELECTION_BACKGROUND, getSelectionBackground(folder));
   preserveProperty(folder, PROP_SELECTION_FOREGROUND, getSelectionForeground(folder));
   preserveProperty(folder, PROP_SELECTION_BACKGROUND_IMAGE, getSelectionBackgroundImage(folder));
   preserveSelectionBgGradient(folder);
   preserveProperty(folder, PROP_BORDER_VISIBLE, folder.getBorderVisible());
 }