|
|
|
@ -155,7 +155,7 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH
|
|
|
|
|
double[] columnSize = { p, f }; |
|
|
|
|
double[] rowSize = { p}; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{new UILabel("add hyperlink "), topToolBar}, |
|
|
|
|
new Component[]{new UILabel(getAddItemText()), topToolBar}, |
|
|
|
|
}; |
|
|
|
|
JPanel leftTopPane = TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); |
|
|
|
|
leftTopPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 6, 0)); |
|
|
|
@ -164,6 +164,13 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH
|
|
|
|
|
return leftPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 子类重写此方法,可以改变标签内容 |
|
|
|
|
*/ |
|
|
|
|
protected String getAddItemText() { |
|
|
|
|
return "add item "; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 初始化左边面板 |
|
|
|
|
*/ |
|
|
|
|