|
org.netbeans.modules.projectuiapi/1 1.13.22 5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.project.ui.support.ProjectCustomizer.Category
public static final class ProjectCustomizer.Category
Describes category of properties to be customized by given component
Method Summary | |
---|---|
static ProjectCustomizer.Category |
create(String name,
String displayName,
Image icon,
ProjectCustomizer.Category[] subcategories)
Factory method which creates new category description. |
String |
getDisplayName()
Gets display name of given category. |
String |
getErrorMessage()
Returns an error message for this category. |
Image |
getIcon()
Gets icon of given category. |
String |
getName()
Gets programmatic name of given category. |
ProjectCustomizer.Category[] |
getSubcategories()
Gets subcategories of given category. |
boolean |
isValid()
Returns whether this category is valid or not. |
void |
setErrorMessage(String message)
Set an errror message for this category which than may be shown in a project customizer. |
void |
setValid(boolean valid)
Set a validity of this category. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProjectCustomizer.Category create(String name, String displayName, Image icon, ProjectCustomizer.Category[] subcategories)
name
- Programmatic name of the categorydisplayName
- Name to be shown to the usericon
- Icon for given category. Will use default icon if null.subcategories
- Subcategories to be shown under given category.
Category won't be expandable if null or empty array.public String getName()
public String getDisplayName()
public Image getIcon()
public ProjectCustomizer.Category[] getSubcategories()
public String getErrorMessage()
public boolean isValid()
ProjectCustomizer.createCustomizerDialog(org.netbeans.spi.project.ui.support.ProjectCustomizer.Category[], org.netbeans.spi.project.ui.support.ProjectCustomizer.CategoryComponentProvider, java.lang.String, java.awt.event.ActionListener, org.openide.util.HelpCtx)
for more details.
public void setValid(boolean valid)
ProjectCustomizer.createCustomizerDialog(org.netbeans.spi.project.ui.support.ProjectCustomizer.Category[], org.netbeans.spi.project.ui.support.ProjectCustomizer.CategoryComponentProvider, java.lang.String, java.awt.event.ActionListener, org.openide.util.HelpCtx)
for more details.
valid
- set whether this category is valid or notpublic void setErrorMessage(String message)
message
- message for this category. To reset a
message usually null
or an empty string is
passed. (similar to behaviour of JTextComponent.setText(String)
)
|
org.netbeans.modules.projectuiapi/1 1.13.22 5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |