treepanel.setControlPanel( getControlPanel() );
_treepanels.add( treepanel );
String name = "";
- if ( !ForesterUtil.isEmpty( phy.getName() ) ) {
- name = phy.getName();
- }
- else if ( phy.getIdentifier() != null ) {
- name = phy.getIdentifier().toString();
- }
- else if ( !ForesterUtil.isEmpty( default_name ) ) {
+ // if ( !ForesterUtil.isEmpty( phy.getName() ) ) {
+ // name = phy.getName();
+ // }
+ // else if ( phy.getIdentifier() != null ) {
+ // name = phy.getIdentifier().toString();
+ // }
+ /* else */
+ if ( !ForesterUtil.isEmpty( default_name ) ) {
name = default_name;
}
else {
JScrollPane getCurrentScrollPane() {
if ( _treegraphic_scroll_panes.size() > 0 ) {
- final int selected = _tabbed_pane.getSelectedIndex();
+ final int selected = getTabbedPane().getSelectedIndex();
if ( selected >= 0 ) {
return _treegraphic_scroll_panes.get( selected );
}
}
JPanel getCurrentScrollPanePanel() {
- final int selected = _tabbed_pane.getSelectedIndex();
+ final int selected = getTabbedPane().getSelectedIndex();
if ( selected >= 0 ) {
return _treegraphic_scroll_pane_panels.get( selected );
}
}
int getCurrentTabIndex() {
- final int selected = _tabbed_pane.getSelectedIndex();
+ final int selected = getTabbedPane().getSelectedIndex();
if ( selected >= 0 ) {
return selected;
}
}
}
+ void setTitleOfSelectedTab( final String title ) {
+ final int selected = getTabbedPane().getSelectedIndex();
+ if ( selected >= 0 ) {
+ getTabbedPane().setTitleAt( selected, title );
+ }
+ }
+
TreePanel getCurrentTreePanel() {
final int selected = getTabbedPane().getSelectedIndex();
if ( selected >= 0 ) {