我对这种解决问题的方法有疑问。我需要一个更大的复选框。问题作者在方法中的部分解决方案:
return {
restrict: 'E',
require: '^^rootNav',
scope: {
menuItem: '=navData'
},
link: function (scope, el, attrs, rootNavCtrl) {
if (scope.menuItem && scope.menuItem.children && scope.menuItem.children.length > 0) {
$http.get('/markup/components/root-navigation/sub-navigation.html').then(function (response) {
el.replaceWith($compile(response.data)(scope);
});
}
},
}
private JCheckBox createCheckBox() {
Icon normal = new ImageIcon(...);
Icon selected = new ImageIcon(...);
JTable table = new JTable(what parameter);
table.setRowHeight(...);
TableCellRenderer renderer = table.getDefaultRenderer(Boolean.class);
JCheckBox checkBoxRenderer = (JCheckBox)renderer;
checkBoxRenderer.setIcon( normal );
checkBoxRenderer.setSelectedIcon( selected );
DefaultCellEditor editor = (DefaultCellEditor)table.getDefaultEditor(Boolean.class);
JCheckBox checkBoxEditor = (JCheckBox)editor.getComponent();
checkBoxEditor.setIcon( normal );
checkBoxEditor.setSelectedIcon( selected );
return which panel?
}
的构造函数中可以提供哪些参数?