Java Doc for UIUtil.java in  » IDE-Netbeans » api » org » netbeans » modules » apisupport » project » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » api » org.netbeans.modules.apisupport.project.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.apisupport.project.ui.UIUtil

UIUtil
final public class UIUtil (Code)
UI related utility methods for the module.
author:
   Martin Krauskopf

Inner Class :abstract public static class DocumentAdapter implements DocumentListener
Inner Class :public static class LayerItemPresenter implements Comparable<LayerItemPresenter>



Method Summary
public static  NbModuleProjectchooseSuiteComponent(Component parent, SuiteProject suite)
    
public static  ComboBoxModelcreateLayerPresenterComboModel(Project project, String sfsRoot)
     Calls in turn UIUtil.createLayerPresenterComboModel(Project,String,Map) with Collections.EMPTY_MAP as a third parameter.
public static  ComboBoxModelcreateLayerPresenterComboModel(Project project, String sfsRoot, Map<String, Object> excludeAttrs)
     Returns ComboBoxModel containing UIUtil.LayerItemPresenter s wrapping all folders under the given sfsRoot.
public static  JComboBoxcreatePackageComboBox(SourceGroup srcRoot)
     Create combobox containing packages from the given SourceGroup .
public static  ListCellRenderercreateProjectRenderer()
     Appropriately renders Project s.
public static  StringgenerateTextAreaContent(String[] relPaths)
     Returns a string suitable for text areas respresenting content of CreatedModifiedFiles paths.
public static  DimensiongetIconDimension(File icon)
    
public static  StringgetIconDimensionWarning(File icon, int expectedWidth, int expectedHeight)
    
public static  JFileChoosergetIconFileChooser()
     Returns an instance of javax.swing.JFileChooser permitting selection only a regular icon.
public static  JFileChoosergetIconFileChooser(String oldValue)
     tries to set the selected file according to currently existing data.
public static  StringgetNoIconSelectedWarning(int expectedWidth, int expectedHeight)
    
public static  StringgetSFSPath(JComboBox lpCombo, String supposedRoot)
     Returns path relative to the root of the SFS.
public static  ImagegetTreeFolderIcon(boolean opened)
     Returns default folder icon as java.awt.Image .
public static  booleanisValidIcon(File icon, int expectedWidth, int expectedHeight)
    
public static  booleanisValidPackageName(String str)
     Returns true for valid package name.
public static  StringkeyStrokeToString(KeyStroke keyStroke)
    
public static  StringkeyStrokesToLogicalString(KeyStroke[] keyStrokes)
    
public static  StringkeyStrokesToString(KeyStroke[] keyStrokes)
    
public static  StringkeyToLogicalString(KeyStroke keyStroke)
    
public static  NbModuleProjectrunLibraryWrapperWizard(Project suiteProvider)
    
public static  NbModuleProjectrunProjectWizard(NewNbModuleWizardIterator iterator, String titleBundleKey)
    
public static  voidsetProjectChooserDir(File folder)
     Calls in turn ProjectChooser.setProjectsFolder if the folder is not null and is a directory.
public static  voidsetProjectChooserDirParent(File fileOrFolder)
     Calls UIUtil.setProjectChooserDir with the fileOrFolder's parent if it isn't null.
public static  voidsetText(JTextComponent textComp, String text)
     Set the text for the textComp and set its caret position to the end of the text.
public static  booleanshowAcceptCancelDialog(String title, String message, String acceptButton, String cancelButton, int messageType)
     Show an OK/cancel-type dialog with customized button texts.
public static  booleanshowAcceptCancelDialog(String title, String message, String acceptButton, String accDescrAcceptButton, String cancelButton, int messageType)
     Show an OK/cancel-type dialog with customized button texts.
public static  KeyStrokestringToKeyStroke(String keyStroke)
    
public static  KeyStroke[]stringToKeyStrokes(String keyStrokes)
     Returns multi keystroke for given text representation of shortcuts (like Alt+A B).



Method Detail
chooseSuiteComponent
public static NbModuleProject chooseSuiteComponent(Component parent, SuiteProject suite)(Code)



createLayerPresenterComboModel
public static ComboBoxModel createLayerPresenterComboModel(Project project, String sfsRoot)(Code)
Calls in turn UIUtil.createLayerPresenterComboModel(Project,String,Map) with Collections.EMPTY_MAP as a third parameter.



createLayerPresenterComboModel
public static ComboBoxModel createLayerPresenterComboModel(Project project, String sfsRoot, Map<String, Object> excludeAttrs)(Code)
Returns ComboBoxModel containing UIUtil.LayerItemPresenter s wrapping all folders under the given sfsRoot.
Parameters:
  excludeAttrs - Map of pairs String - Object used to filterout folders which have one or more attribute(key)with a corresponding value.



createPackageComboBox
public static JComboBox createPackageComboBox(SourceGroup srcRoot)(Code)
Create combobox containing packages from the given SourceGroup .



createProjectRenderer
public static ListCellRenderer createProjectRenderer()(Code)
Appropriately renders Project s. For others instances delegates to DefaultListCellRenderer .



generateTextAreaContent
public static String generateTextAreaContent(String[] relPaths)(Code)
Returns a string suitable for text areas respresenting content of CreatedModifiedFiles paths.
Parameters:
  relPaths - should be eitherCreatedModifiedFiles.getCreatedPaths orCreatedModifiedFiles.getModifiedPaths.



getIconDimension
public static Dimension getIconDimension(File icon)(Code)

Parameters:
  icon - file representing icon width and height of icon encapsulated into java.awt.Dimension



getIconDimensionWarning
public static String getIconDimensionWarning(File icon, int expectedWidth, int expectedHeight)(Code)

Parameters:
  icon - file representing icon
Parameters:
  expectedWidth - expected width
Parameters:
  expectedHeight - expected height warning or empty String



getIconFileChooser
public static JFileChooser getIconFileChooser()(Code)
Returns an instance of javax.swing.JFileChooser permitting selection only a regular icon.



getIconFileChooser
public static JFileChooser getIconFileChooser(String oldValue)(Code)
tries to set the selected file according to currently existing data. Will se it only if the String represents a file path that exists.



getNoIconSelectedWarning
public static String getNoIconSelectedWarning(int expectedWidth, int expectedHeight)(Code)

Parameters:
  expectedWidth - expected width
Parameters:
  expectedHeight - expected height warning



getSFSPath
public static String getSFSPath(JComboBox lpCombo, String supposedRoot)(Code)
Returns path relative to the root of the SFS. May return null for empty String or user's custom non-string items. Also see Util.isValidSFSPath(String) .



getTreeFolderIcon
public static Image getTreeFolderIcon(boolean opened)(Code)
Returns default folder icon as java.awt.Image . Never returns null.
Parameters:
  opened - wheter closed or opened icon should be returned.



isValidIcon
public static boolean isValidIcon(File icon, int expectedWidth, int expectedHeight)(Code)

Parameters:
  icon - file representing icon
Parameters:
  expectedWidth - expected width
Parameters:
  expectedHeight - expected height true if icon corresponds to expected dimension



isValidPackageName
public static boolean isValidPackageName(String str)(Code)
Returns true for valid package name.



keyStrokeToString
public static String keyStrokeToString(KeyStroke keyStroke)(Code)



keyStrokesToLogicalString
public static String keyStrokesToLogicalString(KeyStroke[] keyStrokes)(Code)



keyStrokesToString
public static String keyStrokesToString(KeyStroke[] keyStrokes)(Code)



keyToLogicalString
public static String keyToLogicalString(KeyStroke keyStroke)(Code)



runLibraryWrapperWizard
public static NbModuleProject runLibraryWrapperWizard(Project suiteProvider)(Code)



runProjectWizard
public static NbModuleProject runProjectWizard(NewNbModuleWizardIterator iterator, String titleBundleKey)(Code)



setProjectChooserDir
public static void setProjectChooserDir(File folder)(Code)
Calls in turn ProjectChooser.setProjectsFolder if the folder is not null and is a directory.



setProjectChooserDirParent
public static void setProjectChooserDirParent(File fileOrFolder)(Code)
Calls UIUtil.setProjectChooserDir with the fileOrFolder's parent if it isn't null. Otherwise fallbacks to fileOrFolder itself if it is a directory.



setText
public static void setText(JTextComponent textComp, String text)(Code)
Set the text for the textComp and set its caret position to the end of the text.



showAcceptCancelDialog
public static boolean showAcceptCancelDialog(String title, String message, String acceptButton, String cancelButton, int messageType)(Code)
Show an OK/cancel-type dialog with customized button texts. Only a separate method because it is otherwise cumbersome to replace the OK button with a button that is set as the default.
Parameters:
  title - the dialog title
Parameters:
  message - the body of the message (usually HTML text)
Parameters:
  acceptButton - a label for the default accept button; should not use mnemonics
Parameters:
  cancelButton - a label for the cancel button (or null for default); should not use mnemonics
Parameters:
  messageType - NotifyDescriptor.WARNING_MESSAGE or similar true if user accepted the dialog



showAcceptCancelDialog
public static boolean showAcceptCancelDialog(String title, String message, String acceptButton, String accDescrAcceptButton, String cancelButton, int messageType)(Code)
Show an OK/cancel-type dialog with customized button texts. Only a separate method because it is otherwise cumbersome to replace the OK button with a button that is set as the default.
Parameters:
  title - the dialog title
Parameters:
  message - the body of the message (usually HTML text)
Parameters:
  acceptButton - a label for the default accept button; should not use mnemonics
Parameters:
  accDescrAcceptButton - a accessible description for acceptButton
Parameters:
  cancelButton - a label for the cancel button (or null for default); should not use mnemonics
Parameters:
  messageType - NotifyDescriptor.WARNING_MESSAGE or similar true if user accepted the dialog



stringToKeyStroke
public static KeyStroke stringToKeyStroke(String keyStroke)(Code)



stringToKeyStrokes
public static KeyStroke[] stringToKeyStrokes(String keyStrokes)(Code)
Returns multi keystroke for given text representation of shortcuts (like Alt+A B). Returns null if text is not parsable, and empty array for empty string.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.