Package org.tinyuml.model

Examples of org.tinyuml.model.NameChangeListener


    EditorPanel editor = new EditorPanel(diagramEditor, toolbarManager);
    GeneralDiagram diagram = diagramEditor.getDiagram();
    final Component comp = tabbedPane.add(diagram.getLabelText(), editor);
    final int index = tabbedPane.indexOfComponent(comp);
    tabbedPane.setToolTipTextAt(index, diagram.getLabelText());
    diagram.addNameChangeListener(new NameChangeListener() {
      /** {@inheritDoc} */
      public void nameChanged(NamedElement element) {
        tabbedPane.setTitleAt(index, element.getName());
        tabbedPane.setToolTipTextAt(index, element.getName());
      }
View Full Code Here

TOP

Related Classes of org.tinyuml.model.NameChangeListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.