|
|
|
@ -31,6 +31,7 @@ import java.util.List;
|
|
|
|
|
* Time: 下午8:18 |
|
|
|
|
*/ |
|
|
|
|
public class FormWidgetDetailPane extends FormDockView{ |
|
|
|
|
private static final int LOCAL_TAB = 0; |
|
|
|
|
private static final int ONLINE_TAB = 1; |
|
|
|
|
|
|
|
|
|
private JPanel centerPane; |
|
|
|
@ -104,7 +105,7 @@ public class FormWidgetDetailPane extends FormDockView{
|
|
|
|
|
cardLayout.show(centerPane, paneList.get(newSelectedIndex).getTitle()); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
headGroup.setSelectedIndex(ComponentReuseNotificationInfo.getInstance().isClickedWidgetLib() ? 0 : ONLINE_TAB); |
|
|
|
|
headGroup.setSelectedIndex(ComponentReuseNotificationInfo.getInstance().isClickedWidgetLib() ? LOCAL_TAB : ONLINE_TAB); |
|
|
|
|
this.add(headGroup, BorderLayout.NORTH); |
|
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
@ -140,7 +141,7 @@ public class FormWidgetDetailPane extends FormDockView{
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void switch2Local() { |
|
|
|
|
headGroup.setSelectedIndex(0); |
|
|
|
|
headGroup.setSelectedIndex(LOCAL_TAB); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void switch2Online() { |
|
|
|
|