|
|
@ -42,6 +42,7 @@ import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.report.core.ReportUtils; |
|
|
|
import com.fr.report.core.ReportUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
|
|
|
|
import javax.swing.border.Border; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -243,6 +244,16 @@ public class FRFitLayoutDefinePane extends AbstractFRLayoutDefinePane<WFitLayout |
|
|
|
FormDesigner formDesigner = WidgetPropertyPane.getInstance().getEditingFormDesigner(); |
|
|
|
FormDesigner formDesigner = WidgetPropertyPane.getInstance().getEditingFormDesigner(); |
|
|
|
formDesigner.getSelectionModel().setSelectedCreators( |
|
|
|
formDesigner.getSelectionModel().setSelectedCreators( |
|
|
|
FormSelectionUtils.rebuildSelection(xWFitLayout, new Widget[]{wAbsoluteBodyLayout})); |
|
|
|
FormSelectionUtils.rebuildSelection(xWFitLayout, new Widget[]{wAbsoluteBodyLayout})); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (xwAbsoluteBodyLayout.toData() != null) { |
|
|
|
|
|
|
|
xwAbsoluteBodyLayout.toData().setBorderStyleFollowingTheme(wAbsoluteBodyLayout.isBorderStyleFollowingTheme()); |
|
|
|
|
|
|
|
xwAbsoluteBodyLayout.toData().setBorderStyle(wAbsoluteBodyLayout.getBorderStyle()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
xwAbsoluteBodyLayout.refreshStylePreviewEffect(); |
|
|
|
|
|
|
|
if (xWFitLayout.toData() != null) { |
|
|
|
|
|
|
|
xWFitLayout.toData().resetStyle(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
xWFitLayout.refreshStylePreviewEffect(); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|