xiaoxia 8 years ago
parent
commit
9fad179103
  1. 4
      designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/ContentCellRender.java
  2. 4
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

4
designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/CommonCellRender.java → designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/ContentCellRender.java

@ -10,10 +10,10 @@ import java.awt.*;
/**
* Created by XiaXiang on 2017/4/20.
*/
public class CommonCellRender implements ListCellRenderer<Object> {
public class ContentCellRender implements ListCellRenderer<Object> {
private UILabel name;
private UILabel content;
public CommonCellRender() {
public ContentCellRender() {
this.name = new UILabel();
this.content = new UILabel();
}

4
designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

@ -9,7 +9,7 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.alphafine.AlphaFineConstants;
import com.fr.design.mainframe.alphafine.AlphaFineHelper;
import com.fr.design.mainframe.alphafine.cell.cellRender.CommonCellRender;
import com.fr.design.mainframe.alphafine.cell.cellRender.ContentCellRender;
import com.fr.design.mainframe.alphafine.cell.cellModel.*;
import com.fr.design.mainframe.alphafine.listener.ComponentHandler;
import com.fr.design.mainframe.alphafine.listener.DocumentAdapter;
@ -173,7 +173,7 @@ public class AlphaFineDialog extends UIDialog {
searchResultPane = new JPanel();
searchResultPane.setPreferredSize(AlphaFineConstants.CONTENT_SIZE);
searchResultPane.setLayout(new BorderLayout());
searchResultList.setCellRenderer(new CommonCellRender());
searchResultList.setCellRenderer(new ContentCellRender());
searchResultList.setFixedCellHeight(AlphaFineConstants.CELL_HEIGHT);
searchResultList.addMouseListener(new MouseAdapter() {
@Override

Loading…
Cancel
Save