Revision 3897 trunk/frameworks/_fwAndami/src/com/iver/andami/ui/mdiFrame/MDIFrame.java
MDIFrame.java | ||
---|---|---|
116 | 116 |
|
117 | 117 |
/** DOCUMENT ME! */ |
118 | 118 |
private NewStatusBar bEstado = null; |
119 |
|
|
119 |
|
|
120 | 120 |
/** Asocia los nombres con las barras de herramientas */ |
121 | 121 |
private HashMap toolBarMap = new HashMap(); |
122 |
|
|
122 |
|
|
123 | 123 |
/** |
124 | 124 |
* actionCommand del tool seleccionado |
125 | 125 |
*/ |
... | ... | |
273 | 273 |
jtb.setRollover(true); |
274 | 274 |
toolBarMap.put(name, jtb); |
275 | 275 |
toolBars.add(jtb); |
276 |
|
|
276 | 277 |
} |
277 | 278 |
|
278 | 279 |
jtb.addButton(buttonGroup, btn); |
279 |
|
|
280 | 280 |
controlClass.put(btn, loader.loadClass(ext.getClassName())); |
281 | 281 |
|
282 | 282 |
if (selectableTool.getTooltip() != null) { |
... | ... | |
437 | 437 |
{ |
438 | 438 |
menuPadre.addSeparator(); |
439 | 439 |
return; |
440 |
}
|
|
440 |
} |
|
441 | 441 |
|
442 | 442 |
JMenuItem nuevoMenu = createJMenuItem(loader, menu); |
443 | 443 |
nuevoMenu.addMouseListener(tooltipListener); |
444 | 444 |
nuevoMenu.addActionListener(this); |
445 |
menuPadre.add(nuevoMenu);
|
|
445 |
menuPadre.add(nuevoMenu); |
|
446 | 446 |
controlClass.put(nuevoMenu, loader.loadClass(ext.getClassName())); |
447 | 447 |
} |
448 | 448 |
|
... | ... | |
649 | 649 |
|
650 | 650 |
String name = getName(menu.getName(), loader); |
651 | 651 |
|
652 |
//Se crea el control popupmenu
|
|
652 |
//Se crea el control popupmenu |
|
653 | 653 |
JPopUpMenu popupMenu = (JPopUpMenu) popupMap.get(name); |
654 | 654 |
|
655 | 655 |
if (popupMenu == null) { |
... | ... | |
814 | 814 |
HashMap estadoExtensiones = new HashMap(); |
815 | 815 |
HashMap visibilidadExtensiones = new HashMap(); |
816 | 816 |
|
817 |
while (e.hasNext()) {
|
|
817 |
while (e.hasNext()) { |
|
818 | 818 |
ExtensionDecorator ext = (ExtensionDecorator) e.next(); |
819 |
|
|
819 |
|
|
820 | 820 |
try { |
821 | 821 |
if (estadoExtensiones.get(ext) == null) { |
822 | 822 |
boolean b; |
... | ... | |
989 | 989 |
selectedTool = actionCommand; |
990 | 990 |
|
991 | 991 |
} |
992 |
|
|
992 |
|
|
993 | 993 |
/** |
994 | 994 |
* DOCUMENT ME! |
995 | 995 |
* |
... | ... | |
1157 | 1157 |
public String getSelectedTool() { |
1158 | 1158 |
return selectedTool; |
1159 | 1159 |
} |
1160 |
|
|
1161 | 1160 |
|
1161 |
|
|
1162 | 1162 |
/** |
1163 | 1163 |
* Get a previously added JComponent by name. For example |
1164 | 1164 |
* you can use it if you need to obtain a JToolBar to |
... | ... | |
1186 | 1186 |
return t; |
1187 | 1187 |
|
1188 | 1188 |
} |
1189 |
|
|
1189 |
|
|
1190 | 1190 |
return null; |
1191 | 1191 |
} |
1192 | 1192 |
} |
Also available in: Unified diff