|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
package com.fr.design.data.datapane; |
|
|
|
|
|
|
|
|
|
import com.fine.component.toast.ToastMsgManager; |
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fine.theme.light.ui.FineRoundBorder; |
|
|
|
|
import com.fine.theme.utils.FineUIStyle; |
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
|
import com.fr.base.TableData; |
|
|
|
|
import com.fr.data.MultiResultTableData; |
|
|
|
@ -264,7 +266,7 @@ public class TableDataTreePane extends BasicTableDataTreePane {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
private JPanel initTreePane() { |
|
|
|
|
JPanel treePane = new JPanel(new BorderLayout(0, scale(6))); |
|
|
|
|
JPanel treePane = new JPanel(new BorderLayout()); |
|
|
|
|
// north
|
|
|
|
|
JPanel northPane = new JPanel(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
initServerDatasetAuthTipJPanel(); |
|
|
|
@ -299,11 +301,11 @@ public class TableDataTreePane extends BasicTableDataTreePane {
|
|
|
|
|
String lineTip = lineTips.get(i); |
|
|
|
|
List<JLabel> jLabels = new ArrayList<>(); |
|
|
|
|
JLabel lineJLabel = new JLabel(lineTip); |
|
|
|
|
lineJLabel.setForeground(Color.lightGray); |
|
|
|
|
FineUIStyle.setStyle(lineJLabel, FineUIStyle.LABEL_TIP); |
|
|
|
|
jLabels.add(lineJLabel); |
|
|
|
|
if (i == (lineTips.size() - 1)) { |
|
|
|
|
JLabel jLabel = new JLabel(Toolkit.i18nText("Fine-Design_Basic_Alphafine_No_Remind")); |
|
|
|
|
jLabel.setForeground(Color.blue); |
|
|
|
|
FineUIStyle.setStyle(jLabel, FineUIStyle.HYPER_LINK_LABEL); |
|
|
|
|
jLabel.addMouseListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
@ -1023,7 +1025,13 @@ public class TableDataTreePane extends BasicTableDataTreePane {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
dgEdit(getTableDataInstance().creatTableDataPane(), createDsName(getNamePrefix()), false); |
|
|
|
|
try { |
|
|
|
|
dgEdit(getTableDataInstance().creatTableDataPane(), createDsName(getNamePrefix()), false); |
|
|
|
|
} catch (Exception ex) { |
|
|
|
|
String msg = StringUtils.isEmpty(ex.getMessage()) ? Toolkit.i18nText("Fine-Design_Remote_Data_Error") |
|
|
|
|
: ex.getMessage(); |
|
|
|
|
ToastMsgManager.getInstance().error(msg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|