Revision 2303
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.impl/src/main/java/org/gvsig/tools/swing/impl/DefaultToolsSwingManager.java | ||
---|---|---|
374 | 374 |
component.setComponentPopupMenu(popupMenu); |
375 | 375 |
} |
376 | 376 |
|
377 |
public String showZoomDialog(Component parent, String title, String text, boolean editable) { |
|
378 |
DefaultZoomDialog dialog = new DefaultZoomDialog(parent, title, text); |
|
379 |
dialog.setEditable(editable); |
|
380 |
dialog.setAlwaysOnTop(true); |
|
381 |
dialog.setVisible(true); |
|
382 |
if (editable) { |
|
383 |
return dialog.getText(); |
|
384 |
} |
|
385 |
return text; |
|
386 |
} |
|
387 |
|
|
377 | 388 |
@Override |
378 | 389 |
public void setDefaultPopupMenu(JComboBox component) { |
379 | 390 |
this.setDefaultPopupMenu((JTextComponent) component.getEditor().getEditorComponent(), null); |
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.api/src/main/java/org/gvsig/tools/swing/api/ToolsSwingManager.java | ||
---|---|---|
280 | 280 |
public TableColumnAdjuster createTableColumnAdjuster(JTable table); |
281 | 281 |
|
282 | 282 |
public MessageBarController createMessageBarController(JLabel txtLabel, int timeDuration); |
283 |
|
|
284 |
public String showZoomDialog(java.awt.Component parent, String title, String text, boolean editable); |
|
285 |
|
|
283 | 286 |
} |
Also available in: Unified diff