Java Code Examples for org.openide.windows.TopComponent#setDisplayName()
The following examples show how to use
org.openide.windows.TopComponent#setDisplayName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FormEditorSupport.java From netbeans with Apache License 2.0 | 5 votes |
private void updateMVTCDisplayNameInAWT() { if ((multiviewTC == null) || (!formDataObject.isValid())) // Issue 67544 return; String[] titles = getMVTCDisplayName(formDataObject); Enumeration en = multiviewTC.getReference().getComponents(); while (en.hasMoreElements()) { TopComponent tc = (TopComponent) en.nextElement(); tc.setDisplayName(titles[0]); tc.setHtmlDisplayName(titles[1]); } }
Example 2
Source File: MultiViewCloneableEditor.java From netbeans with Apache License 2.0 | 5 votes |
private void updateDisplayText() { if (multiViewObserver != null) { TopComponent tc = multiViewObserver.getTopComponent(); tc.setHtmlDisplayName(getHtmlDisplayName()); tc.setDisplayName(getDisplayName()); tc.setName(getName()); tc.setToolTipText(getToolTipText()); tc.setIcon(getIcon()); } }
Example 3
Source File: SQLCloneableEditor.java From netbeans with Apache License 2.0 | 5 votes |
@Override public void updateName() { super.updateName(); if (callback != null) { TopComponent tc = callback.getTopComponent(); tc.setHtmlDisplayName(getHtmlDisplayName()); tc.setDisplayName(getDisplayName()); tc.setName(getName()); tc.setToolTipText(getToolTipText()); } }
Example 4
Source File: MMDGraphEditor.java From netbeans-mmd-plugin with Apache License 2.0 | 5 votes |
private void copyNameToCallbackTopComponent() { final MultiViewElementCallback c = this.callback; if (c != null) { final TopComponent tc = c.getTopComponent(); if (tc != null) { tc.setHtmlDisplayName(this.getHtmlDisplayName()); tc.setDisplayName(this.getDisplayName()); tc.setName(this.getName()); tc.setToolTipText(this.getToolTipText()); } } if (this.editorSupport != null) { this.editorSupport.updateTitles(); } }
Example 5
Source File: WindowUtilitiesTest.java From snap-desktop with GNU General Public License v3.0 | 4 votes |
TopComponent createTC(String displayName) { TopComponent topComponent = new TopComponent(); topComponent.setDisplayName(displayName); return topComponent; }
Example 6
Source File: WindowUtilitiesTest.java From snap-desktop with GNU General Public License v3.0 | 4 votes |
TopComponent createMyTC(String displayName) { TopComponent topComponent = new MyTopComponent(); topComponent.setDisplayName(displayName); return topComponent; }
Example 7
Source File: WindowUtilitiesTest.java From snap-desktop with GNU General Public License v3.0 | 4 votes |
TopComponent createMyOtherTC(String displayName) { TopComponent topComponent = new MyOtherTopComponent(); topComponent.setDisplayName(displayName); return topComponent; }
Example 8
Source File: WindowUtilitiesTest.java From snap-desktop with GNU General Public License v3.0 | 4 votes |
TopComponent createMyContainerTC(String displayName, TopComponent... topComponents) { TopComponent topComponent = new MyContainerTopComponent(Arrays.asList(topComponents)); topComponent.setDisplayName(displayName); return topComponent; }